From 6e14ce1586495a11636c0832a24c503941a257ab Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Mon, 15 Apr 2024 14:37:47 +0200 Subject: [PATCH] selector and labels updated --- .../patches/traefik-deployment-patch.yaml | 8 +++++++- .../03-traefik/overlay-internal/kustomization.yaml | 1 + .../patches/traefik-deployment-patch.yaml | 13 +++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 infrastructure/03-traefik/overlay-internal/patches/traefik-deployment-patch.yaml diff --git a/infrastructure/03-traefik/overlay-external/patches/traefik-deployment-patch.yaml b/infrastructure/03-traefik/overlay-external/patches/traefik-deployment-patch.yaml index 11defd2..1bc0d67 100644 --- a/infrastructure/03-traefik/overlay-external/patches/traefik-deployment-patch.yaml +++ b/infrastructure/03-traefik/overlay-external/patches/traefik-deployment-patch.yaml @@ -4,11 +4,17 @@ metadata: name: traefik namespace: traefik spec: + selector: + matchLabels: + app: front-traefik template: + metadata: + labels: + app: front-traefik spec: hostNetwork: false containers: - - name: traefik + - name: front-traefik env: - name: IONOS_API_KEY valueFrom: diff --git a/infrastructure/03-traefik/overlay-internal/kustomization.yaml b/infrastructure/03-traefik/overlay-internal/kustomization.yaml index dac065b..6b91048 100644 --- a/infrastructure/03-traefik/overlay-internal/kustomization.yaml +++ b/infrastructure/03-traefik/overlay-internal/kustomization.yaml @@ -13,4 +13,5 @@ resources: - ../base patches: + - path: patches/traefik-deployment-patch.yaml - path: patches/traefik-service-patch.yaml diff --git a/infrastructure/03-traefik/overlay-internal/patches/traefik-deployment-patch.yaml b/infrastructure/03-traefik/overlay-internal/patches/traefik-deployment-patch.yaml new file mode 100644 index 0000000..2b7cb59 --- /dev/null +++ b/infrastructure/03-traefik/overlay-internal/patches/traefik-deployment-patch.yaml @@ -0,0 +1,13 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: traefik + namespace: traefik +spec: + selector: + matchLabels: + app: local-traefik + template: + metadata: + labels: + app: local-traefik \ No newline at end of file