blob: 1f27c73c6cf894bd9b593f2536fe23c33b9407c0 [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
4# Kubernetes
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
12- description: Run whole master to check consistency
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}
17 skip_fail: true
18
19# TODO: sync with PROD-20441
20- desciption: Restart kube-apiserver
21 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@kubernetes:control' service.restart kube-apiserver
22 node_name: {{ HOSTNAME_CFG01 }}
23 retry: {count: 3, delay: 5}
24 skip_fail: false
25
26- desciption: Print kubernetes version
27 cmd: kubectl version
28 node_name: {{ HOSTNAME_CTL01 }}
29 retry: {count: 3, delay: 5}
30 skip_fail: true