Topic 1 Question 116
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?
Use the gsutil utility to copy files from within the Docker container at startup, and start the service using an ENTRYPOINT script.
Create a PersistentVolumeClaim on the GKE cluster. Access the configuration files from the volume, and start the service using an ENTRYPOINT script.
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.
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.
ユーザの投票
コメント(9)
It's not necessary to mount NFS to each node in GKE. Just create PVC point to shared NFS, mount to container, and use configuration in ENTRYPOINT. Vote B
👍 7Ksamilosb2022/02/20vote C
👍 4assuf2022/01/06- 正解だと思う選択肢: B
B is correct
👍 3tomato1232022/08/19
シャッフルモード