runbooks icon indicating copy to clipboard operation
runbooks copied to clipboard

Server with name that includes `v0.1` doesn't work

Open samos123 opened this issue 2 years ago • 0 comments

Create a server with name like this mistral-7b-v0.1 and the following error will be thrown:

2023-10-12T05:28:19Z    ERROR   Reconciler error        {"controller": "server", "controllerGroup": "substratus.ai", "controlle
rKind": "Server", "Server": {"name":"mistral-7b-v0.1","namespace":"default"}, "namespace": "default", "name": "mistral-7b-v0.1"
, "reconcileID": "45ad963d-a029-4a68-96d2-216657dd58dd", "error": "failed to apply service: Service \"mistral-7b-v0.1-server\" 
is invalid: metadata.name: Invalid value: \"mistral-7b-v0.1-server\": a DNS-1035 label must consist of lower case alphanumeric 
characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name',  or 'abc-123', r
egex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')"} 

workaround: remove . from the name

samos123 avatar Oct 12 '23 05:10 samos123