Linux Foundation Certified Kubernetes Security Specialist (CKS) CKS Question # 8 Topic 1 Discussion

Linux Foundation Certified Kubernetes Security Specialist (CKS) CKS Question # 8 Topic 1 Discussion

CKS Exam Topic 1 Question 8 Discussion:
Question #: 8
Topic #: 1

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


Get Premium CKS Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.