0

I am trying to create a CNI conf file.why CNI conf file name has number as prefix? For e.g "10-calico.conf" "10-weave.conf" "10-Flannel.conf". Is there a convetion to follow?

1 Answers1

1

Looking at Kubernetes' source code (see here and there), it does not look like it relies on a specific naming convention.

However, it does process the files in lexicographical order (see here).

I can therefore only guess the convention comes from systemd configuration files, and is useful here with Kubernetes if you want to apply several configuration files in a specific order, each configuration file dealing with, for example, one concern or feature.

EDIT: it may be more a question for Kubernetes' maintainers.

Marc Carré
  • 1,446
  • 13
  • 19