0

I used this command to start my statefulset:

kubectl scale statefulset my-set --replicas=1

But pod is not running.

How could I start pod with existing stateful set "my-set"?

Janis Karklins
  • 503
  • 1
  • 7
  • 19

1 Answers1

2

You can scale a statefulset in different ways:

kubectl scale --replicas=1 statefulset/my-set

kubectl scale sts my-set --replicas=1

kubectl patch sts my-set -p '{"spec":{"replicas":1}}'
victortv
  • 7,874
  • 2
  • 23
  • 27