Is there a way to make a RunTimeClass default for a namespace?

Viewed 163

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.

1 Answers

According to the official documentation, this can be done with the below steps:

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.

Related