ungleich-k8s/apps/nginx-certbot-helm/templates/certbot-job.yaml

31 lines
805 B
YAML
Raw Normal View History

---
apiVersion: batch/v1
kind: Job
metadata:
name: {{ .Release.Name }}-getcert
spec:
template:
metadata:
labels:
app: {{ .Release.Name }}
spec:
restartPolicy: Never
containers:
- name: certbot
image: ungleich/ungleich-certbot
ports:
- containerPort: 80
2021-06-19 18:01:52 +00:00
env:
- name: DOMAIN
2021-06-19 18:11:19 +00:00
value: "{{ .Release.Name }}-{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}"
2021-06-19 18:01:52 +00:00
- name: EMAIL
value: "{{ .Values.email }}"
volumeMounts:
- name: etcletsencrypt
mountPath: "/etc/letsencrypt"
volumes:
- name: etcletsencrypt
persistentVolumeClaim:
claimName: {{ .Release.Name }}-letsencrypt-certs
backoffLimit: 3