4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[備忘録]SecretやConfigMapのみを変更した時にローリングアップデートを実行させる方法

Posted at

対象の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名]
4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?