Deploying Kubernetes in GCP

 This is note of my self learning in GCP via Qwiklabs https://google.qwiklabs.com/focuses/10258?parent=catalog


#change zone

gcloud config set compute/zone us-east1-b


#to create a cluster (this step takes few minutes to complete)

gcloud container clusters create nucleus-cluster




#authentication

gcloud container clusters get-credentials nucleus-cluster



#deployment

kubectl create deployment nucleus-server --image=gcr.io/google-samples/hello-app:1.0


#service

kubectl expose deployment nucleus-server --type=LoadBalancer --port 8080


No comments:

Post a Comment

Things I Do to Stay Relevant in the Tech/Cybersecurity Industry

 I have been working in tech industry for more than 10 years and the past few years in Cybersecurity space. It's been a great journey so...