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