refined deployment config

This commit is contained in:
2024-09-21 12:58:20 +02:00
parent d9d8aa8e8e
commit 2b8b8390bc
5 changed files with 66 additions and 5 deletions

View File

@@ -40,7 +40,8 @@ kubectl -n <namespace> rollout restart deployment/anyway-backend
### CI/CD and credentials
For the deployment to work, the CI runner needs to authenticate against the kubernetes cluster. This is done by creating a service account in the cluster and providing the CI runner with the necessary credentials through a kubeconfig file. This file is stored as a repository secret `KUBE_CONFIG` and is used by the `kubectl` command in the CI pipeline.
The RBAC configuration for the service included for your reference in the file `rbac.yaml`.
The RBAC configuration for the service included for your reference in the file `rbac.yaml`. To use it, extract the token from the secret `deployment-token-secret`.
Then fill in the token and service account name into the kubeconfig.
### Deployment environments