-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake_cluster.sh
executable file
·20 lines (14 loc) · 1.96 KB
/
make_cluster.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export USER=forrestc
gcloud config set project em-270621
gcloud beta container --project "em-270621" clusters create "${USER}-cluster-2" --zone "us-west1-a" --no-enable-basic-auth --cluster-version "1.21.9-gke.1002" --release-channel "regular" --machine-type "e2-standard-8" --image-type "COS_CONTAINERD" --disk-type "pd-standard" --disk-size "100" --metadata disable-legacy-endpoints=true --scopes "https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append" --max-pods-per-node "110" --preemptible --num-nodes "1" --logging=SYSTEM,WORKLOAD --monitoring=SYSTEM --enable-ip-alias --network "projects/em-270621/global/networks/default" --subnetwork "projects/em-270621/regions/us-west1/subnetworks/default" --no-enable-intra-node-visibility --default-max-pods-per-node "110" --enable-autoscaling --min-nodes "0" --max-nodes "40" --no-enable-master-authorized-networks --addons HorizontalPodAutoscaling,HttpLoadBalancing,GcePersistentDiskCsiDriver --enable-autoupgrade --enable-autorepair --max-surge-upgrade 1 --max-unavailable-upgrade 0 --enable-shielded-nodes --node-locations "us-west1-a"
gcloud container clusters get-credentials --zone us-east1-b leila-cluster-1
kubectl create secret generic secretsminnie \
--from-file=google-secret.json=$HOME/.cloudvolume/secrets/v1dd-pcg-google-secret.json \
--from-file=$HOME/.cloudvolume/secrets/aws-secret.json \
--from-file=cave-secret.json=allen-cave-token.json
kubectl create secret generic boto \
--from-file=minimal_boto
kubectl create secret generic secrets3 \
--from-file=google-secret.json=$HOME/.cloudvolume/secrets/v1dd-pcg-google-secret.json \
--from-file=$HOME/.cloudvolume/secrets/aws-secret.json \
--from-file=cave-secret.json=$HOME/.cloudvolume/secrets/minnie.microns-daf.com-cave-secret.json