Files
certbot_jobs/Certbot_manual_renew_jobs.yaml.old
T
pi-ux-ce 988bde3cbf
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
disable the files
2024-11-04 11:35:30 +00:00

38 lines
1.0 KiB
Plaintext

apiVersion: v1
kind: Namespace
metadata:
name: certbot
---
apiVersion: batch/v1
kind: Job
metadata:
name: certbotrenew
namespace: certbot
spec:
ttlSecondsAfterFinished: 100
template:
spec:
containers:
- name: certbotrenew
image: certbot/certbot:latest
command: ["certbot","renew", "--non-interactive", "--agree-tos", "-m", "franckrobbin6@gmail.com", "--webroot", "--webroot-path", "/var/www/certbot/"]
volumeMounts:
- name: certbot-www
mountPath: /var/www/certbot/
- name: certbot-conf
mountPath: /etc/letsencrypt/
- name: letsencrypt-log
mountPath: /var/log/letsencrypt/
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/
restartPolicy: Never
backoffLimit: 4