Showing posts with label Kubernetes. Show all posts
Showing posts with label Kubernetes. Show all posts

Friday, March 12, 2021

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