IngressSpec describes the Ingress the user wishes to exist.
| Name | Type | Description | Notes |
|---|---|---|---|
| default_backend | V1IngressBackend | [optional] | |
| ingress_class_name | str | 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. | [optional] |
| rules | List[V1IngressRule] | 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. | [optional] |
| tls | List[V1IngressTLS] | 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. | [optional] |
from kubernetes.client.models.v1_ingress_spec import V1IngressSpec
# TODO update the JSON string below
json = "{}"
# create an instance of V1IngressSpec from a JSON string
v1_ingress_spec_instance = V1IngressSpec.from_json(json)
# print the JSON string representation of the object
print(V1IngressSpec.to_json())
# convert the object into a dict
v1_ingress_spec_dict = v1_ingress_spec_instance.to_dict()
# create an instance of V1IngressSpec from a dict
v1_ingress_spec_from_dict = V1IngressSpec.from_dict(v1_ingress_spec_dict)