Today when I start kubernetes(v1.15) pod, show this error:
Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "soa-user-service-7bf6d9886b-vd422": Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:303: getting the final child's pid from pipe caused \"EOF\"": unknown
I tried execute this command in host(CentOS Linux release 7.6.1810 (Core)
):
[root@uat-k8s-02 ~]# sysctl -w user.max_user_namespaces=15000
user.max_user_namespaces = 15000
but the problem still exists. what should I do to fix it?
Docker related issue. Almost each time on Centos Please take a look here:
Ways to resolve:
If you are using GKE, you can check if below is correct in your configuration. Source comment.
resources:
limits:
cpu: 1100m
memory: 3000m # correct: 3000M
requests:
cpu: 1100m
memory: 3000m # correct: 3000M