This commit is contained in:
@@ -1,13 +1,8 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: certbot
|
|
||||||
---
|
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: certbotwilcart
|
name: certbotwilcard
|
||||||
namespace: certbot
|
namespace: reverse-proxy
|
||||||
spec:
|
spec:
|
||||||
schedule: "0 0 */15 * *"
|
schedule: "0 0 */15 * *"
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
@@ -18,32 +13,23 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
nodeName: kube-master
|
nodeName: kube-master
|
||||||
containers:
|
containers:
|
||||||
- name: certbotwildcart
|
- name: certbotwildcard
|
||||||
image: certbot/dns-ovh:latest
|
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"]
|
command: ["certbot","certonly","--dns-ovh","--dns-ovh-credentials","/secret/ovh.ini","--dns-ovh-propagation-seconds","60","-d","*.tryton.geeraert.eu"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: certbot-www
|
- name: reverse-proxy-ssl
|
||||||
mountPath: /var/www/certbot/
|
|
||||||
- name: certbot-conf
|
|
||||||
mountPath: /etc/letsencrypt/
|
mountPath: /etc/letsencrypt/
|
||||||
- name: letsencrypt-log
|
- name: letsencrypt-log
|
||||||
mountPath: /var/log/letsencrypt/
|
mountPath: /var/log/letsencrypt/
|
||||||
- name: secret-ovh
|
- name: secret-ovh
|
||||||
mountPath: /secret/
|
mountPath: /secret/
|
||||||
volumes:
|
volumes:
|
||||||
- name: certbot-www
|
- name: reverse-proxy-ssl
|
||||||
hostPath:
|
persistentVolumeClaim:
|
||||||
path: /opt/kubernetes/Reverse_proxy_Nginx/certbot/www/
|
claimName: reverse-proxy-ssl
|
||||||
- name: certbot-conf
|
|
||||||
hostPath:
|
|
||||||
path: /opt/kubernetes/Reverse_proxy_Nginx/certbot/conf/
|
|
||||||
- name: letsencrypt-log
|
- name: letsencrypt-log
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/log/letsencrypt/
|
path: /var/log/letsencrypt/
|
||||||
#- name: secret-ovh
|
|
||||||
# hostPath:
|
|
||||||
# path: /opt/kubernetes/Certbot_jobs/ovh.ini
|
|
||||||
# type: File
|
|
||||||
- name: secret-ovh
|
- name: secret-ovh
|
||||||
secret:
|
secret:
|
||||||
secretName: ovh-secret-certbot
|
secretName: ovh-secret-certbot
|
||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: certbotwilcart
|
name: certbotwildcardroot
|
||||||
namespace: reverse-proxy
|
namespace: reverse-proxy
|
||||||
spec:
|
spec:
|
||||||
schedule: "0 0 */15 * *"
|
schedule: "0 0 */15 * *"
|
||||||
@@ -13,7 +13,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
nodeName: kube-master
|
nodeName: kube-master
|
||||||
containers:
|
containers:
|
||||||
- name: certbotwildcart
|
- name: certbotwildcardroot
|
||||||
image: certbot/dns-ovh:latest
|
image: certbot/dns-ovh:latest
|
||||||
#command: ["sleep","3600"]
|
#command: ["sleep","3600"]
|
||||||
command: ["certbot","certonly","--dns-ovh","--dns-ovh-credentials","/secret/ovh.ini","--dns-ovh-propagation-seconds","60","-d","*.geeraert.eu"]
|
command: ["certbot","certonly","--dns-ovh","--dns-ovh-credentials","/secret/ovh.ini","--dns-ovh-propagation-seconds","60","-d","*.geeraert.eu"]
|
||||||
Reference in New Issue
Block a user