| # |
| # Jobs to update cloud packages on given Salt master environment |
| # |
| parameters: |
| _param: |
| jenkins_salt_api_url: "http://${_param:salt_master_host}:6969" |
| kubernetes_hyperkube_repo: ${_param:mcp_docker_registry}/mirantis/kubernetes |
| jenkins: |
| client: |
| job: |
| deploy-k8s-upgrade: |
| type: workflow-scm |
| concurrent: true |
| discard: |
| build: |
| keep_num: 10 |
| artifact: |
| keep_num: 10 |
| display_name: "Deploy - update kubernetes cluster" |
| scm: |
| type: git |
| url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| branch: "${_param:jenkins_pipelines_branch}" |
| credentials: "gerrit" |
| script: k8s-upgrade-pipeline.groovy |
| param: |
| KUBERNETES_HYPERKUBE_IMAGE: |
| type: string |
| default: "${_param:kubernetes_hyperkube_repo}/hyperkube-amd64:v1.11.3-2" |
| description: "Versioned image to update control plane from. Should be null if update rolling via reclass-system level" |
| KUBERNETES_PAUSE_IMAGE: |
| type: string |
| default: "${_param:kubernetes_hyperkube_repo}/pause-amd64:v1.11.3-2" |
| description: "Versioned pause image to use in deployments. Should be null if update rolling via reclass-system level" |
| SALT_MASTER_URL: |
| type: string |
| default: "${_param:jenkins_salt_api_url}" |
| SALT_MASTER_CREDENTIALS: |
| type: string |
| default: "salt-qa-credentials" |
| SIMPLE_UPGRADE: |
| type: boolean |
| default: 'false' |
| description: "Choose between simple upgrade or upgrade with draining nodes" |
| UPGRADE_DOCKER: |
| type: boolean |
| default: 'false' |
| description: "Upgrade docker or not" |
| PER_NODE: |
| type: boolean |
| default: 'true' |
| description: "Target nodes will be managed one by one" |
| TARGET_UPDATES: |
| type: string |
| default: "ctl,cmp" |
| description: "Comma separated list of nodes to update (Valid values are ctl,cmp)" |
| CTL_TARGET: |
| type: string |
| default: "I@kubernetes:master" |
| description: "Salt targeted kubernetes CTL nodes (ex. I@kubernetes:master). Kubernetes control plane" |
| CMP_TARGET: |
| type: string |
| default: "I@kubernetes:pool and not I@kubernetes:master" |
| description: "Salt targeted compute nodes (ex. 'cmp* and I@kubernetes:pool') Kubernetes computes" |
| CONFORMANCE_RUN_AFTER: |
| type: boolean |
| default: "false" |
| description: "Run conformance tests after upgrade" |
| CONFORMANCE_RUN_BEFORE: |
| type: boolean |
| default: "false" |
| description: "Run conformance tests before upgrade" |
| TEST_K8S_API_SERVER: |
| type: string |
| default: "http://127.0.0.1:8080" |
| description: "Local kubernetes apiserver variable for conformance tests" |
| ARTIFACTORY_URL: |
| type: string |
| default: ${_param:mcp_docker_registry} |
| description: "Artifactory URL where docker images located. Needed to correctly fetch conformance images." |