Use the kubesec docker images to scan the given YAML manifest, edit and apply the advised changes, and passed with a score of 4 points.
kubesec-test.yaml
apiVersion: v1
kind: Pod
metadata:
name: kubesec-demo
spec:
containers:
- name: kubesec-demo
image: gcr.io/google-samples/node-hello:1.0
securityContext:
readOnlyRootFilesystem: true
Hint:docker run -i kubesec/kubesec:512c5e0 scan /dev/stdin < kubesec-test.yaml
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
39 comments · newest first
RO
Rolf
11 months ago
Nice, but I’m skeptical about the scoring system.
JU
Junita
11 months ago
I thought the default image was secure enough, guess not.
LA
Lacresha
12 months ago
Wait, why is CAP_SYS_ADMIN even in there? That's risky!
KI
Kimbery
12 months ago
Totally agree, readOnlyRootFilesystem is a must!
VI
Viva
1 year ago
Just ran the scan, got a score of 4!
FE
Felicitas
1 year ago
I definitely remember the importance of `readOnlyRootFilesystem`, but I hope I don't forget to check for other security settings like capabilities.
AU
Augustine
1 year ago
I feel a bit uncertain about the exact command to run the scan. I know it involves `docker run`, but I might mix up the syntax.
GA
Galen
1 year ago
I think we had a similar question about setting `runAsNonRoot` to improve security. I hope I can recall that detail.
RE
Reynalda
1 year ago
I remember we practiced using kubesec to scan YAML files, but I'm not sure if I set the security context correctly last time.
FR
Frank
1 year ago
This seems pretty straightforward. I'll give it a try and see if I can get the 4-point score.
CA
Candida
1 year ago
No problem, I've used kubesec before. I'll just follow the steps in the question and make the necessary updates to the YAML to pass the scan.
AD
Adela
1 year ago
Okay, I think I've got it. I'll scan the YAML, review the issues, and then update the manifest to address the advised changes. Hopefully, I can get a score of 4 points.
LO
Lorenza
1 year ago
Hmm, I'm a bit confused about the hint. Do I need to run the kubesec image in a specific way to get the scan results?
KI
Kizzy
1 year ago
This looks straightforward. I'll start by running the kubesec docker image to scan the YAML manifest and see what issues it identifies.
SH
Sherron
1 year ago
Hmm, I'm a bit unsure about this one. There are a few options that seem relevant, but I'm not totally confident I know the best approach. I'll need to think it through carefully and make sure I understand the key considerations for this type of role.
ME
Mertie
1 year ago
I remember a practice question where we discussed the necessity of attainments, which seems relevant here, too.
GA
Gary
1 year ago
Hmm, I'm a bit unsure about this one. I know there are different types of power, but I can't quite remember which one is based on the manager's position. I'll have to think this through carefully.
KE
Kenneth
1 year ago
Kubesec? More like Kube-awesome! This tool is going to make my life so much easier. Time to secure all the things!
GR
Gregoria
1 year ago
User 3: Can't wait to see the improvements in our security scores!
RE
Reid
1 year ago
User 2: Absolutely, it's going to help us secure our deployments better.
CO
Colby
1 year ago
User 1: Kubesec is a game-changer for sure!
RO
Royce
2 years ago
Wait, I need to run a container to scan the YAML file? That's a bit inconvenient. I hope there's an easier way to use this tool.
LA
Lashonda
1 year ago
Once you get the hang of it, it becomes a quick process.
PA
Paola
1 year ago
It may seem inconvenient, but it's an effective way to ensure security.
VA
Valentin
1 year ago
You just need to run the docker command with the specified image.
LA
Lavera
1 year ago
Yes, you can use the kubesec docker images to scan the YAML manifest.
SH
Shaquana
2 years ago
Hmm, I wonder if the kubesec tool can also scan my Docker images for security vulnerabilities. That would be a nice bonus.
SH
Sharen
2 years ago
Scanning the YAML manifest and applying the suggested changes seems straightforward. I'm confident I can get a score of 4 points.
FR
Francis
2 years ago
I passed with a score of 4 points after making the changes.
HE
Helga
2 years ago
I edited and applied the advised changes to the kubesec-test.yaml.
FR
Francis
2 years ago
I found the kubesec docker images to scan the YAML manifest.
JO
Johana
2 years ago
Yes, following the hints and making the necessary changes can help us pass with a good score.
SE
Selene
2 years ago
The kubesec tool looks really useful for scanning and improving my Kubernetes manifests. I'll definitely give it a try.
ME
Melissa
1 year ago
The kubesec tool is indeed helpful for enhancing Kubernetes manifest security.
EV
Evette
1 year ago
I passed with a score of 4 points after making the advised changes.
SH
Sharika
1 year ago
I edited the manifest based on the suggestions and rescanned it with kubesec.
FR
Francine
1 year ago
I used the kubesec tool to scan my YAML manifest and got some suggestions for improving security.
BR
Brock
2 years ago
I agree, it's important to edit and apply the advised changes to improve security.
JO
Johana
2 years ago
I found the kubesec docker images very helpful for scanning the YAML manifest.