kubernetes_asyncio.client.models.v1_ingress_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_ingress_spec.V1IngressSpec(default_backend=None, ingress_class_name=None, rules=None, tls=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 = {'default_backend': 'defaultBackend', 'ingress_class_name': 'ingressClassName', 'rules': 'rules', 'tls': 'tls'}
property default_backend

Gets the default_backend of this V1IngressSpec. # noqa: E501

Returns:

The default_backend of this V1IngressSpec. # noqa: E501

Return type:

V1IngressBackend

property ingress_class_name

Gets the ingress_class_name of this V1IngressSpec. # noqa: E501

ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the kubernetes.io/ingress.class annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present. # noqa: E501

Returns:

The ingress_class_name of this V1IngressSpec. # noqa: E501

Return type:

str

openapi_types = {'default_backend': 'V1IngressBackend', 'ingress_class_name': 'str', 'rules': 'list[V1IngressRule]', 'tls': 'list[V1IngressTLS]'}
property rules

Gets the rules of this V1IngressSpec. # noqa: E501

rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. # noqa: E501

Returns:

The rules of this V1IngressSpec. # noqa: E501

Return type:

list[V1IngressRule]

property tls

Gets the tls of this V1IngressSpec. # noqa: E501

tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. # noqa: E501

Returns:

The tls of this V1IngressSpec. # noqa: E501

Return type:

list[V1IngressTLS]

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model