Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12244

Unable to set kernel.core_pattern for the pods [duplicate]

$
0
0

I am trying to modify the kernel.core_pattern but I am unable to modify it as it is Read-Only.

I have tried:echo 'kernel.core_pattern=/tmp/core-%e.%p.%h.%t'>> /etc/sysctl.confReload sysctl:sysctl --system

Applying /etc/sysctl.conf ...sysctl: setting key "kernel.core_pattern": Read-only file systemcat /proc/sys/kernel/core_pattern|/usr/share/apport/apport %p %s %c %d %P %E

I am no able to add it to the pod yaml either:spec:securityContext:sysctls:

  • name: kernel.core_patternvalue: "/tmp/core-%e.%p.%h.%t"

I keep getting this:SysctlForbidden

I created a PodSecurityPolicy as well:apiVersion: policy/v1beta1kind: PodSecurityPolicymetadata:name: sysctl-pspspec:privileged: false # Don't allow privileged pods!seLinux:rule: RunAsAnysupplementalGroups:rule: RunAsAnyrunAsUser:rule: RunAsAnyfsGroup:rule: RunAsAnyallowedUnsafeSysctls:kernel.*

Still no luck.

Any suggestions?


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>