blob: 5179d9f8eb14eae3a448b49c4079f565d85aeed5 [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
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +04008 jenkins:
9 client:
10 job:
11 deploy-k8s-upgrade:
12 type: workflow-scm
13 concurrent: true
Alexander Evseev4589d712018-08-03 12:36:15 +020014 discard:
15 build:
16 keep_num: 10
17 artifact:
18 keep_num: 10
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040019 display_name: "Deploy - update kubernetes cluster"
20 scm:
21 type: git
22 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
23 branch: "${_param:jenkins_pipelines_branch}"
24 credentials: "gerrit"
25 script: k8s-upgrade-pipeline.groovy
26 param:
27 KUBERNETES_HYPERKUBE_IMAGE:
28 type: string
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040029 default: "${_param:kubernetes_hyperkube_repo}/hyperkube-amd64:v1.11.3-2"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040030 description: "Versioned image to update control plane from. Should be null if update rolling via reclass-system level"
31 KUBERNETES_PAUSE_IMAGE:
32 type: string
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040033 default: "${_param:kubernetes_hyperkube_repo}/pause-amd64:v1.11.3-2"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040034 description: "Versioned pause image to use in deployments. Should be null if update rolling via reclass-system level"
35 SALT_MASTER_URL:
36 type: string
37 default: "${_param:jenkins_salt_api_url}"
38 SALT_MASTER_CREDENTIALS:
39 type: string
40 default: "salt-qa-credentials"
Victor Ryzhenkindbf76d32018-09-28 16:29:22 +040041 SIMPLE_UPGRADE:
42 type: boolean
43 default: 'false'
44 description: "Choose between simple upgrade or upgrade with draining nodes"
45 UPGRADE_DOCKER:
46 type: boolean
47 default: 'false'
48 description: "Upgrade docker or not"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040049 PER_NODE:
50 type: boolean
51 default: 'true'
52 description: "Target nodes will be managed one by one"
53 TARGET_UPDATES:
54 type: string
55 default: "ctl,cmp"
56 description: "Comma separated list of nodes to update (Valid values are ctl,cmp)"
57 CTL_TARGET:
58 type: string
59 default: "I@kubernetes:master"
60 description: "Salt targeted kubernetes CTL nodes (ex. I@kubernetes:master). Kubernetes control plane"
61 CMP_TARGET:
62 type: string
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040063 default: "I@kubernetes:pool and not I@kubernetes:master"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040064 description: "Salt targeted compute nodes (ex. 'cmp* and I@kubernetes:pool') Kubernetes computes"
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040065 CONFORMANCE_RUN_AFTER:
66 type: boolean
67 default: "false"
68 description: "Run conformance tests after upgrade"
69 CONFORMANCE_RUN_BEFORE:
70 type: boolean
71 default: "false"
72 description: "Run conformance tests before upgrade"
73 TEST_K8S_API_SERVER:
74 type: string
75 default: "http://127.0.0.1:8080"
76 description: "Local kubernetes apiserver variable for conformance tests"
77 ARTIFACTORY_URL:
78 type: string
Victor Ryzhenkin497c57f2018-10-25 19:21:14 +040079 default: ${_param:mcp_docker_registry}
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040080 description: "Artifactory URL where docker images located. Needed to correctly fetch conformance images."