mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Check in encrypted kubeconfig file
and test it with `kubectl get nodes`
This commit is contained in:
parent
b0c9d818fd
commit
ac6cc8ab2c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
secrets.yaml
|
secrets.yaml
|
||||||
*/secrets.yaml
|
*/secrets.yaml
|
||||||
|
kubeconfig.yaml
|
||||||
|
|||||||
@ -1,7 +1,14 @@
|
|||||||
language: generic
|
language: generic
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- openssl aes-256-cbc -K $encrypted_87342d90efbe_key -iv $encrypted_87342d90efbe_iv -in kubeconfig.yaml.enc -out kubeconfig.yaml -d
|
||||||
install:
|
install:
|
||||||
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
|
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
|
||||||
- chmod +x ./kubectl
|
- chmod +x ./kubectl
|
||||||
- sudo mv ./kubectl /usr/local/bin/kubectl
|
- sudo mv ./kubectl /usr/local/bin/kubectl
|
||||||
|
- mkdir ${HOME}/.kube
|
||||||
|
- cp kubeconfig.yaml ${HOME}/.kube/config
|
||||||
|
|
||||||
|
script:
|
||||||
|
- kubectl get nodes
|
||||||
|
|
||||||
|
|||||||
BIN
kubeconfig.yaml.enc
Normal file
BIN
kubeconfig.yaml.enc
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user