diff --git a/apps/nginx-certbot/base/deployment.yaml b/apps/nginx-certbot/base/deployment.yaml index 84c4c77..8fc925a 100644 --- a/apps/nginx-certbot/base/deployment.yaml +++ b/apps/nginx-certbot/base/deployment.yaml @@ -96,19 +96,11 @@ spec: image: ungleich/ungleich-certbot ports: - containerPort: 80 - command: - - certbot - - certonly - - --agree-tos - - --cert-name - - 'tls1.default.svc.c2.k8s.ooo' - - --email - - sre@ungleich.ch - - --expand - - --non-interactive - - --domain - - 'tls1.default.svc.c2.k8s.ooo' - - --standalone + env: + - name: DOMAIN + valueFrom: + fieldRef: + fieldPath: spec.nodeName volumeMounts: - name: etcletsencrypt mountPath: "/etc/letsencrypt"