Last active
June 29, 2023 08:54
-
-
Save yspkm/27f7f35bd53c66d7c36c4ac54c768cad to your computer and use it in GitHub Desktop.
gcloud
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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