gcloud init
gcloud auth list
# Name of cluster
export CLUSTER=platzi-cluster
echo $CLUSTER
#Set config Zone. South Carolina, USA us-east1
#You can check the media latency from your region in http://www.gcping.com/
export ZONE=us-central1-a
echo $ZONE
gcloud container clusters create $CLUSTER --addons HorizontalPodAutoscaling,HttpLoadBalancing,CloudRun --enable-ip-alias --enable-stackdriver-kubernetes --machine-type n1-standard-2 --zone $ZONE
- Create a cluster with name platzi-cluster: gcloud container clusters create $CLUSTER
- Add the following addons (Complementos) and enable them:
- HorizontalPodAutoscaling: Automatically scales the number of pods in a replication controller, deployment, replica set or stateful set based on observed CPU utilization. Ref https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
- HttpLoadBalancing.
- CloudRun
- Set alias, it is a good idea NOT use IP, it is better alias: –enable-stackdriver-kubernetes
- Mandatory set machine type: –machine-type n1-standard-2
- Mandatory set zone: –zone $ZONE
¿Quieres ver más aportes, preguntas y respuestas de la comunidad? Crea una cuenta o inicia sesión.