From 38a726242c88ca8eada008dcd45202417e27c413 Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Sat, 29 Jun 2024 21:16:00 -0800 Subject: [PATCH] move traefik svc annotations to kustomize --- charts/fp/templates/traefik.yaml | 34 +++++++++---------- .../controllers/ingress-traefik.yaml | 3 ++ 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/charts/fp/templates/traefik.yaml b/charts/fp/templates/traefik.yaml index a724ccc..c2dc1bd 100644 --- a/charts/fp/templates/traefik.yaml +++ b/charts/fp/templates/traefik.yaml @@ -10,23 +10,23 @@ spec: scheme: https permanent: true ---- -apiVersion: v1 -kind: Service -metadata: - name: traefik - namespace: futureporn - annotations: - cert-manager.io/cluster-issuer: "{{ .Values.certManager.issuer }}" - meta.helm.sh/release-name: fp -spec: - type: LoadBalancer - selector: - app: traefik - ports: - - protocol: TCP - port: 443 - targetPort: 8443 +# --- +# apiVersion: v1 +# kind: Service +# metadata: +# name: traefik +# namespace: futureporn +# annotations: + +# meta.helm.sh/release-name: fp +# spec: +# type: LoadBalancer +# selector: +# app: traefik +# ports: +# - protocol: TCP +# port: 443 +# targetPort: 8443 --- apiVersion: networking.k8s.io/v1 diff --git a/infrastructure/controllers/ingress-traefik.yaml b/infrastructure/controllers/ingress-traefik.yaml index 64b5f0d..9a131bd 100644 --- a/infrastructure/controllers/ingress-traefik.yaml +++ b/infrastructure/controllers/ingress-traefik.yaml @@ -26,6 +26,9 @@ spec: namespace: futureporn interval: 12h values: + service: + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-staging" logs: access: enabled: true