title: In Kubernetes Deployment, how not to start all the pods at once
body: <p>I am using Kubernetes deployment. I wish to start the pods one by one. Not all at once. Is there any way. I do not want to use statefulSet.</p>
  <pre><code>kind: Deployment
  metadata:
    name: my-deployment
    labels:
      app: my-app
  spec:
    replicas: 3
    selector:
      matchLabels:
        app: my-app
    template:
      metadata:
        labels:
          app: my-app
      spec:
        containers:
        - name: my-app
          image: my-container-image
          ports:
          - name: https
            containerPort: 8443
          volumeMounts:
              - mountPath: /tmp
                name: app-vol
          restartPolicy: Always
        imagePullSecrets:
          - name: regcred
        volumes:
          - name: app-vol
            persistentVolumeClaim:
              claimName: app-vol
  </code></pre>