blob: 716265759e5707d788b6aea953c2b348fcc32754 [file] [log] [blame]
Vladimir Jigulin62bcf462018-05-28 18:17:01 +04001{% from 'k8s-ha-calico/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'k8s-ha-calico/underlay.yaml' import HOSTNAME_CTL01 with context %}
3
Vladimir Jigulin4ad52a82018-08-12 05:51:30 +04004# Kubernetes upgrade
Vladimir Jigulin62bcf462018-05-28 18:17:01 +04005- description: Update hypercube image
6 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
7 -C 'I@kubernetes:pool' state.sls kubernetes.pool
8 node_name: {{ HOSTNAME_CFG01 }}
9 retry: {count: 3, delay: 5}
10 skip_fail: false
11
Vladimir Jigulin4ad52a82018-08-12 05:51:30 +040012- description: Update the Kubernetes Master nodes and restart the services
Vladimir Jigulin62bcf462018-05-28 18:17:01 +040013 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
14 -C 'I@kubernetes:master' state.sls kubernetes exclude=kubernetes.master.setup
15 node_name: {{ HOSTNAME_CFG01 }}
16 retry: {count: 1, delay: 5}
Vladimir Jigulin62bcf462018-05-28 18:17:01 +040017 skip_fail: false
18
19- desciption: Print kubernetes version
20 cmd: kubectl version
21 node_name: {{ HOSTNAME_CTL01 }}
22 retry: {count: 3, delay: 5}
23 skip_fail: true