Documentation ¶
Index ¶
- Variables
- type Overhead
- type RuntimeClass
- func (*RuntimeClass) Descriptor() ([]byte, []int)deprecated
- func (x *RuntimeClass) GetMetadata() *v1.ObjectMeta
- func (x *RuntimeClass) GetSpec() *RuntimeClassSpec
- func (*RuntimeClass) ProtoMessage()
- func (x *RuntimeClass) ProtoReflect() protoreflect.Message
- func (x *RuntimeClass) Reset()
- func (x *RuntimeClass) String() string
- type RuntimeClassList
- func (*RuntimeClassList) Descriptor() ([]byte, []int)deprecated
- func (x *RuntimeClassList) GetItems() []*RuntimeClass
- func (x *RuntimeClassList) GetMetadata() *v1.ListMeta
- func (*RuntimeClassList) ProtoMessage()
- func (x *RuntimeClassList) ProtoReflect() protoreflect.Message
- func (x *RuntimeClassList) Reset()
- func (x *RuntimeClassList) String() string
- type RuntimeClassSpec
- func (*RuntimeClassSpec) Descriptor() ([]byte, []int)deprecated
- func (x *RuntimeClassSpec) GetOverhead() *Overhead
- func (x *RuntimeClassSpec) GetRuntimeHandler() string
- func (x *RuntimeClassSpec) GetScheduling() *Scheduling
- func (*RuntimeClassSpec) ProtoMessage()
- func (x *RuntimeClassSpec) ProtoReflect() protoreflect.Message
- func (x *RuntimeClassSpec) Reset()
- func (x *RuntimeClassSpec) String() string
- type Scheduling
- func (*Scheduling) Descriptor() ([]byte, []int)deprecated
- func (x *Scheduling) GetNodeSelector() map[string]string
- func (x *Scheduling) GetTolerations() []*v11.Toleration
- func (*Scheduling) ProtoMessage()
- func (x *Scheduling) ProtoReflect() protoreflect.Message
- func (x *Scheduling) Reset()
- func (x *Scheduling) String() string
Constants ¶
This section is empty.
Variables ¶
var File_k8s_io_api_node_v1alpha1_generated_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Overhead ¶
type Overhead struct { // PodFixed represents the fixed resource overhead associated with running a pod. // +optional PodFixed map[string]*resource.Quantity `` /* 136-byte string literal not displayed */ // contains filtered or unexported fields }
Overhead structure represents the resource overhead associated with running a pod.
func (*Overhead) Descriptor
deprecated
func (*Overhead) ProtoMessage ¶
func (*Overhead) ProtoMessage()
func (*Overhead) ProtoReflect ¶
func (x *Overhead) ProtoReflect() protoreflect.Message
type RuntimeClass ¶
type RuntimeClass struct { // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Specification of the RuntimeClass // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status Spec *RuntimeClassSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` // contains filtered or unexported fields }
RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md
func (*RuntimeClass) Descriptor
deprecated
func (*RuntimeClass) Descriptor() ([]byte, []int)
Deprecated: Use RuntimeClass.ProtoReflect.Descriptor instead.
func (*RuntimeClass) GetMetadata ¶
func (x *RuntimeClass) GetMetadata() *v1.ObjectMeta
func (*RuntimeClass) GetSpec ¶
func (x *RuntimeClass) GetSpec() *RuntimeClassSpec
func (*RuntimeClass) ProtoMessage ¶
func (*RuntimeClass) ProtoMessage()
func (*RuntimeClass) ProtoReflect ¶
func (x *RuntimeClass) ProtoReflect() protoreflect.Message
func (*RuntimeClass) Reset ¶
func (x *RuntimeClass) Reset()
func (*RuntimeClass) String ¶
func (x *RuntimeClass) String() string
type RuntimeClassList ¶
type RuntimeClassList struct { // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Items is a list of schema objects. Items []*RuntimeClass `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` // contains filtered or unexported fields }
RuntimeClassList is a list of RuntimeClass objects.
func (*RuntimeClassList) Descriptor
deprecated
func (*RuntimeClassList) Descriptor() ([]byte, []int)
Deprecated: Use RuntimeClassList.ProtoReflect.Descriptor instead.
func (*RuntimeClassList) GetItems ¶
func (x *RuntimeClassList) GetItems() []*RuntimeClass
func (*RuntimeClassList) GetMetadata ¶
func (x *RuntimeClassList) GetMetadata() *v1.ListMeta
func (*RuntimeClassList) ProtoMessage ¶
func (*RuntimeClassList) ProtoMessage()
func (*RuntimeClassList) ProtoReflect ¶
func (x *RuntimeClassList) ProtoReflect() protoreflect.Message
func (*RuntimeClassList) Reset ¶
func (x *RuntimeClassList) Reset()
func (*RuntimeClassList) String ¶
func (x *RuntimeClassList) String() string
type RuntimeClassSpec ¶
type RuntimeClassSpec struct { // RuntimeHandler specifies the underlying runtime and configuration that the // CRI implementation will use to handle pods of this class. The possible // values are specific to the node & CRI configuration. It is assumed that // all handlers are available on every node, and handlers of the same name are // equivalent on every node. // For example, a handler called "runc" might specify that the runc OCI // runtime (using native Linux containers) will be used to run the containers // in a pod. // The RuntimeHandler must be lowercase, conform to the DNS Label (RFC 1123) // requirements, and is immutable. RuntimeHandler *string `protobuf:"bytes,1,opt,name=runtimeHandler" json:"runtimeHandler,omitempty"` // Overhead represents the resource overhead associated with running a pod for a // given RuntimeClass. For more details, see // https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md // This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. // +optional Overhead *Overhead `protobuf:"bytes,2,opt,name=overhead" json:"overhead,omitempty"` // Scheduling holds the scheduling constraints to ensure that pods running // with this RuntimeClass are scheduled to nodes that support it. // If scheduling is nil, this RuntimeClass is assumed to be supported by all // nodes. // +optional Scheduling *Scheduling `protobuf:"bytes,3,opt,name=scheduling" json:"scheduling,omitempty"` // contains filtered or unexported fields }
RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable.
func (*RuntimeClassSpec) Descriptor
deprecated
func (*RuntimeClassSpec) Descriptor() ([]byte, []int)
Deprecated: Use RuntimeClassSpec.ProtoReflect.Descriptor instead.
func (*RuntimeClassSpec) GetOverhead ¶
func (x *RuntimeClassSpec) GetOverhead() *Overhead
func (*RuntimeClassSpec) GetRuntimeHandler ¶
func (x *RuntimeClassSpec) GetRuntimeHandler() string
func (*RuntimeClassSpec) GetScheduling ¶
func (x *RuntimeClassSpec) GetScheduling() *Scheduling
func (*RuntimeClassSpec) ProtoMessage ¶
func (*RuntimeClassSpec) ProtoMessage()
func (*RuntimeClassSpec) ProtoReflect ¶
func (x *RuntimeClassSpec) ProtoReflect() protoreflect.Message
func (*RuntimeClassSpec) Reset ¶
func (x *RuntimeClassSpec) Reset()
func (*RuntimeClassSpec) String ¶
func (x *RuntimeClassSpec) String() string
type Scheduling ¶
type Scheduling struct { // nodeSelector lists labels that must be present on nodes that support this // RuntimeClass. Pods using this RuntimeClass can only be scheduled to a // node matched by this selector. The RuntimeClass nodeSelector is merged // with a pod's existing nodeSelector. Any conflicts will cause the pod to // be rejected in admission. // +optional NodeSelector map[string]string `` /* 144-byte string literal not displayed */ // tolerations are appended (excluding duplicates) to pods running with this // RuntimeClass during admission, effectively unioning the set of nodes // tolerated by the pod and the RuntimeClass. // +optional // +listType=atomic Tolerations []*v11.Toleration `protobuf:"bytes,2,rep,name=tolerations" json:"tolerations,omitempty"` // contains filtered or unexported fields }
Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
func (*Scheduling) Descriptor
deprecated
func (*Scheduling) Descriptor() ([]byte, []int)
Deprecated: Use Scheduling.ProtoReflect.Descriptor instead.
func (*Scheduling) GetNodeSelector ¶
func (x *Scheduling) GetNodeSelector() map[string]string
func (*Scheduling) GetTolerations ¶
func (x *Scheduling) GetTolerations() []*v11.Toleration
func (*Scheduling) ProtoMessage ¶
func (*Scheduling) ProtoMessage()
func (*Scheduling) ProtoReflect ¶
func (x *Scheduling) ProtoReflect() protoreflect.Message
func (*Scheduling) Reset ¶
func (x *Scheduling) Reset()
func (*Scheduling) String ¶
func (x *Scheduling) String() string