Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 859 Bytes

kubernetes-cluster-on-gcloud.md

File metadata and controls

35 lines (23 loc) · 859 Bytes

How to create the needed kubernetes resources on Google Cloud?

To play this lab, you need to:

  • have a Kubernetes cluster available (here are the instructions to create one on Google Cloud GKE)

👉 Connect onto Google Cloud with the gcloud sdk

First of all, you have to connect onto your Google Cloud account…

gcloud auth login

Follow the instructions.

👉 Create a Google Cloud project

#TODO: instructions needed here

gcloud projects create gitops-training-flux

👉 Provision a Kubernetes cluster

export region='europe-west1-b'
export name='myk8scluster'

# Setup of the GKE cluster
gcloud container clusters create --region='europe-west1-b' 'myk8scluster'

# Once created (the creation could take ~5 min), get the kube configuration to interact with your GKE cluster
kubectl get nodes