After the service account is created, obtain the access token for that service account:
- Log into Kubernetes cluster using CLI command line.
- Describe the service account to get details:
- Obtain the access token of the service account using the Tokens above:
- Obtain the API server address:
kubectl describe sa auto-deployment-sa
kubectl describe secrets auto-deployment-sa-token-zqcc4
kubectl config view
Make a note of the access token and the API server address.