My Kubernetes Notes

Restart a statefulset:

kubectl rollout restart statefulset mystatefulset -n mynamespace

Scale stateful

kubectl scale statefulsets mystatefulset --replicas=2 -n mynamespace

Scale deployment

kubectl scale deployment mydeployment --replicas=2 -n mynamespace

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.