nginx/certbot: add env

This commit is contained in:
Nico Schottelius 2021-06-19 20:01:52 +02:00
parent 52fbf6d61f
commit e49241afce
2 changed files with 6 additions and 3 deletions

View file

@ -15,9 +15,11 @@ spec:
image: ungleich/ungleich-certbot image: ungleich/ungleich-certbot
ports: ports:
- containerPort: 80 - containerPort: 80
envFrom: env:
- configMapRef: - name: DOMAIN
name: {{ .Release.Name }}-certbot-configmap value: "{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}"
- name: EMAIL
value: "{{ .Values.email }}"
volumeMounts: volumeMounts:
- name: etcletsencrypt - name: etcletsencrypt
mountPath: "/etc/letsencrypt" mountPath: "/etc/letsencrypt"

View file

@ -1,2 +1,3 @@
serviceName: aservice serviceName: aservice
clusterDomain: c2.k8s.ooo clusterDomain: c2.k8s.ooo
email: technik@ungleich.ch