I'm having a problem with kube & Cri-o. Actually I'm deploying a kube cluster and I just wan't to deploy the dashboard. I've installed CRIO instead of Docker (RHEL8 in production environment). The output log of the "describe pod" command is :
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 11m default-scheduler Successfully assigned kubernetes-dashboard/dashboard-metrics-scraper-6b4884c9d5-fwdv9 to worker-node1
Warning FailedCreatePodSandBox 95s (x48 over 11m) kubelet, worker-node1 Failed to create pod sandbox: rpc error: code = Unknown desc = seccomp is not enabled in your kernel, cannot run with a profile
I've tried this : grep SECCOMP /boot/config-$(uname -r)
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_SECCOMP_FILTER=y
CONFIG_SECCOMP=y
With these returns I think this is enabled ...
During my install of kube, I found a seccomp.json file in my system, I've tried to set the absolut path in the seccomp_profile
section in the CRI-O's config, but not ... It wasn't the solution ...
Does anyone have an idea ...?
Regards,
Kubernetes Dashboard Deployment yaml the seccomp by default is set to
seccomp.security.alpha.kubernetes.io/pod: 'runtime/default'
This means it's using default container runtime profile which we can read here
There is a github issue for Unexpected behavior with empty seccomp profile. In the discussion @saschagrunert mentions:
As already mentioned by @CptBuko, he manged a workaround for himself by setting
seccomp.security.alpha.kubernetes.io/pod: unconfined
which is not applying seccomp to the container processes.