blob: 4e511b12ea229d323b79ad79c867fa1fa805db8f [file] [log] [blame]
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +04001#
2# Jobs to update cloud packages on given Salt master environment
3#
4parameters:
5 _param:
6 jenkins_salt_api_url: "http://${_param:salt_master_host}:6969"
Victor Ryzhenkin497c57f2018-10-25 19:21:14 +04007 kubernetes_hyperkube_repo: ${_param:mcp_docker_registry}/mirantis/kubernetes
Aleksei Kasatkina6048e72018-11-07 12:03:41 +01008 kubernetes_calico_repo: ${_param:mcp_docker_registry}/mirantis/projectcalico/calico
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +04009 jenkins:
10 client:
11 job:
12 deploy-k8s-upgrade:
13 type: workflow-scm
14 concurrent: true
Alexander Evseev4589d712018-08-03 12:36:15 +020015 discard:
16 build:
17 keep_num: 10
18 artifact:
19 keep_num: 10
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040020 display_name: "Deploy - update kubernetes cluster"
21 scm:
22 type: git
23 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
24 branch: "${_param:jenkins_pipelines_branch}"
25 credentials: "gerrit"
26 script: k8s-upgrade-pipeline.groovy
27 param:
28 KUBERNETES_HYPERKUBE_IMAGE:
29 type: string
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040030 default: "${_param:kubernetes_hyperkube_repo}/hyperkube-amd64:v1.11.3-2"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040031 description: "Versioned image to update control plane from. Should be null if update rolling via reclass-system level"
32 KUBERNETES_PAUSE_IMAGE:
33 type: string
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040034 default: "${_param:kubernetes_hyperkube_repo}/pause-amd64:v1.11.3-2"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040035 description: "Versioned pause image to use in deployments. Should be null if update rolling via reclass-system level"
36 SALT_MASTER_URL:
37 type: string
38 default: "${_param:jenkins_salt_api_url}"
39 SALT_MASTER_CREDENTIALS:
40 type: string
41 default: "salt-qa-credentials"
Victor Ryzhenkindbf76d32018-09-28 16:29:22 +040042 SIMPLE_UPGRADE:
43 type: boolean
44 default: 'false'
45 description: "Choose between simple upgrade or upgrade with draining nodes"
46 UPGRADE_DOCKER:
47 type: boolean
48 default: 'false'
49 description: "Upgrade docker or not"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040050 PER_NODE:
51 type: boolean
52 default: 'true'
53 description: "Target nodes will be managed one by one"
54 TARGET_UPDATES:
55 type: string
56 default: "ctl,cmp"
57 description: "Comma separated list of nodes to update (Valid values are ctl,cmp)"
58 CTL_TARGET:
59 type: string
60 default: "I@kubernetes:master"
61 description: "Salt targeted kubernetes CTL nodes (ex. I@kubernetes:master). Kubernetes control plane"
62 CMP_TARGET:
63 type: string
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040064 default: "I@kubernetes:pool and not I@kubernetes:master"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040065 description: "Salt targeted compute nodes (ex. 'cmp* and I@kubernetes:pool') Kubernetes computes"
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040066 CONFORMANCE_RUN_AFTER:
67 type: boolean
68 default: "false"
69 description: "Run conformance tests after upgrade"
70 CONFORMANCE_RUN_BEFORE:
71 type: boolean
72 default: "false"
73 description: "Run conformance tests before upgrade"
74 TEST_K8S_API_SERVER:
75 type: string
76 default: "http://127.0.0.1:8080"
77 description: "Local kubernetes apiserver variable for conformance tests"
78 ARTIFACTORY_URL:
79 type: string
Victor Ryzhenkin497c57f2018-10-25 19:21:14 +040080 default: ${_param:mcp_docker_registry}
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040081 description: "Artifactory URL where docker images located. Needed to correctly fetch conformance images."
Aleksei Kasatkina6048e72018-11-07 12:03:41 +010082 UPGRADE_CALICO_V2_TO_V3:
83 type: boolean
84 default: 'false'
85 description: "Perform Calico upgrade from v2.x to v3.x. It is not needed for minor version upgrade (e.g., from v3.1 to v3.2)."
86 CALICO_UPGRADE_VERSION:
87 type: string
88 default: 'v1.0.5'
89 description: "Version of 'calico-upgrade' utility to be used."
90 KUBERNETES_CALICO_IMAGE:
91 type: string
92 default: "${_param:kubernetes_calico_repo}/node:v3.1.3"
93 description: "Versioned calico/node image. Should be null if update rolling via reclass-system level"
94 KUBERNETES_CALICO_CALICOCTL_IMAGE:
95 type: string
96 default: "${_param:kubernetes_calico_repo}/ctl:v3.1.3"
97 description: "Versioned calico/ctl image. Should be null if update rolling via reclass-system level"
98 KUBERNETES_CALICO_CNI_IMAGE:
99 type: string
100 default: "${_param:kubernetes_calico_repo}/cni:v3.1.3"
101 description: "Versioned calico/cni image. Should be null if update rolling via reclass-system level"
102 KUBERNETES_CALICO_KUBE_CONTROLLERS_IMAGE:
103 type: string
104 default: "${_param:kubernetes_calico_repo}/kube-controllers:v3.1.3"
105 description: "Versioned calico/kube-controllers image. Should be null if update rolling via reclass-system level"