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.

48 lines
1.2 KiB

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