Skip to main content

Sprint 02

Updated Sep 21, 2020 ·

Todo

Todo:

✔️ Setting up a GKE cluster. ✔️ Verify connection to the GKE cluster.

Steps

  1. Login to your GCP account and go to the GKE menu. Click CREATE > Standard: You manage your cluster > CONFIGURE.

  2. Provide the following specifics for the cluster:

    Basics:

    • Name: cluster-1
    • Location type: Zonal
    • Zone: asia-southeast1-a

  3. The cluster creation may take up 5-10 mins. Once done, it should appear in the Clusters menu. Click the clsuter name to see details of the cluster.

  4. Maintenance window. For production environments, it is recommended to change the maintenance window from Any time to xx.

  1. To connect to the cluster, click CONNECT. It will show the available options to connect to the cluster. Click RUN IN CLOUD SHELL. This will open a Linux terminal.

    In the "Authorize Cloud Shell" window, click AUTHORIZE. A kubeconfig will then be generated.

    Run some kubectl commands to test.

    kubectl get ns  
    kubectl get po -n kube-system

    Note: These information can also be seen from the GCP console.