Skip to content

Commit

Permalink
also allow running the kubespray-based renew-certs playbook for k8s 1…
Browse files Browse the repository at this point in the history
….19 to work with multiple control plane nodes, as that also works
  • Loading branch information
jschaul committed Oct 31, 2023
1 parent 5c68465 commit ff11891
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ansible/kubernetes-renew-certs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#
# Run "make renew-certs" to execute this playbook.
#
# Beware! This script only works if there a single control plane node!
#
# Comments:
#
# > Step 6. Make kubelet aware of the new certificate
Expand All @@ -17,10 +15,6 @@
- name: 'Renew certificates'
hosts: kube-master
tasks:
- name: fail if there is more than 1 master
fail:
msg: This playbook only works when there is one master node.
when: groups['kube-master'] | length > 1
- name: create backup dir
file:
dest: "/etc/kubernetes/backup-before-cert-renew/"
Expand Down

0 comments on commit ff11891

Please sign in to comment.