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, 2 months agoKouShikyou
Highly Voted 5 years, 2 months agonitinz
3 years, 9 months agokumarp6
4 years, 1 month agores3
4 years, 5 months agotartar
4 years, 4 months agosimiramis221
Most Recent 1 year agovamgcp
1 year, 10 months agomegumin
2 years, 1 month agoMahmoud_E
2 years, 1 month agoMahmoud_E
2 years, 1 month agoAzureDP900
2 years, 2 months agoSAMBIT
2 years, 9 months agoghadxx
2 years, 10 months agoharoldbenites
3 years agovincy2202
3 years agoZinhle
3 years, 1 month agoMaxNRG
3 years, 1 month agoale183
3 years, 3 months agoxaliq
3 years, 3 months agoRaja101
3 years, 3 months ago