diff --git a/Certbot_Cron_wildcart_jobs.yaml b/Certbot_Cron_wildcard_jobs.yaml similarity index 59% rename from Certbot_Cron_wildcart_jobs.yaml rename to Certbot_Cron_wildcard_jobs.yaml index cdfb6f1..72f64ff 100644 --- a/Certbot_Cron_wildcart_jobs.yaml +++ b/Certbot_Cron_wildcard_jobs.yaml @@ -1,13 +1,8 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: certbot ---- apiVersion: batch/v1 kind: CronJob metadata: - name: certbotwilcart - namespace: certbot + name: certbotwilcard + namespace: reverse-proxy spec: schedule: "0 0 */15 * *" jobTemplate: @@ -18,32 +13,23 @@ spec: spec: nodeName: kube-master containers: - - name: certbotwildcart + - name: certbotwildcard 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 + - name: reverse-proxy-ssl 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: reverse-proxy-ssl + persistentVolumeClaim: + claimName: reverse-proxy-ssl - 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 diff --git a/Certbot_Cron_wildcart_jobs_root_domain.yaml b/Certbot_Cron_wildcard_jobs_root_domain.yaml similarity index 94% rename from Certbot_Cron_wildcart_jobs_root_domain.yaml rename to Certbot_Cron_wildcard_jobs_root_domain.yaml index fb98485..979f531 100644 --- a/Certbot_Cron_wildcart_jobs_root_domain.yaml +++ b/Certbot_Cron_wildcard_jobs_root_domain.yaml @@ -1,7 +1,7 @@ apiVersion: batch/v1 kind: CronJob metadata: - name: certbotwilcart + name: certbotwildcardroot namespace: reverse-proxy spec: schedule: "0 0 */15 * *" @@ -13,7 +13,7 @@ spec: spec: nodeName: kube-master containers: - - name: certbotwildcart + - name: certbotwildcardroot image: certbot/dns-ovh:latest #command: ["sleep","3600"] command: ["certbot","certonly","--dns-ovh","--dns-ovh-credentials","/secret/ovh.ini","--dns-ovh-propagation-seconds","60","-d","*.geeraert.eu"]