From c95d60e981e90232f723339c9f6a4de26b21a6a8 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Mon, 9 May 2022 10:21:34 +0200 Subject: [PATCH] Add ingress to wishlist --- clank/apps/prod/wishlist/app.yaml | 34 +++++++++++++------------------ 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/clank/apps/prod/wishlist/app.yaml b/clank/apps/prod/wishlist/app.yaml index 6d8a3f2..364b4a9 100644 --- a/clank/apps/prod/wishlist/app.yaml +++ b/clank/apps/prod/wishlist/app.yaml @@ -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