Kubernetes
See all the clusters you have access to with:
kubectl config get-contexts
Your current one is highlighted with an asterisk. If you just want to see your current context, run:
kubectl config current-context
Change to another with:
kubectl config use-context NAME_OF_CONTEXT
With AWS, you might need to refresh your K8s config with:
aws eks update-kubeconfig --region $REGION --name $CLUSTER_NAME
after switching.
AWS
See who you currently are in AWS with:
aws sts get-caller-identity
and just to check you have access to S3:
aws s3 ls s3://BUCKET_NAME/DIRECTORY/
Azure
See who you are with:
az ad signed-in-user show --query id -o tsv
or
az account show
And check access to BLOB storage with:
az storage blob list --account-name ACCOUNT_NAME --container-name BUCKET --output table --prefix acceptancetests/ --delimiter /
GCP
See who you are with:
gcloud auth list
and check storage access with:
gcloud storage ls gs://BUCKET_NAME/DIRECTORY
I've put all these commands here because I keep forgetting them.
No comments:
Post a Comment