対象のKubermetes
1.15~
Rolling restart of pods #13488
Implement rollout restart for statefulset and daemonset #77423
コマンド
# Deploymentの場合。「deployment」は省略形の「deploy」も使えるはず
$ kubectl rollout restart deployment/[Deployment名]
# StatefulSetの場合。「deployment」は省略形の「sts」も使えるはず
$ kubectl rollout restart statefulset/[StatefulSet名]
# DaemonSetの場合。「」は省略形の「ds」も使えるはず
$ kubectl rollout restart daemonset/[DaemonSet名]