Vladimir Jigulin | 62bcf46 | 2018-05-28 18:17:01 +0400 | [diff] [blame] | 1 | {% 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 Jigulin | 4ad52a8 | 2018-08-12 05:51:30 +0400 | [diff] [blame] | 4 | # Kubernetes upgrade |
Vladimir Jigulin | 62bcf46 | 2018-05-28 18:17:01 +0400 | [diff] [blame] | 5 | - 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 Jigulin | 4ad52a8 | 2018-08-12 05:51:30 +0400 | [diff] [blame] | 12 | - description: Update the Kubernetes Master nodes and restart the services |
Vladimir Jigulin | 62bcf46 | 2018-05-28 18:17:01 +0400 | [diff] [blame] | 13 | 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 Jigulin | 62bcf46 | 2018-05-28 18:17:01 +0400 | [diff] [blame] | 17 | 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 |