-
Notifications
You must be signed in to change notification settings - Fork 15
/
renew.yml
44 lines (41 loc) · 789 Bytes
/
renew.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
- name: Renew ca
hosts: all
become: true
any_errors_fatal: true
roles:
- ca
- name: Rotate the etcd CA certificates
hosts: "{% if groups['etcd'] is not defined %}master{% else %}etcd{% endif %}"
become: true
gather_facts: true
any_errors_fatal: true
vars:
scale: false
roles:
- etcd
- name: Rotate the master CA certificates
hosts: master
become: true
gather_facts: true
any_errors_fatal: true
roles:
- kubectl
- kube-apiserver
- kube-scheduler
- kube-controller-manager
- kubelet
- kube-proxy
- motd
- cleanup
- name: Rotate the worker CA certificates
hosts: worker
become: true
gather_facts: true
any_errors_fatal: true
roles:
- kubectl
- kubelet
- kube-proxy
- motd
- cleanup