Skip to content
Snippets Groups Projects
Commit b15e685a authored by Erwan Miran's avatar Erwan Miran Committed by k8s-ci-robot
Browse files

sysctl related PodSecurityPolicy spec since 1.12 (#3743)

parent c5e425b0
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,10 @@ spec:
- min: 1
max: 65535
readOnlyRootFilesystem: false
{% if kube_version is version('v1.12.1', '>=') %}
forbiddenSysctls:
- '*'
{% endif %}
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
......@@ -75,3 +79,8 @@ spec:
fsGroup:
rule: 'RunAsAny'
readOnlyRootFilesystem: false
{% if kube_version is version('v1.12.1', '>=') %}
# This will fail if allowed-unsafe-sysctls is not set accordingly in kubelet flags
allowedUnsafeSysctls:
- '*'
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment