A runtime class is used to determine which container runtime is used to run all containers in a pod.
resource "kubernetes_runtime_class_v1" "example" {
metadata {
name = "myclass"
}
handler = "abcdeagh"
}
The following arguments are supported:
metadata
- (Required) Standard role's metadata. For more info see Kubernetes referencehandler
- (Required) Specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class Kubernetes referencemetadata
annotations
- (Optional) An unstructured key value map stored with the role that may be used to store arbitrary metadata.generate_name
- (Optional) Prefix, used by the server, to generate a unique name ONLY IF the name
field has not been provided. This value will also be combined with a unique suffix. For more info see Kubernetes referencelabels
- (Optional) Map of string keys and values that can be used to organize and categorize (scope and select) the role. Must match selector
.name
- (Optional) Name of the role, must be unique. Cannot be updated. For more info see Kubernetes referencegeneration
- A sequence number representing a specific generation of the desired state.resource_version
- An opaque value that represents the internal version of this role that can be used by clients to determine when role has changed. For more info see Kubernetes referenceuid
- The unique in time and space value for this role. For more info see Kubernetes referenceRuntime class can be imported using the name only, e.g.
$ terraform import kubernetes_runtime_class_v1.example myclass