Details
-
Bug
-
Status: Closed
-
Medium
-
Resolution: Done
-
None
-
Demeter Bugfix Sprint-1
Description
Kubernetes enforces a max resource name length of 63 chars. If a solution name is longer than 18 chars, the solution will fail to deploy with errors such as below:
The Service "nginx-boreas-customer-segmentation-ab268f5d-b91e-4508-9d12-3e9cdfe90401" is invalid:
- metadata.name: Invalid value: "nginx-boreas-customer-segmentation-ab268f5d-b91e-4508-9d12-3e9cdfe90401": must be no more than 63 characters
- spec.selector: Invalid value: "nginx-boreas-customer-segmentation-ab268f5d-b91e-4508-9d12-3e9cdfe90401": must be no more than 63 characters
As a workaround, reduce the solution name to a max 18 chars in deploy.sh
Long-term solution will be to assign a shorter unique suffix, with annotations that identify the tracking ID GUID (so resources can be cleaned up by tracking ID).