diff --git a/apps/nginx-certbot-helm/templates/certbot-job.yaml b/apps/nginx-certbot-helm/templates/certbot-job.yaml index 9d3ddb3..76e2057 100644 --- a/apps/nginx-certbot-helm/templates/certbot-job.yaml +++ b/apps/nginx-certbot-helm/templates/certbot-job.yaml @@ -15,9 +15,11 @@ spec: image: ungleich/ungleich-certbot ports: - containerPort: 80 - envFrom: - - configMapRef: - name: {{ .Release.Name }}-certbot-configmap + env: + - name: DOMAIN + value: "{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}" + - name: EMAIL + value: "{{ .Values.email }}" volumeMounts: - name: etcletsencrypt mountPath: "/etc/letsencrypt" diff --git a/apps/nginx-certbot-helm/values.yaml b/apps/nginx-certbot-helm/values.yaml index 3fc175f..cbc7324 100644 --- a/apps/nginx-certbot-helm/values.yaml +++ b/apps/nginx-certbot-helm/values.yaml @@ -1,2 +1,3 @@ serviceName: aservice clusterDomain: c2.k8s.ooo +email: technik@ungleich.ch