Victor Ryzhenkin | 7d5a9d8 | 2018-07-04 05:33:21 +0400 | [diff] [blame] | 1 | # |
| 2 | # Jobs to update cloud packages on given Salt master environment |
| 3 | # |
| 4 | parameters: |
| 5 | _param: |
| 6 | jenkins_salt_api_url: "http://${_param:salt_master_host}:6969" |
Victor Ryzhenkin | 497c57f | 2018-10-25 19:21:14 +0400 | [diff] [blame] | 7 | kubernetes_hyperkube_repo: ${_param:mcp_docker_registry}/mirantis/kubernetes |
Aleksei Kasatkin | a6048e7 | 2018-11-07 12:03:41 +0100 | [diff] [blame^] | 8 | kubernetes_calico_repo: ${_param:mcp_docker_registry}/mirantis/projectcalico/calico |
Victor Ryzhenkin | 7d5a9d8 | 2018-07-04 05:33:21 +0400 | [diff] [blame] | 9 | jenkins: |
| 10 | client: |
| 11 | job: |
| 12 | deploy-k8s-upgrade: |
| 13 | type: workflow-scm |
| 14 | concurrent: true |
Alexander Evseev | 4589d71 | 2018-08-03 12:36:15 +0200 | [diff] [blame] | 15 | discard: |
| 16 | build: |
| 17 | keep_num: 10 |
| 18 | artifact: |
| 19 | keep_num: 10 |
Victor Ryzhenkin | 7d5a9d8 | 2018-07-04 05:33:21 +0400 | [diff] [blame] | 20 | 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 Ryzhenkin | 349d669 | 2018-10-23 20:48:09 +0400 | [diff] [blame] | 30 | default: "${_param:kubernetes_hyperkube_repo}/hyperkube-amd64:v1.11.3-2" |
Victor Ryzhenkin | 7d5a9d8 | 2018-07-04 05:33:21 +0400 | [diff] [blame] | 31 | 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 Ryzhenkin | 349d669 | 2018-10-23 20:48:09 +0400 | [diff] [blame] | 34 | default: "${_param:kubernetes_hyperkube_repo}/pause-amd64:v1.11.3-2" |
Victor Ryzhenkin | 7d5a9d8 | 2018-07-04 05:33:21 +0400 | [diff] [blame] | 35 | 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 Ryzhenkin | dbf76d3 | 2018-09-28 16:29:22 +0400 | [diff] [blame] | 42 | 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 Ryzhenkin | 7d5a9d8 | 2018-07-04 05:33:21 +0400 | [diff] [blame] | 50 | 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 Ryzhenkin | 349d669 | 2018-10-23 20:48:09 +0400 | [diff] [blame] | 64 | default: "I@kubernetes:pool and not I@kubernetes:master" |
Victor Ryzhenkin | 7d5a9d8 | 2018-07-04 05:33:21 +0400 | [diff] [blame] | 65 | description: "Salt targeted compute nodes (ex. 'cmp* and I@kubernetes:pool') Kubernetes computes" |
Victor Ryzhenkin | 349d669 | 2018-10-23 20:48:09 +0400 | [diff] [blame] | 66 | 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 Ryzhenkin | 497c57f | 2018-10-25 19:21:14 +0400 | [diff] [blame] | 80 | default: ${_param:mcp_docker_registry} |
Victor Ryzhenkin | 349d669 | 2018-10-23 20:48:09 +0400 | [diff] [blame] | 81 | description: "Artifactory URL where docker images located. Needed to correctly fetch conformance images." |
Aleksei Kasatkin | a6048e7 | 2018-11-07 12:03:41 +0100 | [diff] [blame^] | 82 | 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" |