Add ingress to wishlist

This commit is contained in:
Kasper Juul Hermansen 2022-05-09 10:21:34 +02:00
parent fabeb43c2d
commit c95d60e981
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -3,30 +3,24 @@ kind: Namespace
metadata:
name: wishlist
---
apiVersion: networking.k8s.io/v1
kind: Ingress
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: wishlist-ingress
namespace: wishlist
annotations:
traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.tls.certresolver: le
namespace: kube-system
spec:
entryPoints:
- web
- websecure
routes:
- match: Host(`wishlist.kjuulh.app`)
kind: Rule
services:
- name: wishlist-service
kind: service
namespace: wishlist
tls:
- hosts:
- wishlist.kjuulh.app
rules:
- host: wishlist.kjuulh.app
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: wishlist-service
port:
number: 80
secretName: clank-cert
---
apiVersion: apps/v1
kind: Deployment