Access Kubernetes¶
When to use¶
When you need to gain kubectl access to a platform-environments Kubernetes cluster.
Prerequisites¶
- An authenticated
azcli (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. dockercli which is authenticated against the GitHub Container Registry. The access token used must have theread:packagesscope.
Procedure¶
- 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.