An open API service indexing awesome lists of open source software.

https://github.com/voronenko/cdci-helm-kubectl

Basic cdci deployment container with kubectl and helm
https://github.com/voronenko/cdci-helm-kubectl

Last synced: 5 months ago
JSON representation

Basic cdci deployment container with kubectl and helm

Awesome Lists containing this project

README

          

## Raw kubectl

```yaml
deploy:
stage: deploy
image: voronenko/cdci-helm-kubectl
script:
- kubectl config set-cluster k8s --server="${SERVER}"
- kubectl config set clusters.k8s.certificate-authority-data ${CERTIFICATE_AUTHORITY_DATA}
- kubectl config set-credentials gitlab --token="${USER_TOKEN}"
- kubectl config set-context default --cluster=k8s --user=gitlab
- kubectl config use-context default
- sed -i "s//${CI_COMMIT_SHORT_SHA}/g" deployment.yaml
- kubectl apply -f deployment.yaml
```

## Helm3

```yaml
deploy:
stage: deploy
image: voronenko/cdci-helm-kubectl
script:
- kubectl config set-cluster k8s --server="${SERVER}"
- kubectl config set clusters.k8s.certificate-authority-data ${CERTIFICATE_AUTHORITY_DATA}
- kubectl config set-credentials gitlab --token="${USER_TOKEN}"
- kubectl config set-context default --cluster=k8s --user=gitlab
- kubectl config use-context default
- helm upgrade your-helm-deployment-name ./your-helm-deployment-path --install --set image.tag=${CI_COMMIT_SHORT_SHA}
```