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.

77 lines
1.7 KiB

  1. ---
  2. apiVersion: policy/v1beta1
  3. kind: PodSecurityPolicy
  4. metadata:
  5. name: restricted
  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: 'MustRunAsNonRoot'
  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
  46. ---
  47. apiVersion: policy/v1beta1
  48. kind: PodSecurityPolicy
  49. metadata:
  50. name: privileged
  51. annotations:
  52. seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
  53. labels:
  54. kubernetes.io/cluster-service: "true"
  55. addonmanager.kubernetes.io/mode: Reconcile
  56. spec:
  57. privileged: true
  58. allowPrivilegeEscalation: true
  59. allowedCapabilities:
  60. - '*'
  61. volumes:
  62. - '*'
  63. hostNetwork: true
  64. hostPorts:
  65. - min: 0
  66. max: 65535
  67. hostIPC: true
  68. hostPID: true
  69. runAsUser:
  70. rule: 'RunAsAny'
  71. seLinux:
  72. rule: 'RunAsAny'
  73. supplementalGroups:
  74. rule: 'RunAsAny'
  75. fsGroup:
  76. rule: 'RunAsAny'
  77. readOnlyRootFilesystem: false