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 in GCP by anonymous
• 4,330 points
22 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 by Sirajul
• 40,980 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 in GCP by Sirajul
• 40,980 points
32 views
0 votes
1 answer
0 votes
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 in GCP by Sirajul
• 40,980 points
48 views