{"id":8620,"date":"2025-11-09T19:16:14","date_gmt":"2025-11-09T10:16:14","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=8620"},"modified":"2025-11-09T19:16:14","modified_gmt":"2025-11-09T10:16:14","slug":"k8s-operator-%e7%ae%a1%e7%90%86%e4%b8%8b%e3%81%ae-deployment-%e3%81%ab%e5%af%be%e3%81%99%e3%82%8b-kubectl-rollout-restart-%e3%81%8c%e6%9c%9f%e5%be%85%e9%80%9a%e3%82%8a%e5%8b%95%e3%81%8b%e3%81%aa","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=8620","title":{"rendered":"[k8s] operator \u7ba1\u7406\u4e0b\u306e Deployment \u306b\u5bfe\u3059\u308b kubectl rollout restart \u304c\u671f\u5f85\u901a\u308a\u52d5\u304b\u306a\u3044\u5834\u5408\u304c\u3042\u308b"},"content":{"rendered":"<p>Deployment\uff08\u3092\u69cb\u6210\u3059\u308b Pod\uff09\u3092\u518d\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u3066 kubectl rollout restart \u3057\u3066\u304b\u3089 kubectl rollout status \u3057\u3066\u5b8c\u4e86\u3057\u3066\u308b\u3088\u3046\u306a\u306e\u3067\u5b89\u5fc3\u3057\u3066\u305f\u3093\u3067\u3059\u304c\u3001\u5f8c\u3067 kubectl get pod \u3057\u305f\u3089 Age \u304c\u304b\u306a\u308a\u53e4\u3044\u307e\u307e\u3067\u3057\u305f\u3002\u518d\u8d77\u52d5\u3055\u308c\u3066\u307e\u305b\u3093\u3002<\/p>\n<p><!--more--><\/p>\n<p>kubectl rollout restart \u306f Deployment \u7b49\uff08StatefulSet \u3084 DaemonSet \u306a\u3069\u3092\u542b\u3080\uff09\u306e\u4e2d\u306e Pod template \u306b\u5bfe\u3057\u3066 <a href=\"https:\/\/github.com\/kubernetes\/kubectl\/blob\/v0.34.1\/pkg\/polymorphichelpers\/objectrestarter.go#L51\">annotation \u3092\u4ed8\u3051\u308b\u3053\u3068\u3067 Pod \u306e\u5165\u308c\u66ff\u3048\u3092\u4fc3\u3059<\/a>\u308f\u3051\u3067\u3059\u304c\u3001Deployment \u7b49\u304c operator \u306e\u7ba1\u7406\u4e0b\u306b\u3042\u308b\u5834\u5408\u3001operator \u306e\u5b9f\u88c5\u306b\u3088\u3063\u3066\u306f\u4ed8\u3051\u305f annotation \u3092\u524a\u9664\u3057\u306b\u6765\u308b\u305f\u3081\u3001Deployment \u306e controller \u304c Pod \u3092\u5165\u308c\u66ff\u3048\u308b\u524d\u306b\u5143\u306e\u72b6\u614b\u306b\u623b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>operator \u306e\u7ba1\u7406\u4e0b\u306b\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u305d\u306e Deployment \u3092\u751f\u6210\u3059\u308b\u5143\u3068\u306a\u3063\u305f\u30ab\u30b9\u30bf\u30e0\u30ea\u30bd\u30fc\u30b9\u304c\u3042\u308b\u306f\u305a\u306a\u306e\u3067\u3001\u4e00\u822c\u8ad6\u3068\u3057\u3066\u306f\u305d\u3063\u3061\u7d4c\u7531\u3067 Deployment \u3092\u9593\u63a5\u7684\u306b\u3044\u3058\u308b\u306e\u304c\u5168\u4f53\u3068\u3057\u3066\u306f\u6b63\u3057\u3044\u3093\u3067\u3059\u304c\u3001\u4e00\u6642\u7684\u306a\u518d\u8d77\u52d5\u64cd\u4f5c\u306e\u75d5\u8de1\u304c\u30ab\u30b9\u30bf\u30e0\u30ea\u30bd\u30fc\u30b9\u5074\u306b\u6b8b\u3063\u3066\u3057\u307e\u3046\u306e\u3082\u3046\u308c\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u3069\u3046\u3057\u307e\u3057\u3087\u3046\u304b\u306d\u3002<\/p>\n<p>\u306a\u304a\u3001\u6700\u521d\u306b\u66f8\u3044\u305f\u30b1\u30fc\u30b9\u306b\u304a\u3044\u3066\u306f\u3001\u6570\u5206\u3050\u3089\u3044\u306a\u3089\u5168\u90e8\u843d\u3061\u3066\u3066\u3082\u69cb\u308f\u306a\u3044\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3060\u3063\u305f\u306e\u3067\u3001\u30b6\u30c3\u30af\u30ea\u5168 Pod \u3092 delete \u3057\u3066\u518d\u8d77\u52d5\u3055\u305b\u3066\u307e\u3057\u305f\u3002\u6570\u500b\u306a\u30891\u500b\u305a\u3064\u898b\u306a\u304c\u3089\u624b\u3067\u524a\u9664\u3057\u3066\u3066\u3082\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u5927\u898f\u6a21\u306a\u30af\u30e9\u30b9\u30bf\u306e DaemonSet \u3060\u3068\u8f9b\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deployment\uff08\u3092\u69cb\u6210\u3059\u308b Pod\uff09\u3092\u518d\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u3066 kubectl rollout restart \u3057\u3066\u304b\u3089 kubectl rollout status \u3057\u3066\u5b8c\u4e86\u3057\u3066\u308b\u3088\u3046\u306a\u306e\u3067\u5b89\u5fc3\u3057\u3066\u305f\u3093\u3067\u3059\u304c\u3001\u5f8c\u3067 k [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-8620","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8620"}],"version-history":[{"count":1,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8620\/revisions"}],"predecessor-version":[{"id":8621,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8620\/revisions\/8621"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8620"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}