How to expose the deployment on GKE Cluster

+2 votes

Hi Guys,

I have launch one deployment on GCP Cloud. I want to expose the deployment from the command line. How can I do that?

Aug 25, 2020 in GCP by akhtar
• 38,260 points
1,489 views

1 answer to this question.

0 votes

Hi@akhtar,

After deploying the application, you need to expose it to the internet so that users can access it. You can expose your application by creating a Service, a Kubernetes resource that exposes your application to external traffic. To expose your application, run the following kubectl expose command.

$ kubectl expose deployment hello-server --type LoadBalancer --port 80 --target-port 8080
answered Aug 25, 2020 by MD
• 95,460 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

How to disable the Kubernetes Dashboard for a GKE cluster?

The Kubernetes Dashboard is disabled by default on ...READ MORE

answered Oct 30, 2019 in GCP by Sirajul
• 59,230 points
2,122 views
+1 vote
1 answer
+2 votes
1 answer

How to create a GKE cluster from command line?

Hi@MD, A cluster consists of at least one cluster master machine ...READ MORE

answered Aug 25, 2020 in GCP by akhtar
• 38,260 points
1,565 views
+2 votes
1 answer

How to delete GKE Cluster from command line?

Hi@akhtar, You can delete your GKE Cluster from ...READ MORE

answered Aug 25, 2020 in GCP by MD
• 95,460 points
2,177 views
+2 votes
1 answer

How to create a project in GCP Cloud?

Hi@akhtar, To deploy your app on App Engine, ...READ MORE

answered Aug 23, 2020 in GCP by MD
• 95,460 points
744 views
+2 votes
1 answer

How to deploy one application on GKE cluster?

Hi@akhtar, GKE uses Kubernetes objects to create and ...READ MORE

answered Aug 25, 2020 in GCP by MD
• 95,460 points
801 views
+2 votes
1 answer

How to get authentication credentials of GKE Cluster from command line?

Hi@akhtar, After creating your cluster, you need to ...READ MORE

answered Aug 25, 2020 in GCP by MD
• 95,460 points
1,752 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP