optimize the pod postfix naming style to make its length shorter #721
Labels
kind/bug
Categorizes issue or PR as related to a bug.
kind/feature
Categorizes issue or PR as related to a new feature.
/kind feature
What happened:
I just upgrade volcano from v0.2 to the latest master branch (by executing
kubectl apply -f https://raw.githubusercontent.com/volcano-sh/volcano/master/installer/volcano-development.yaml
). However, I soon noticed some of my previous model training yaml files can not be launched successfully now. By executingkubectl describe jobs.batch.volcano.sh -n mdt ${JobName}
, I can see that the error is caused by the size overflow of some pods' names:The job name in my yaml file is "volcano-mpi-softmax-job" (which makes no trouble in Volcano V0.2), but the pod name "volcano-mpi-softmax-job-0cdbfd01-7a0e-45e6-bf17-a580fa3a0a46-ssh" breaks the 63 characters size limit of k8s pod name.
Sure I can solve this problem by making my job name "volcano-mpi-softmax-job" to a shorter one. However, I guess it would be much better if we can squeeze the postfix part "-0cdbfd01-7a0e-45e6-bf17-a580fa3a0a46-ssh" and free up some space for the user defined job name?
How to reproduce it (as minimally and precisely as possible):
Just change the job name in "mpi-example.yaml" from "lm-mpi-job" to "lm-mpi-job-very-long-version" and launch it.
Anything else we need to know?:
Environment:
kubectl version
): v1.15.2The text was updated successfully, but these errors were encountered: