Files
certbot_jobs/Certbot_Cron_wildcart_jobs_root_domain.yaml
T
pi-ux-ce b65c35df4c
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
creating job to reverse-proxy ns as a test but also in prep for the transition
2026-08-11 14:11:53 +01:00

38 lines
1.1 KiB
YAML

apiVersion: batch/v1
kind: CronJob
metadata:
name: certbotwilcart
namespace: reverse-proxy
spec:
schedule: "0 0 */15 * *"
jobTemplate:
spec:
backoffLimit: 4
ttlSecondsAfterFinished: 100
template:
spec:
nodeName: kube-master
containers:
- name: certbotwildcart
image: certbot/dns-ovh:latest
command: ["certbot","certonly","--dns-ovh","--dns-ovh-credentials","/secret/ovh.ini","--dns-ovh-propagation-seconds","60","-d","*.geeraert.eu"]
volumeMounts:
- name: reverse-proxy-ssl
mountPath: /var/www/certbot/
- name: letsencrypt-log
mountPath: /var/log/letsencrypt/
- name: secret-ovh
mountPath: /secret/
volumes:
- name: reverse-proxy-ssl
persistentVolumeClaim:
claimName: reverse-proxy-ssl
- name: letsencrypt-log
hostPath:
path: /var/log/letsencrypt/
- name: secret-ovh
secret:
secretName: ovh-secret-certbot
restartPolicy: Never