30 lines
805 B
YAML
30 lines
805 B
YAML
---
|
|
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
|
|
env:
|
|
- name: DOMAIN
|
|
value: "{{ .Release.Name }}-{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}"
|
|
- name: EMAIL
|
|
value: "{{ .Values.email }}"
|
|
volumeMounts:
|
|
- name: etcletsencrypt
|
|
mountPath: "/etc/letsencrypt"
|
|
volumes:
|
|
- name: etcletsencrypt
|
|
persistentVolumeClaim:
|
|
claimName: {{ .Release.Name }}-letsencrypt-certs
|
|
backoffLimit: 3
|