Files
certbot_jobs/Certbot_manual_wildcart.yaml
T
2024-06-19 11:44:07 +01:00

47 lines
1.3 KiB
YAML

apiVersion: v1
kind: Namespace
metadata:
name: certbot
---
apiVersion: batch/v1
kind: Job
metadata:
name: certbotwilcart
namespace: certbot
spec:
ttlSecondsAfterFinished: 100
template:
spec:
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","*.tryton.geeraert.eu"]
volumeMounts:
- name: certbot-www
mountPath: /var/www/certbot/
- name: certbot-conf
mountPath: /etc/letsencrypt/
- name: letsencrypt-log
mountPath: /var/log/letsencrypt/
- name: secret-ovh
mountPath: /secret/
volumes:
- name: certbot-www
hostPath:
path: /opt/kubernetes/Reverse_proxy_Nginx/certbot/www/
- name: certbot-conf
hostPath:
path: /opt/kubernetes/Reverse_proxy_Nginx/certbot/conf/
- name: letsencrypt-log
hostPath:
path: /var/log/letsencrypt/
# - name: secret-ovh
# hostPath:
# path: /opt/kubernetes/Certbot_jobs/ovh.ini
# type: File
- name: secret-ovh
secret:
secretName: ovh-secret-certbot
restartPolicy: Never
backoffLimit: 4