We're going to deploy a basic nginx docker container to the cluster.
- Create a new directory called
K8s
- Copy the following into a file called
my-nginx-deployment.yaml
apiVersion: apps/v1beta1
kind: Deployment
Download, install and run the interactive installer specific to your platform (Linux, Windows, or Mac) https://cloud.google.com/sdk/downloads#interactive
Make sure to run gcloud init
once setup, this will log into your gcloud account.
Install Kubectl (command line tool for interacting with K8s Cluster):
gcloud components install kubectl
Note: Whilst gcloud/kubectl are installing head over to: console.cloud.google.com and start with either the Create kubernetes Cluster section and/or the Connect to Kubernetes Cluster section depending if you are using the free account assigned or your own.