Merge branch 'switch-k8s-context' into 'main'
Switch k8s context See merge request ldc-web/shared-ci!3
This commit is contained in:
commit
6e4eb2124d
1 changed files with 6 additions and 2 deletions
|
|
@ -1,10 +1,14 @@
|
|||
variables:
|
||||
KUBERNETES_CLUSTER_NAME: k8s-ldc-web
|
||||
KUBERNETES_VERSION: 1.28.3
|
||||
|
||||
.kubernetes:
|
||||
stage: deploy
|
||||
image:
|
||||
name: alpine/k8s:1.26.0
|
||||
name: "alpine/k8s:${KUBERNETES_VERSION}"
|
||||
entrypoint: ['']
|
||||
variables:
|
||||
KUBE_CONTEXT: ldc-web/cluster-k8s:k8s-ldc-web
|
||||
KUBE_CONTEXT: "ldc-web/cluster-k8s:${KUBERNETES_CLUSTER_NAME}"
|
||||
KUBE_NAMESPACE: default
|
||||
before_script:
|
||||
- kubectl config use-context ${KUBE_CONTEXT}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue