Welcome to the Linux Foundation Forum!

Exercise A.3 34:

  1. Edit the pod such that the securityContext is in place and allows the web server to read the proper configuration files

This yaml works:

  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: securityreview
  5. spec:
  6. #securityContext:
  7. # runAsUser: 2100
  8. containers:
  9. - name: webguy
  10. image: nginx
  11. securityContext:
  12. # runAsUser: 3000
  13. allowPrivilegeEscalation: false

But again, it is unclear if this a correct answer because in my yaml the securityContext is in place, but I think the securityContext defaults to false.

BTW: This PDF in HTML is driving me crazy. If you want to copy text word often get gluedtogethersothatyouneedtoinsertspaces.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training