event-exporter-psp.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. apiVersion: policy/v1beta1
  2. kind: PodSecurityPolicy
  3. metadata:
  4. name: gce.event-exporter
  5. annotations:
  6. kubernetes.io/description: 'Policy used by the event-exporter addon.'
  7. seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default'
  8. seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'runtime/default,docker/default'
  9. # 'runtime/default' is already the default, but must be filled in on the
  10. # pod to pass admission.
  11. apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
  12. apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default'
  13. labels:
  14. kubernetes.io/cluster-service: 'true'
  15. addonmanager.kubernetes.io/mode: Reconcile
  16. spec:
  17. privileged: false
  18. allowPrivilegeEscalation: false
  19. volumes:
  20. - 'hostPath'
  21. - 'secret'
  22. - 'projected'
  23. # TODO: This only needs a hostPath to read /etc/ssl/certs,
  24. # but it should be able to just include these in the image.
  25. allowedHostPaths:
  26. - pathPrefix: /etc/ssl/certs
  27. hostNetwork: false
  28. hostIPC: false
  29. hostPID: false
  30. # TODO: This doesn't need to run as root.
  31. runAsUser:
  32. rule: 'RunAsAny'
  33. seLinux:
  34. rule: 'RunAsAny'
  35. supplementalGroups:
  36. rule: 'RunAsAny'
  37. fsGroup:
  38. rule: 'RunAsAny'
  39. readOnlyRootFilesystem: false