From aef990b8512cac34a9c73e40a2bcf5e9a034ac99 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 19 Jun 2021 17:21:53 +0200 Subject: [PATCH] ++in between2 --- apps/nginx-certbot/base/deployment.yaml | 8 +++----- apps/nginx-certbot/overlays/ungleich/kustomization.yaml | 8 +++++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/nginx-certbot/base/deployment.yaml b/apps/nginx-certbot/base/deployment.yaml index 8fc925a..094f135 100644 --- a/apps/nginx-certbot/base/deployment.yaml +++ b/apps/nginx-certbot/base/deployment.yaml @@ -96,11 +96,9 @@ spec: image: ungleich/ungleich-certbot ports: - containerPort: 80 - env: - - name: DOMAIN - valueFrom: - fieldRef: - fieldPath: spec.nodeName + envFrom: + - configMapRef: + name: certbot-configmap volumeMounts: - name: etcletsencrypt mountPath: "/etc/letsencrypt" diff --git a/apps/nginx-certbot/overlays/ungleich/kustomization.yaml b/apps/nginx-certbot/overlays/ungleich/kustomization.yaml index a94104f..4d33212 100644 --- a/apps/nginx-certbot/overlays/ungleich/kustomization.yaml +++ b/apps/nginx-certbot/overlays/ungleich/kustomization.yaml @@ -1,6 +1,8 @@ -commonLabels: - app: ungleichetherpad - customer: ungleich bases: - ../../base namePrefix: ungleich- +configMapGenerator: +- name: certbot-configmap + literals: + - DOMAIN=ungleich-tls1.default.svc.c2.k8s.ooo + - EMAIL=technik@ungleich.ch