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:

apiVersion: v1
kind: Pod
  name: securityreview
  #  runAsUser: 2100
  - name:  webguy
    image: nginx
      # runAsUser: 3000
      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.


Upcoming Training