kubernetes_asyncio.client.models.v1_node_spec module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_node_spec.V1NodeSpec(config_source=None, external_id=None, pod_cidr=None, pod_cidrs=None, provider_id=None, taints=None, unschedulable=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'config_source': 'configSource', 'external_id': 'externalID', 'pod_cidr': 'podCIDR', 'pod_cidrs': 'podCIDRs', 'provider_id': 'providerID', 'taints': 'taints', 'unschedulable': 'unschedulable'}
property config_source

Gets the config_source of this V1NodeSpec. # noqa: E501

Returns:

The config_source of this V1NodeSpec. # noqa: E501

Return type:

V1NodeConfigSource

property external_id

Gets the external_id of this V1NodeSpec. # noqa: E501

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

Returns:

The external_id of this V1NodeSpec. # noqa: E501

Return type:

str

openapi_types = {'config_source': 'V1NodeConfigSource', 'external_id': 'str', 'pod_cidr': 'str', 'pod_cidrs': 'list[str]', 'provider_id': 'str', 'taints': 'list[V1Taint]', 'unschedulable': 'bool'}
property pod_cidr

Gets the pod_cidr of this V1NodeSpec. # noqa: E501

PodCIDR represents the pod IP range assigned to the node. # noqa: E501

Returns:

The pod_cidr of this V1NodeSpec. # noqa: E501

Return type:

str

property pod_cidrs

Gets the pod_cidrs of this V1NodeSpec. # noqa: E501

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. # noqa: E501

Returns:

The pod_cidrs of this V1NodeSpec. # noqa: E501

Return type:

list[str]

property provider_id

Gets the provider_id of this V1NodeSpec. # noqa: E501

ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> # noqa: E501

Returns:

The provider_id of this V1NodeSpec. # noqa: E501

Return type:

str

property taints

Gets the taints of this V1NodeSpec. # noqa: E501

If specified, the node’s taints. # noqa: E501

Returns:

The taints of this V1NodeSpec. # noqa: E501

Return type:

list[V1Taint]

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property unschedulable

Gets the unschedulable of this V1NodeSpec. # noqa: E501

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

Returns:

The unschedulable of this V1NodeSpec. # noqa: E501

Return type:

bool