Q42. You've deployed a microservice called myapp1 to a Google Kubernetes Engine cluster using the
Q42. You've deployed a microservice called myapp1 to a Google Kubernetes Engine cluster using the YAML file specified below:
---------------------------------------------------------------------------------------------------------------------------
apiversion: apps/v1
kind: Deployment
metadata:
name: myapp1-deployment
spec:
selector:
matchLabels:
app: myappl
replicas: 2
template
metadata:
label:
app: myappl
spe:
containers:
- name: main-container
image: gcr.io/my-company-repo/myapp1:1.4
env:
- name: DB_PASSWORD
value: "tOugh2guess!"
ports:
= containerPort: 8080
---------------------------------------------------------------------------------------------------------------------------
You need to refactor this configuration so that the database password is not stored in plain text. You want to follow Google-recommended practices. What should you do?
A. Store the database password inside the Docker image of the container, not in the YAML file.
B. Store the database password inside a Secret object. Modify the YAML file to populate the DB_PASSWORD environment variable from the Secret.
C. Store the database password inside a ConfigMap object. Modify the YAML file to populate the DB_PASSWORD environment variable from the ConfigMap.
D. Store the database password in a file inside a Kubernetes persistent volume, and use a persistent volume claim to mount the volume to the container.
#Google_Associate_Cloud_Engineer
#GCP_ACE
#Google_Certification
Видео Q42. You've deployed a microservice called myapp1 to a Google Kubernetes Engine cluster using the автора Питоновская эволюция программирования
Видео Q42. You've deployed a microservice called myapp1 to a Google Kubernetes Engine cluster using the автора Питоновская эволюция программирования
Информация
4 декабря 2023 г. 3:49:45
00:01:37
Похожие видео