
Explanation:
The correct answer is D. The proper steps involve creating a Docker container image, pushing it to the Google Container Registry, and then deploying it to Kubernetes using kubectl. This method ensures your application is properly packaged and deployed in a Kubernetes environment.
For more details, refer to the GCP documentation on Kubernetes Engine Deploy.
Ultimate access to all questions.
No comments yet.
Your team is developing a web application intended for deployment on Kubernetes. Currently, you have a functional Dockerfile tested locally. What is the correct sequence to deploy this application to Kubernetes?
A
Use kubectl to directly convert the Dockerfile into a Kubernetes deployment.
B
Create a container image with Docker, upload it to Cloud Storage, and then deploy it to Kubernetes using kubectl.
C
Directly apply the Dockerfile to Kubernetes using kubectl apply.
D
Build a container image using Docker, push it to the Google Container Registry, and deploy it to Kubernetes with kubectl.