You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.1 KiB

  1. ---
  2. apiVersion: policy/v1beta1
  3. kind: PodSecurityPolicy
  4. metadata:
  5. name: ingress-nginx
  6. annotations:
  7. seccomp.security.alpha.kubernetes.io/defaultProfileName: 'runtime/default'
  8. seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'runtime/default'
  9. {% if apparmor_enabled %}
  10. apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
  11. apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default'
  12. {% endif %}
  13. labels:
  14. addonmanager.kubernetes.io/mode: Reconcile
  15. spec:
  16. privileged: false
  17. allowPrivilegeEscalation: true
  18. allowedCapabilities:
  19. - NET_BIND_SERVICE
  20. volumes:
  21. - 'configMap'
  22. - 'emptyDir'
  23. - 'projected'
  24. - 'secret'
  25. - 'downwardAPI'
  26. - 'persistentVolumeClaim'
  27. hostNetwork: {{ ingress_nginx_host_network|bool }}
  28. hostPorts:
  29. - min: 0
  30. max: 65535
  31. hostIPC: false
  32. hostPID: false
  33. runAsUser:
  34. rule: 'MustRunAsNonRoot'
  35. seLinux:
  36. rule: 'RunAsAny'
  37. supplementalGroups:
  38. rule: 'MustRunAs'
  39. ranges:
  40. - min: 1
  41. max: 65535
  42. fsGroup:
  43. rule: 'MustRunAs'
  44. ranges:
  45. - min: 1
  46. max: 65535
  47. readOnlyRootFilesystem: false