Skip to content
Snippets Groups Projects
Unverified Commit bf6a39eb authored by Etienne Champetier's avatar Etienne Champetier Committed by GitHub
Browse files

Add auto_renew_certificates_systemd_calendar (#7490)


This allow to configure when K8S certificates renewal runs

Signed-off-by: default avatarEtienne Champetier <e.champetier@ateme.com>
parent 42382e2c
No related branches found
No related tags found
No related merge requests found
......@@ -306,3 +306,5 @@ event_ttl_duration: "1h0m0s"
## Automatically renew K8S control plane certificates on first Monday of each month
auto_renew_certificates: false
# First Monday of each month
# auto_renew_certificates_systemd_calendar: "Mon *-*-1,2,3,4,5,6,7 03:{{ groups['kube_control_plane'].index(inventory_hostname) }}0:00"
......@@ -191,3 +191,5 @@ event_ttl_duration: "1h0m0s"
## Automatically renew K8S control plane certificates on first Monday of each month
auto_renew_certificates: false
# First Monday of each month
auto_renew_certificates_systemd_calendar: "Mon *-*-1,2,3,4,5,6,7 03:{{ groups['kube_control_plane'].index(inventory_hostname) }}0:00"
......@@ -2,8 +2,7 @@
Description=Timer to renew K8S control plane certificates
[Timer]
# First Monday of each month
OnCalendar=Mon *-*-1,2,3,4,5,6,7 03:{{ groups['kube_control_plane'].index(inventory_hostname) }}0:00
OnCalendar={{ auto_renew_certificates_systemd_calendar }}
[Install]
WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment