Q: 4
You have a Dockerfile that you need to deploy on Kubernetes Engine. What should you do?
Options
Discussion
Had something like this in a mock and went with B. I thought since App Engine also uses Dockerfiles,
gcloud app deploy should work for Kubernetes Engine too. But now that I think about it, maybe that's only for App Engine deployments. Anyone else tripped up by the similar commands?Option C
C (unless GKE ever starts supporting image pulls straight from Cloud Storage, which as far as I know, it doesn't). Only Container/Artifact Registry are natively supported for images. Just flagging this since exam wording could change!
It’s C, since Kubernetes needs container images stored in a registry like Container Registry for deployments. D is a trap, Cloud Storage isn’t designed for Kubernetes image pulls. Pretty sure about this but open to hearing if anyone disagrees.
C
C/D? D is a trap, images in Cloud Storage won't work with kubectl. Pretty sure C is it.
C imo
C
Be respectful. No spam.