Project and Shoot Name Length Limitation
It is important to take into account the following limitation on the length of the Project and Shoot cluster names. The limitation applies if there is an Ingress controller deployed on the Shoot. While OSC Gardener provides an Ingress controller, it is possible to deploy a custom one instead. The limitation applies in both cases, the exact limit will be different.
Background
After an Ingress object is created, a Loadbalancer object is automatically provisioned infrastructure-side. The name for this object is based on a scheme and cannot exceed 63 characters.
shoot--<projectname>--<shootname>-<lb-service-name>-<suffix>
projectname
is the name of the Gardener projectshootname
is the name of the Shoot clusterlb-service-name
is the name of the LoadBalancer service on the Shoot clustersuffix
is a 5-character random suffix
OSC Gardener provided Ingress controller addon
If the Ingress controller addon is enabled for the Shoot,
the name of the LoadBalancer service will be addons-nginx-ingress-controller
.
This leaves 16 characters free for the Project and Shoot names combined. For example, 8 can be used for the Project name and 8 for the Shoot name or, 6 for the Project name and 10 for the Shoot name.
Custom Ingress controller
In case a custom-deployed Ingress controller is used, it is recommended to keep the LoadBalancer service name reasonably short.
There is 47 characters to use for the combined length of the LoadBalancer service name, Project name and Shoot name.