I want to run pods with runsc as default on my k8s nodes but kube-proxy or other nodes can't be run via runsc. So, I want to automate the process in a way that after the Kubernetes start, every new pod will be run via runsc.
I want to run pods with runsc as default on my k8s nodes but kube-proxy or other nodes can't be run via runsc. So, I want to automate the process in a way that after the Kubernetes start, every new pod will be run via runsc.
According to the official documentation, this can be done with the below steps:
Specify a runtimeClassName in the Pod spec.
A step by step guide alongside all necessary details can be found in the linked docs.
Notice that:
low-level resources, such as nodes and persistentVolumes, are not in any namespace, RuntimeClass is a non-namespaced resource
RuntimeClass assumes a homogeneous node configuration across the cluster by default (which means that all nodes are configured the same way with respect to container runtimes). To support heterogeneous node configurations, see Scheduling below.