Deploying workloads to a GKE cluster

0 votes
How to deploy a stateless application on a GKE cluster? Is it the same as it is done in Kubernetes?
Nov 12, 2019 in GCP by anonymous
• 6,260 points
1,094 views

1 answer to this question.

0 votes

You create a Deployment using one of the following methods:

  • You can use the Deploy feature in Google Cloud Platform Console's Workloads menu to create a simple Deployment from a container image you've stored in Container Registry

  • You can write a Deployment manifest and run kubectl apply to create the resource

You can declaratively create and update Deployments from manifest files using kubectl apply. This method also retains updates made to live resources without merging the changes back into the manifest files.

To create a Deployment from its manifest file, run the following command:

kubectl apply -f [DEPLOYMENT_FILE]

where [DEPLOYMENT_FILE] is the manifest file, such as config.yaml.

You can also use kubectl apply -f [DIRECTORY]/ to create all objects (except existing ones) defined in manifest files stored a directory.

answered Nov 12, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

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,093 views
+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,544 views
0 votes
1 answer

Mounting a Google cloud storage bucket to a GKE pod as a persistent disk.

Yes, its possible. There's a similar project,follow ...READ MORE

answered Oct 16, 2019 in GCP by Sirajul
• 59,230 points
9,903 views
+1 vote
1 answer
0 votes
1 answer

Can I create a load balancer with path based routing in GKE?

Yes, it's possible. Note that you simply will use the internal Load balancing (ILB) for ...READ MORE

answered Oct 10, 2019 in GCP by Sirajul
• 59,230 points
1,167 views
0 votes
1 answer
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