<p>Currently when I apply stateful set then pods are getting created with ab-app-0, ab-app-1 , ab-app-2</p>
<p>But I want pods like ab-app-1000, ab-app-1001</p>

SkClass
<p>The <a href="https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#ordinal-index" rel="nofollow noreferrer">Kubernetes documentation on StatefulSet</a> says the following about ordinal index:</p>
<blockquote>
<p>For a StatefulSet with N replicas, each Pod in the StatefulSet will be assigned an integer ordinal, from 0 up through N-1, that is unique over the Set.</p>
</blockquote>
<p>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 <a href="https://github.com/kubernetes/kubernetes/issues/40651" rel="nofollow noreferrer">this</a> open github issue:</p>
<pre class="lang-yaml prettyprint-override"><code>        env:
        - name: ZOO_MY_ID
          valueFrom:
            fieldRef:
              fieldPath: metadata.annotations['spec.pod.beta.kubernetes.io/statefulset-index']
</code></pre>
