Google Kubernetes Engine: Create GKE Cluster and Deploy Sample Website!!

preview_player
Показать описание
You will learn some basic docker commands. Create docker image and publish the image to docker container registry. Finally deploy the sample website to Google Kubernetes Engine cluster.

#gke #gkecluster

Part - 1:
=======
Create a sample website using docker container

docker run -p 8080:80 nginx:latest
docker commit [container-id] cad/web:version1

PART - 2
=======
Deploying container in GKE cluster

gcloud config set project youtube-demo-255723
gcloud config set compute/zone us-central1-a

Creating a GKE cluster

gcloud container clusters create gk-cluster --num-nodes=1
gcloud container clusters get-credentials gk-cluster
This command configures kubectl to use the cluster you created.

Deploying an application to the cluster

Exposing the Deployment
kubectl expose deployment web-server --type LoadBalancer --port 80 --target-port 80

Inspecting and viewing the application
1. Inspect the running Pods by using
  kubectl get pods
2. Inspect the hello-server Service by using 
kubectl get service

Sources:

----------
----------
PLAYLISTS:
----------
- Questions? Thoughts? Disagreements? Tell us here in the comments.
----------
LETS CONNECT:
Рекомендации по теме
Комментарии
Автор

As expected ...simple and sweet ..
Thanks for making our lives easy GK !!

reddyajith
Автор

I would like to thank you for all your contents about GCP, you really cleared out my mind about which cloud Provider peruse as first.

alexbardelli
Автор

Thank you so much! I had been trying to deploy since two days and your video helped me finish my job interview assessment.

dharmeshpatel
Автор

Your lectures are very Insightfull Kartik....thankyou for enriching us

ramroy
Автор

Awesome tutorial. explained in a nice way. Thank you sir

Bijuthtt
Автор

Yes i am able to deploy the html in the cluster. Thank you for your video

svJayaram
Автор

Very well done.
Thanks very much.
You could also build the image out of a Dockerfile, but It was a clear tutorial. Thanks.
Please, send more.

gui
Автор

It was an awesome video, great value in short time

chandrachoodraveendran
Автор

Thanks for making this GKE series. Its helpful. 👍🏼

santoshkudhale
Автор

Nice tutorial. I was able to get my spring boot app up and running

monishverma
Автор

Thank you so much, I found it interesting and a perfect tutorial man🙏

IRegan
Автор

exactly what I was looking for! thank you!

shitsonfireyo
Автор

Thanks for sharing awesome video's . Can you share us the same using declarative way instead of adhoc way and what is Ephemeral Containers ?

sidharthaworld
Автор

This was an excellent video, clarified a lot. Do we need to know the ins and outs of yml file creations for the Google Cloud Associate exam or is this method sufficient?

adamtechdays
Автор

Simply awesome sir. Here you explain with single node can you please do an video if you created more than 1 nodes so that we've better idea sir.

gcpchannelforbegineers
Автор

Hi, can you create a video about the pricing and the best options to use for large-scale web applications?

CSRFVICTIMEmperor
Автор

Hi GK
With the your great help i am following most of your tutorials and able to perform the labs success-fully .
Getting good support from the FB group as well.
This has created my interest in the cloud even more the way to teach is awesome but just one more thing if you give the back ground of what your are going to do in the lab would help even more to beginners.But still you are amazing.

And finally i able to deploy my website in the kubernetes cluster.
One more thing do we need to delete the cluster and docker repository to avoid charges please do let me know

Thanks.

zohebsiddiqui
Автор

Very informative. I tried to create a GKE auto mode cluster with a shared VPC network(private IP range), and assigned necessary IAM roles to the GKE hosted service project with (compute.engineadmin and container.admin roles). While provisioning the gke auto pilot cluster, getting this exception as " Error: Error waiting for creating GKE cluster: All cluster resources were brought up, but: only 0 nodes out of 1 have registered; cluster may be unhealthy." Verified the logs for any key findings, but not helpful. Any thoughts/references on this error scenario to troubleshoot ??

Deevg-fe
Автор

Can we directly deploy an image from dockerhub registry to the GKE cluster?? And also, the video was very informative. Thanks!

verizon
Автор

Hey bro, does GKE set up ssl for you? I see the https on the site. If I deploy a web api it will also have ssl right? I’m planning on deploying 3 separation containers

moosegoose