Hands-On

Cards (3)

  • Create a cluster with 3 nodes:
    gcloud container clusters create myclustername \
    --machine-type e2-small \
    --num-nodes 3 \
    --scopes "https://www.googleapis.com/auth/projecthosting,storage-rw"
  • The explain command in kubectl can tell us about the deployment object:
    • kubectl explain deployment
    You can also see all of the explanation fields using the --recursive option:
    • kubectl explain deployment --recursive
    You can use the explain command to help you understand the structure of a deployment object and understand what the individual fields do:
    • kubectl explain deployment.metadata.name
  • Spec in an Deployment Auth.yaml file