Automated deployment rollout in Kubernetes

Kubernetes CI/CD rollout restart

Creating a kubernetes credential with permissions to restart deployments. This is useful in CI/CD systems that are to restart a deployment for example when a new image has been pushed to a registry

Create a kubeconfig to authenticate against kubernetes cluster

We will be using token auth as opposed to mtls. First we need a service account

kubectl -n default create sa test-sa

Create long lived token for sa. This command makes the token valid for 10 hours but you can set it to be valid for however long you require.

Helloworld

Hello World

New site powered by hugo