Skip to content

networking_v1beta1

IPAddress

class lightkube.models.networking_v1beta1.IPAddress(apiVersion=None, kind=None, metadata=None, spec=None)

IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1

parameters

  • apiVersion Optional[str] - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info
  • kind Optional[str] - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info
  • metadata Optional[meta_v1.ObjectMeta] - Standard object's metadata. More info
  • spec Optional[IPAddressSpec] - spec is the desired state of the IPAddress. More info

IPAddressList

class lightkube.models.networking_v1beta1.IPAddressList(items, apiVersion=None, kind=None, metadata=None)

IPAddressList contains a list of IPAddress.

parameters

  • items List[IPAddress] - items is the list of IPAddresses.
  • apiVersion Optional[str] - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info
  • kind Optional[str] - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info
  • metadata Optional[meta_v1.ListMeta] - Standard object's metadata. More info

IPAddressSpec

class lightkube.models.networking_v1beta1.IPAddressSpec(parentRef)

IPAddressSpec describe the attributes in an IP Address.

parameters

  • parentRef ParentReference - ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.

ParentReference

class lightkube.models.networking_v1beta1.ParentReference(name, resource, group=None, namespace=None)

ParentReference describes a reference to a parent object.

parameters

  • name str - Name is the name of the object being referenced.
  • resource str - Resource is the resource of the object being referenced.
  • group Optional[str] - Group is the group of the object being referenced.
  • namespace Optional[str] - Namespace is the namespace of the object being referenced.

ServiceCIDR

class lightkube.models.networking_v1beta1.ServiceCIDR(apiVersion=None, kind=None, metadata=None, spec=None, status=None)

ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.

parameters

  • apiVersion Optional[str] - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info
  • kind Optional[str] - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info
  • metadata Optional[meta_v1.ObjectMeta] - Standard object's metadata. More info
  • spec Optional[ServiceCIDRSpec] - spec is the desired state of the ServiceCIDR. More info
  • status Optional[ServiceCIDRStatus] - status represents the current state of the ServiceCIDR. More info

ServiceCIDRList

class lightkube.models.networking_v1beta1.ServiceCIDRList(items, apiVersion=None, kind=None, metadata=None)

ServiceCIDRList contains a list of ServiceCIDR objects.

parameters

  • items List[ServiceCIDR] - items is the list of ServiceCIDRs.
  • apiVersion Optional[str] - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info
  • kind Optional[str] - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info
  • metadata Optional[meta_v1.ListMeta] - Standard object's metadata. More info

ServiceCIDRSpec

class lightkube.models.networking_v1beta1.ServiceCIDRSpec(cidrs=None)

ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.

parameters

  • cidrs Optional[List[str]] - CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.

ServiceCIDRStatus

class lightkube.models.networking_v1beta1.ServiceCIDRStatus(conditions=None)

ServiceCIDRStatus describes the current state of the ServiceCIDR.

parameters

  • conditions Optional[List[meta_v1.Condition]] - conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state