Skip to content

Instantly share code, notes, and snippets.

@yspkm
Last active June 29, 2023 08:54
Show Gist options
  • Save yspkm/27f7f35bd53c66d7c36c4ac54c768cad to your computer and use it in GitHub Desktop.
Save yspkm/27f7f35bd53c66d7c36c4ac54c768cad to your computer and use it in GitHub Desktop.
gcloud
gcloud container clusters create k8s \
--cluster-version 1.27.2-gke.1200 \
--zone asia-northeast3-a \
--num-nodes 3 \
--machine-type n1-standard-4 \
--enable-network-policy \
--enable-vertical-pod-autoscaling
GCP_USER=`gcloud config get-value core/account`
kubectl create clusterrolebinding user-cluster-admin-binding --clusterrole=cluster-admin --user=$GCP_USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment