1
1
---
2
2
reviewers :
3
- - tallclair
4
- - dchen1107
3
+ - tallclair
4
+ - dchen1107
5
5
title : Runtime Class
6
6
content_type : concept
7
7
weight : 20
@@ -16,9 +16,6 @@ This page describes the RuntimeClass resource and runtime selection mechanism.
16
16
RuntimeClass is a feature for selecting the container runtime configuration. The container runtime
17
17
configuration is used to run a Pod's containers.
18
18
19
-
20
-
21
-
22
19
<!-- body -->
23
20
24
21
## Motivation
@@ -62,12 +59,12 @@ The RuntimeClass resource currently only has 2 significant fields: the RuntimeCl
62
59
(` metadata.name ` ) and the handler (` handler ` ). The object definition looks like this:
63
60
64
61
``` yaml
65
- apiVersion : node.k8s.io/v1 # RuntimeClass is defined in the node.k8s.io API group
62
+ apiVersion : node.k8s.io/v1 # RuntimeClass is defined in the node.k8s.io API group
66
63
kind : RuntimeClass
67
64
metadata :
68
- name : myclass # The name the RuntimeClass will be referenced by
65
+ name : myclass # The name the RuntimeClass will be referenced by
69
66
# RuntimeClass is a non-namespaced resource
70
- handler : myconfiguration # The name of the corresponding CRI configuration
67
+ handler : myconfiguration # The name of the corresponding CRI configuration
71
68
` ` `
72
69
73
70
The name of a RuntimeClass object must be a valid
@@ -107,16 +104,6 @@ to the behavior when the RuntimeClass feature is disabled.
107
104
108
105
For more details on setting up CRI runtimes, see [CRI installation](/docs/setup/production-environment/container-runtimes/).
109
106
110
- # ### dockershim
111
-
112
- {{< feature-state for_k8s_version="v1.20" state="deprecated" >}}
113
-
114
- Dockershim is deprecated as of Kubernetes v1.20, and will be removed in v1.24. For more information on the deprecation,
115
- see [dockershim deprecation](/blog/2020/12/08/kubernetes-1-20-release-announcement/#dockershim-deprecation)
116
-
117
- RuntimeClasses with dockershim must set the runtime handler to `docker`. Dockershim does not support
118
- custom configurable runtime handlers.
119
-
120
107
# ### {{< glossary_tooltip term_id="containerd" >}}
121
108
122
109
Runtime handlers are configured through containerd's configuration at
@@ -177,10 +164,8 @@ Pod overhead is defined in RuntimeClass through the `overhead` fields. Through t
177
164
you can specify the overhead of running pods utilizing this RuntimeClass and ensure these overheads
178
165
are accounted for in Kubernetes.
179
166
180
-
181
167
## {{% heading "whatsnext" %}}
182
168
183
-
184
169
- [RuntimeClass Design](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/585-runtime-class/README.md)
185
170
- [RuntimeClass Scheduling Design](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/585-runtime-class/README.md#runtimeclass-scheduling)
186
171
- Read about the [Pod Overhead](/docs/concepts/scheduling-eviction/pod-overhead/) concept
0 commit comments