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 | b7dec7c | 2018-07-05 15:01:10 +0400 | [diff] [blame] | 7 | kubernetes_hyperkube_repo: docker-prod-virtual.docker.mirantis.net/mirantis/kubernetes |
Victor Ryzhenkin | 7d5a9d8 | 2018-07-04 05:33:21 +0400 | [diff] [blame] | 8 | jenkins: |
| 9 | client: |
| 10 | job: |
| 11 | deploy-k8s-upgrade: |
| 12 | type: workflow-scm |
| 13 | concurrent: true |
Alexander Evseev | 4589d71 | 2018-08-03 12:36:15 +0200 | [diff] [blame] | 14 | discard: |
| 15 | build: |
| 16 | keep_num: 10 |
| 17 | artifact: |
| 18 | keep_num: 10 |
Victor Ryzhenkin | 7d5a9d8 | 2018-07-04 05:33:21 +0400 | [diff] [blame] | 19 | 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 Ryzhenkin | b7dec7c | 2018-07-05 15:01:10 +0400 | [diff] [blame] | 29 | default: "${_param:kubernetes_hyperkube_repo}/hyperkube-amd64:v1.10.4-4" |
Victor Ryzhenkin | 7d5a9d8 | 2018-07-04 05:33:21 +0400 | [diff] [blame] | 30 | 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 Ryzhenkin | b7dec7c | 2018-07-05 15:01:10 +0400 | [diff] [blame] | 33 | default: "${_param:kubernetes_hyperkube_repo}/pause-amd64:v1.10.4-4" |
Victor Ryzhenkin | 7d5a9d8 | 2018-07-04 05:33:21 +0400 | [diff] [blame] | 34 | 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" |
| 41 | PER_NODE: |
| 42 | type: boolean |
| 43 | default: 'true' |
| 44 | description: "Target nodes will be managed one by one" |
| 45 | TARGET_UPDATES: |
| 46 | type: string |
| 47 | default: "ctl,cmp" |
| 48 | description: "Comma separated list of nodes to update (Valid values are ctl,cmp)" |
| 49 | CTL_TARGET: |
| 50 | type: string |
| 51 | default: "I@kubernetes:master" |
| 52 | description: "Salt targeted kubernetes CTL nodes (ex. I@kubernetes:master). Kubernetes control plane" |
| 53 | CMP_TARGET: |
| 54 | type: string |
| 55 | default: "cmp* and I@kubernetes:pool" |
| 56 | description: "Salt targeted compute nodes (ex. 'cmp* and I@kubernetes:pool') Kubernetes computes" |