grantr / helloworld-crd

Repository for sample controller. Complements sample-apiserver
Apache License 2.0
3 stars 2 forks source link

Add a gcloud command for creating a GKE cluster with the appropriate configuration. #7

Open mattmoor opened 6 years ago

mattmoor commented 6 years ago

This needs: --enable-legacy-authorization

mattmoor commented 6 years ago

I think this is probably what we want:

gcloud --project=$PROJECT_ID container clusters create \
  --cluster-version=1.8.5-gke.0 \
  --enable-legacy-authorization \
  --zone=us-central1-a \
  --scopes=cloud-platform \
  --enable-autoupgrade \
  --enable-autorepair \
  --enable-autoscaling --min-nodes=1 --max-nodes=10 \
  $PROJECT_ID-sample

The oauth scopes can be tuned to something smaller, but this makes a dev cluster a bit more future proof wrt auth needs.