The development team has provided you with a Kubernetes Deployment file. You have no infrastructure yet and need to deploy the application. What should you do?
A.
Use gcloud to create a Kubernetes cluster. Use Deployment Manager to create the deployment.
B.
Use gcloud to create a Kubernetes cluster. Use kubectl to create the deployment.
C.
Use kubectl to create a Kubernetes cluster. Use Deployment Manager to create the deployment.
D.
Use kubectl to create a Kubernetes cluster. Use kubectl to create the deployment.
Create a Google Kubernetes Engine (GKE) cluster: You can use the Google Cloud Console or the gcloud command-line tool to create a GKE cluster, which will provide the underlying infrastructure for running your application.
Deploy the application to the cluster: You can use the kubectl command-line tool to apply the Kubernetes Deployment file provided by the development team to the cluster.kubectl apply -f deployment.yaml
Deployment Manager is used to automate the process of provisioning infrastructure. Therefore, gcloud and Deployment Manager do the same thing. Meanwhile, kubectl is used to run commands against an already created cluster.
Go for B.
gcloud for create clusters.
kubectl is used when the cluster already has been created. For example to create deployments.
Kubectl has configured a config file where is specified the default cluster.
B – use gcloud to create cluster, use kubectl to create a deployment.
https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-zonal-cluster
In fact, kubectl run creates a deployment.
https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
MeasService
Highly Voted 5 years agoKouShikyou
Highly Voted 5 years agonitinz
3 years, 8 months agokumarp6
4 years agores3
4 years, 4 months agotartar
4 years, 2 months agosimiramis221
Most Recent 10 months, 2 weeks agovamgcp
1 year, 9 months agomegumin
1 year, 12 months agoMahmoud_E
2 years agoMahmoud_E
2 years agoAzureDP900
2 years agoSAMBIT
2 years, 7 months agoghadxx
2 years, 9 months agoharoldbenites
2 years, 11 months agovincy2202
2 years, 11 months agoZinhle
3 years agoMaxNRG
3 years agoale183
3 years, 1 month agoxaliq
3 years, 1 month agoRaja101
3 years, 1 month ago