When you need to gain kubectl
access to a platform-environments Kubernetes cluster.
- An authenticated
az
cli (from the host). This likely meansaz login --tenant TENANT_ID
, where the tenant id is that of "DPL Platform". See Azure Portal > Tenant Properties. The logged in user must have permissions to list cluster credentials. docker
cli which is authenticated against the GitHub Container Registry. The access token used must have theread:packages
scope.
- cd to
dpl-platform/infrastructure
- Launch the dpl shell:
dplsh
- Set the platform envionment, eg. for "dplplat01":
export DPLPLAT_ENV=dplplat01
- Authenticate:
task cluster:auth
Your dplsh session should now be authenticated against the cluster.