Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Creating a kubernetes service cluster

#In this step, you have to create a Kubernetes Service Cluster
#1. Create the cluster in the us-east1 region.
#2. Using the Docker container hello-app (`gcr.io/google-samples/hello-app:2.0`) as a place holder.
#3. Open the app on port 8080
#4. Activate Cloud Shell and write the following commands
gcloud config set compute/zone us-east1-b
gcloud container clusters create nucleus-jumphost-webserver1
gcloud container clusters get-credentials nucleus-jumphost-webserver1
kubectl create deployment hello-app --image=gcr.io/google-samples/hello-app:2.0
kubectl expose deployment hello-app --type=LoadBalancer --port 8080
kubectl get service
Source by mayankchourasia2.medium.com #
 
PREVIOUS NEXT
Tagged: #Creating #kubernetes #service #cluster
ADD COMMENT
Topic
Name
5+7 =