Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用这个命令来启动我的 statefulset:
kubectl scale statefulset my-set --replicas=1
但是 pod 没有运行。
如何使用现有的状态集“my-set”启动 pod?
您可以通过不同的方式扩展有状态集:
kubectl scale --replicas=1 statefulset/my-set kubectl scale sts my-set --replicas=1 kubectl patch sts my-set -p '{"spec":{"replicas":1}}'