struct Kubernetes::NodeSpec

Overview

NodeSpec describes the attributes that a node is created with.

Included Modules

Defined in:

generated/models/io_k8s_api_core_v1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def config_source : NodeConfigSource | Nil #

Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.


def config_source=(config_source : NodeConfigSource | Nil) #

Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.


def external_id : String | Nil #

Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966


def external_id=(external_id : String | Nil) #

Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966


def pod_cid_rs : Array(String) | Nil #

podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.


def pod_cid_rs=(pod_cid_rs : Array(String) | Nil) #

podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.


def pod_cidr : String | Nil #

PodCIDR represents the pod IP range assigned to the node.


def pod_cidr=(pod_cidr : String | Nil) #

PodCIDR represents the pod IP range assigned to the node.


def provider_id : String | Nil #

ID of the node assigned by the cloud provider in the format: ://


def provider_id=(provider_id : String | Nil) #

ID of the node assigned by the cloud provider in the format: ://


def taints : Array(Taint) | Nil #

If specified, the node's taints.


def taints=(taints : Array(Taint) | Nil) #

If specified, the node's taints.


def unschedulable : Bool | Nil #

Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration


def unschedulable=(unschedulable : Bool | Nil) #

Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration