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.

56 lines
1.2 KiB

  1. ---
  2. apiVersion: policy/v1beta1
  3. kind: PodSecurityPolicy
  4. metadata:
  5. name: registry-proxy
  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. addonmanager.kubernetes.io/mode: Reconcile
  15. spec:
  16. privileged: false
  17. allowPrivilegeEscalation: false
  18. requiredDropCapabilities:
  19. - SETPCAP
  20. - MKNOD
  21. - AUDIT_WRITE
  22. - NET_RAW
  23. - DAC_OVERRIDE
  24. - FOWNER
  25. - FSETID
  26. - KILL
  27. - SYS_CHROOT
  28. - SETFCAP
  29. volumes:
  30. - 'configMap'
  31. - 'emptyDir'
  32. - 'projected'
  33. - 'secret'
  34. - 'downwardAPI'
  35. - 'persistentVolumeClaim'
  36. hostNetwork: true
  37. hostPorts:
  38. - min: {{ registry_port }}
  39. max: {{ registry_port }}
  40. hostIPC: false
  41. hostPID: false
  42. runAsUser:
  43. rule: 'RunAsAny'
  44. seLinux:
  45. rule: 'RunAsAny'
  46. supplementalGroups:
  47. rule: 'MustRunAs'
  48. ranges:
  49. - min: 1
  50. max: 65535
  51. fsGroup:
  52. rule: 'MustRunAs'
  53. ranges:
  54. - min: 1
  55. max: 65535
  56. readOnlyRootFilesystem: false