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.

45 lines
1.1 KiB

  1. ---
  2. apiVersion: policy/v1beta1
  3. kind: PodSecurityPolicy
  4. metadata:
  5. name: registry
  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: false
  19. requiredDropCapabilities:
  20. - ALL
  21. volumes:
  22. - 'configMap'
  23. - 'emptyDir'
  24. - 'projected'
  25. - 'secret'
  26. - 'downwardAPI'
  27. - 'persistentVolumeClaim'
  28. hostNetwork: false
  29. hostIPC: false
  30. hostPID: false
  31. runAsUser:
  32. rule: 'RunAsAny'
  33. seLinux:
  34. rule: 'RunAsAny'
  35. supplementalGroups:
  36. rule: 'MustRunAs'
  37. ranges:
  38. - min: 1
  39. max: 65535
  40. fsGroup:
  41. rule: 'MustRunAs'
  42. ranges:
  43. - min: 1
  44. max: 65535
  45. readOnlyRootFilesystem: false