Managed k8s cheatsheet
AWS
$(aws ecr get-login --region ${AWS_REGION})
aws ecr get-login-password | docker login --username AWS --password-stdin ${ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com
aws eks create-cluster --name ${CLUSTER_NAME} --role-arn ${ROLE_ARN} \
--resources-vpc-config subnetIds=${SUBNET_A_ID},${SUBNET_B_ID},securityGroupIds=${SG_ID}
aws eks ${AWS_REGION} update-kubeconfig --name ${CLUSTER_NAME} --region ${AWS_REGION}
aws eks get-token --name ${CLUSTER_NAME} --region ${AWS_REGION}
aws eks list-clusters --region ${AWS_REGION}
Google Cloud
gcloud auth configure-docker
gcloud container clusters create ${CLUSTER_NAME}
gcloud container clusters get-credentials ${CLUSTER_NAME} --project ${MY_PROJECT}
Azure
az acr login --subscription ${MY_SUBSCRIPTION_NAME} --name ${MY_REPO_NAME}
az aks create --name ${CLUSTER_NAME} --resource-group ${REOURCE_GROUP_NAME}
az aks get-credentials --resource-group ${REOURCE_GROUP_NAME} --name ${CLUSTER_NAME} --subscription ${MY_SUBSCRIPTION}