a. Retrieve the content of the existing secret nameddefault-token-xxxxxin the testing namespace.
Store the value of the token in the token.txt
b. Create a new secret named test-db-secret in the DB namespace with the following content:
username:mysql
password:password@123
Create the Pod name test-db-pod of image nginx in the namespace db that can access test-db-secret via a volume at path /etc/mysql-credentials
Suggested Answer: A
Get Premium CKS Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
MI
Minna
1 year ago
Don't forget to set the right permissions on the secret volume!
BA
Barney
1 year ago
Just make sure to use a more secure password for production!
BO
Boris
1 year ago
Wait, is it really safe to use "password@123" for a database?
MA
Mabel
1 year ago
Totally agree, that's the way to do it!
CH
Chu
1 year ago
You can get the token with `kubectl get secret default-token-xxxx -o jsonpath='{.data.token}' | base64 --decode > token.txt`.
NI
Nickole
1 year ago
For the token retrieval, I feel like we might need to specify the namespace with `-n testing`, but I can't recall if that's always necessary.
KI
Kimberely
1 year ago
I remember practicing a similar question where we had to create a secret and mount it in a pod. I think we use `kubectl create secret` for that part.
GR
Gregg
1 year ago
I think for part a, we need to use `kubectl get secret` to retrieve the token, but I'm not entirely sure about the exact command syntax.
TH
Theola
1 year ago
I believe we should also use a volume mount in the pod spec to access the secret, but I'm a bit confused about how to structure that YAML.
IL
Iluminada
1 year ago
Okay, I've got a strategy for this. I'll start by identifying the key features of transparent mode, then match that up with the configuration options to find the one that controls multicast traffic.
CA
Carmela
1 year ago
The out-of-band control plane seems like the most likely answer here. That would allow for secure management and monitoring of the datacenter infrastructure without exposing it to the main network.
DO
Dominque
1 year ago
This is a tricky one. There are a lot of technical details about Oracle Workflow that I'm not super familiar with. I'll just do my best to narrow it down based on what I do know.