👾Kubernetes

RG
R

plunge-staging

plunge-lucky-cycle-staging

plunge-production

plunge-lucky-cycle-production

aks-rancher-cluster-rg

lucky-cycle-aks-rancher-cluster


To list the "service principal" credentials:

SP_ID=$(az aks show --resource-group <RG> --name <R> --query servicePrincipalProfile.clientId -o tsv)
az ad app credential list --id "$SP_ID" --query "[].endDateTime" -o tsv

To generate a new one (takes some time to apply):

SP_ID=$(az aks show --resource-group <RG> --name <R> --query servicePrincipalProfile.clientId -o tsv)
SP_SECRET=$(az ad app credential reset --id "$SP_ID" --query password -o tsv)
az aks update-credentials --resource-group <RG> --name <R> --reset-service-principal --service-principal "$SP_ID" --client-secret "${SP_SECRET}"

To list add-ons:

az aks show --resource-group <RG> --name <R> --query addonProfiles

To be compared with breaking changes per release: https://learn.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#aks-components-breaking-changes-by-version

To list APIs:

az aks get-credentials --resource-group <RG> --name <R>
kubectl get --raw / | jq .

To be compared with: https://kubernetes.io/docs/reference/using-api/deprecation-guide/

Also possible to use Pluto for API checks (but results are inconsistent?):

brew install FairwindsOps/tap/pluto

pluto detect-all-in-cluster -o wide 2>/dev/null
pluto detect-helm -o wide
pluto detect-api-resources -o wide

Last updated