Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

A Beginner's Guide to Kubernetes

Develop Denver, October 18, 2018



  1. Build an app
    • The Node.js app is done! See package.json, index.js, and the public directory
    • Run npm install and npm start to run the app locally
  2. Turn the app into a Docker image
    • See Dockerfile
    • docker build -t kimschles/dvlp-2018 .
    • To create a container locally, run docker run -p 8080:8080 kimschles/dvlp-2018
    • See the app at http://localhost:8080/
  3. Push the image to a registry

To Do:

  1. Create a K8s cluster with GKE
    • Go to
    • Create a project
    • Create a cluster with Google Kubernetes Engine
    • Connect with Cloud Shell
    • git clone this repo
    • cd beginners_guide_to_k8s
  2. Deploy the app to a cluster
    • kubectl apply -f app/namespace.yml
    • kubectl apply -f app/deployment.yml
  3. Expose the app to the internet
  • kubectl apply -f app/hpa.yml
  1. Add some cool K8s stuff
    • Increase the number of replicas
    • Horizontal Pod AutoScaler
      • Test with Apache Bench ab -n 30000 -c 100 http://[external_ip]:[port]/
    • Rolling Updates
  2. Delete your hpa, service, deployment and cluster!