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

Books I Used to Get My Cybersecurity Certifications

Disclaimer: I'm a big fan of Mike Chapple books and I've been using his books to prepare for all my three cybersecurity certificatio...