Exam4Training

What should you do?

You have containerized a legacy application that stores its configuration on an NFS share. You need to deploy this application to Google Kubernetes Engine (GKE) and do not want the application serving traffic until after the configuration has been retrieved.

What should you do?
A . Use the gsutil utility to copy files from within the Docker container at startup, and start the service using an ENTRYPOINT script.
B . Create a PersistentVolumeClaim on the GKE cluster. Access the configuration files from the volume, and start the service using an ENTRYPOINT script.
C . Use the COPY statement in the Dockerfile to load the configuration into the container image. Verify that the configuration is available, and start the service using an ENTRYPOINT script.
D . Add a startup script to the GKE instance group to mount the NFS share at node startup. Copy the configuration files into the container, and start the service using an ENTRYPOINT script.

Answer: D

Explanation:

Reference: https://cloud.google.com/compute/docs/instances/startup-scripts/linux

Exit mobile version