Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKS Exam - Topic 1 Question 24 Discussion

Posted by Lonna on Jun 01, 2022 at 03:38 PM

Cluster: dev

Master node:master1

Worker node:worker1

You can switch the cluster/configuration context using the following command:

[desk@cli] $kubectl config use-context dev

Task:

Retrieve the content of the existing secret namedadamin thesafenamespace.

Store the username field in a file names/home/cert-masters/username.txt, and the password field in a file named/home/cert-masters/password.txt.

1. You must create both files; they don't exist yet.

2. Do not use/modify the created files in the following steps, create new temporary files if needed.

Create a new secret namesnewsecretin thesafenamespace, with the following content:

Username:dbadmin

Password:moresecurepas

Finally, create a new Pod that has access to the secretnewsecretvia a volume:

Namespace: safe

Pod name: mysecret-pod

Container name: db-container

Image: redis

Volume name: secret-vol

Mount path: /etc/mysecret

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
13 comments · newest first
LY
Lynna 12 months ago
Is it necessary to create new temporary files for each step? Seems unnecessary.
CH
Cheryll 1 year ago
Remember to create the files before running the commands!
AH
Ahmed 1 year ago
Wait, did they really use "moresecurepas" as a password? Sounds sketchy.
DI
Dion 1 year ago
Totally agree, double-check the secret names!
JU
Julene 1 year ago
Just a heads up, the secret name is "newsecret" not "adam".
MA
Maxima 1 year ago
I recall that the pod needs to reference the secret in its volume configuration, but I can't remember if I need to specify the namespace again in the pod definition.
GL
Glendora 1 year ago
I practiced a similar question where I had to create a secret and mount it to a pod. I think I used `--from-literal` for the username and password.
LI
Lina 1 year ago
I think I remember needing to use `kubectl get secret` to retrieve the existing secret, but I'm not entirely sure about the exact command syntax.
WI
Willie 1 year ago
I feel a bit uncertain about the file paths for storing the username and password. Was it `/home/cert-masters/` or something else?
WI
Willie 1 year ago
Okay, I think I've got this. The key is that the customer requires the orders to be shipped from Warehouse2, even though the item is usually stocked in Warehouse1. So I'll need to set the customer default to Warehouse2 and the item default order settings to Warehouse1.
LY
Lynsey 1 year ago
Okay, let's see. I know internal auditing is about evaluating an organization's internal controls and processes, while quality assurance is more focused on ensuring products or services meet certain standards. I'll try to apply that knowledge here.
AL
Alesia 1 year ago
I think the key here is to identify the information that is not required, which seems to be the tax return. The other options all seem like relevant due diligence items.
TA
Tamar 1 year ago
This is a pretty straightforward question. I'm confident I can identify the key differences between hard disks and solid state disks.
0/2000 characters

Save Cancel