Sidecar injector

Description:

Vault cluster is installed and configured on euwe1c0-gke002arrow-up-right cluster according to the blueprintarrow-up-right.

Vault cluster UI and API is reachable via url https://vault.tech.altenar.net:8200arrow-up-right

Prerequisites:

On the external cluster create:

  • Namespace (optional)

  • Service account

  • Deployment

Configuration steps:

1 Install vault helm chart on the application cluster:

Configure Kubernetes authentication on the vault server

3. On the app cluster:

First, get the JSON web token (JWT) from the secret.

Next, retrieve the Kubernetes CA certificate.

$ KUBE_CA_CERT=$(kubectl config view --raw --minify --flatten --output='jsonpath={.clusters[].cluster.certificate-authority-data}' | base64 --decode)

Next, retrieve the Kubernetes host URL.

$ KUBE_HOST=$(kubectl config view --raw --minify --flatten --output='jsonpath={.clusters[].cluster.server}')

4. Exec to vault pod and configure authentication method

5. check the configuration

1vault read auth/cluster-name/config

6. Create a Kubernetes authentication role

7. Restart the deployment on the app cluster

rollout restart deployment orgchart

8. Display the secret written to the website container in the website pod.

Last updated