DEV Community

Cover image for TIL: The path to CKA Week 4.
Jace
Jace

Posted on

TIL: The path to CKA Week 4.

Last week I finished the course in the CKA bundle.
It's time to move on to the kubernetes installation with the hard way😎


Kubernetes The Hard Way is a tutorial walks you through setting up Kubernetes step by step. Meaning without using kubeadm, kubespray or any other tools.

The prerequisites of this tutorial contains GCP.
Since I'ver never use the GCP before, so I toke this as a opportunity.
After I finished the tutorial, my new-created GCP account had not been charged any cent yet.

I think I'll just skip the detail steps and note the TIL.
For those who interested it this tutorial could just click the link above.
Here's the labs for the tutorial, and also the common steps to setup a kubernetes cluster.

  • Installing the Client Tools
  • Provisioning Compute Resources
  • Provisioning the CA and Generating TLS Certificates
  • Generating Kubernetes Configuration Files for Authentication
  • Generating the Data Encryption Config and Key
  • Bootstrapping the etcd Cluster
  • Bootstrapping the Kubernetes Control Plane
  • Bootstrapping the Kubernetes Worker Nodes
  • Configuring kubectl for Remote Access
  • Provisioning Pod Network Routes
  • Deploying the DNS Cluster Add-on

TIL : GCP compute region/zone
At the beginning of the tutorial, I have to prepare the GCP environment.
And there are two commands to set up the region and zone for your GCP compute unit.
A region can be seen as a data center in diffident era of the world.
And the zones are isolated location within a region, kinda like different server in the same data center.
So for the HA deployment, you may have multiple application running in different zone within certain region.

And for those wonder if gcloud command have auto-completion.
You can try

  1. https://cloud.google.com/sdk/docs/interactive-gcloud
  2. https://www.youtube.com/watch?v=ezod_8QDT7Q
  3. https://stackoverflow.com/questions/46236580/how-to-enable-shell-command-completion-for-gcloud

Top comments (0)