Currently when I apply stateful set then pods are getting created with ab-app-0, ab-app-1 , ab-app-2
But I want pods like ab-app-1000, ab-app-1001
Currently when I apply stateful set then pods are getting created with ab-app-0, ab-app-1 , ab-app-2
But I want pods like ab-app-1000, ab-app-1001
Helay
On
A new feature landed as a beta in v1.27, allowing you to customize the ordinal index .spec.ordinals.start. Please check the official documentation here.
Copyright © 2021 Jogjafile Inc.
The Kubernetes documentation on StatefulSet says the following about ordinal index:
So there looks to be no way of customising this. But if your concern is that you need to pass this unique ID to a service, you could do the following in the config file, as proposed in this open github issue: