{"id":59859,"date":"2023-04-07T09:00:16","date_gmt":"2023-04-07T00:00:16","guid":{"rendered":"https:\/\/www.creationline.com\/?p=59859"},"modified":"2023-03-30T11:15:04","modified_gmt":"2023-03-30T02:15:04","slug":"%e9%80%a3%e8%bc%89-kubernetes%e3%81%a7%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%82%92%e4%bd%9c%e3%82%8d%e3%81%86%ef%bc%81-%ef%bd%9e%e7%ac%ac6","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859","title":{"rendered":"\u9023\u8f09: Kubernetes\u3067\u30ab\u30b9\u30bf\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u308d\u3046\uff01 \uff5e\u7b2c6\u56de ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u5b66\u3076\uff5e"},"content":{"rendered":"<p dir=\"auto\" data-sourcepos=\"3:1-5:114\"><a href=\"\/lab\/kubernetes\/59851\">\u524d\u56de<\/a>\u306f\u5ba3\u8a00\u7684\u306a\u7ba1\u7406\u3084Reconciliation Loop\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002 \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304c\u3069\u306e\u3088\u3046\u306b\u4f5c\u3089\u308c\u3066\u3044\u308b\u304b\u5927\u307e\u304b\u306b\u7406\u89e3\u304c\u3067\u304d\u305f\u3068\u3053\u308d\u3067\u3001\u5b9f\u969b\u306eKubernetes\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002 \u7d30\u304b\u306a\u5b9f\u88c5\u306f\u7121\u8996\u3057\u3066\u3001\u3056\u3063\u304f\u308a\u3068\u3069\u3046\u3044\u3046\u4f5c\u308a\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u7406\u89e3\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2 dir=\"auto\" data-sourcepos=\"7:1-7:38\">ReplicaSet \u306e\u5b9f\u88c5\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p dir=\"auto\" data-sourcepos=\"9:1-12:81\">\u4eca\u56de\u306f\u6bd4\u8f03\u7684\u5358\u7d14\u306a\u5b9f\u88c5\u3068\u306a\u3063\u3066\u3044\u308bReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002 \u78ba\u8a8d\u3057\u305fKubernetes\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306fv1.26.2\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 Kubernetes\u306e\u30b3\u30fc\u30c9\u306fGithub\u4e0a\u3067\u7ba1\u7406\u3055\u308c\u3066\u304a\u308a\u3001<a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/tree\/v1.26.2\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">\u3053\u3061\u3089\u306e\u30ea\u30f3\u30af<\/a>\u304b\u3089\u4eca\u56de\u89e3\u8aac\u3059\u308b\u30b3\u30fc\u30c9\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002 \u884c\u6570\u3068\u3068\u3082\u306b\u8aac\u660e\u3059\u308b\u306e\u3067\u3001\u4f75\u305b\u3066\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p dir=\"auto\" data-sourcepos=\"14:1-16:138\">\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306f<a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/blob\/fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b\/pkg\/controller\/replicaset\/replica_set.go#L189-L213\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">\u4ee5\u4e0b\u306eRun\u95a2\u6570<\/a>\u304b\u3089\u8d77\u52d5\u3057\u307e\u3059\u3002 208-210\u884c\u76ee\u306e <strong>go wait.UntilWithContext<\/strong> \u3067\u5b9f\u969b\u306bReconcile\u3092\u5b9f\u884c\u3059\u308b\u30ef\u30fc\u30ab\u30fc\u3092\u8907\u6570\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002 \u524d\u56de\u8aac\u660e\u3057\u305f\u3088\u3046\u306b\u3001\u3053\u308c\u306b\u3088\u308aReconcile\u51e6\u7406\u3092\u8907\u6570\u306e\u30ef\u30fc\u30ab\u30fc\u3067\u4e26\u884c\u51e6\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"gl-relative markdown-code-block js-markdown-code\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\" data-enlighter-lineoffset=\"189\" data-enlighter-highlight=\"208-210\">\/\/ Run begins watching and syncing.\r\nfunc (rsc *ReplicaSetController) Run(ctx context.Context, workers int) {\r\n    defer utilruntime.HandleCrash()\r\n\r\n    \/\/ Start events processing pipeline.\r\n    rsc.eventBroadcaster.StartStructuredLogging(0)\r\n    rsc.eventBroadcaster.StartRecordingToSink(&amp;v1core.EventSinkImpl{Interface: rsc.kubeClient.CoreV1().Events(\"\")})\r\n    defer rsc.eventBroadcaster.Shutdown()\r\n\r\n    defer rsc.queue.ShutDown()\r\n\r\n    controllerName := strings.ToLower(rsc.Kind)\r\n    klog.Infof(\"Starting %v controller\", controllerName)\r\n    defer klog.Infof(\"Shutting down %v controller\", controllerName)\r\n\r\n    if !cache.WaitForNamedCacheSync(rsc.Kind, ctx.Done(), rsc.podListerSynced, rsc.rsListerSynced) {\r\n        return\r\n    }\r\n\r\n    for i := 0; i &lt; workers; i++ {\r\n        go wait.UntilWithContext(ctx, rsc.worker, time.Second)\r\n    }\r\n\r\n    &lt;-ctx.Done()\r\n}<\/pre>\n<p>\u305d\u3057\u3066\u5404\u30ef\u30fc\u30ab\u30fc\u306f\u4ee5\u4e0b\u306e<a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/blob\/fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b\/pkg\/controller\/replicaset\/replica_set.go#L531-L548\">processNextWorkItem\u95a2\u6570<\/a>\u3092\u7121\u9650\u30eb\u30fc\u30d7\u3067\u547c\u3073\u51fa\u3057\u307e\u3059\u3002 \u3053\u306e\u4e2d\u3067\u547c\u3070\u308c\u3066\u3044\u308bsyncHandler\u304cReconcile\u95a2\u6570\u306e\u5b9f\u614b\u3067\u3059\u3002 syncHandler\u306b\u306f\u30ad\u30e5\u30fc\u304b\u3089\u53d6\u308a\u51fa\u3057\u305fkey\u3092\u6e21\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4e00\u4f53\u3053\u308c\u306f\u306a\u3093\u306a\u306e\u3067\u3057\u3087\u3046\u304b\u3002 \u6b21\u306b\u305d\u3061\u3089\u3092\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\" data-enlighter-lineoffset=\"531\">func (rsc *ReplicaSetController) processNextWorkItem(ctx context.Context) bool {\r\n    key, quit := rsc.queue.Get()\r\n    if quit {\r\n        return false\r\n    }\r\n    defer rsc.queue.Done(key)\r\n\r\n    err := rsc.syncHandler(ctx, key.(string))\r\n    if err == nil {\r\n        rsc.queue.Forget(key)\r\n        return true\r\n    }\r\n\r\n    utilruntime.HandleError(fmt.Errorf(\"sync %q failed with %v\", key, err))\r\n    rsc.queue.AddRateLimited(key)\r\n\r\n    return true\r\n}\r\n<\/pre>\n<p dir=\"auto\" data-sourcepos=\"73:1-77:165\">\u3053\u306e\u30ad\u30e5\u30fc\u306b\u306fReconcile\u3057\u305f\u3044ReplicaSet\u304c <strong>\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d\/ReplicaSet\u540d<\/strong> \u3068\u3044\u3046\u5f62\u3067\u30a8\u30f3\u30ad\u30e5\u30fc\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u305d\u306e\u305f\u3081ReplicaSet\u306e\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3082\u3061\u308d\u3093\u305d\u3046\u3067\u3059\u304c\u3001ReplicaSet\u306b\u7d10\u3065\u304fPod\u306b\u30a4\u30d9\u30f3\u30c8\u304c\u3042\u3063\u305f\u5834\u5408\u3067\u3082\u3001\u305d\u306e\u89aa\u3067\u3042\u308bReplicaSet\u304c\u30ad\u30e5\u30fc\u3078\u30a8\u30f3\u30ad\u30e5\u30fc\u3055\u308c\u307e\u3059\u3002 \u3053\u306e\u30ad\u30e5\u30fc\u306fReplicaSetController\u306e<a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/blob\/fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b\/pkg\/controller\/replicaset\/replica_set.go#L367-L406\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">addPod<\/a>, <a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/blob\/fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b\/pkg\/controller\/replicaset\/replica_set.go#L408-L481\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">updatePod<\/a>, <a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/blob\/fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b\/pkg\/controller\/replicaset\/replica_set.go#L483-L522\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">deletePod<\/a>\u3084<a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/blob\/fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b\/pkg\/controller\/replicaset\/replica_set.go#L296-L300\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">addRS<\/a>, <a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/blob\/fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b\/pkg\/controller\/replicaset\/replica_set.go#L302-L336\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">updateRS<\/a>, <a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/blob\/fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b\/pkg\/controller\/replicaset\/replica_set.go#L338-L365\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">deleteRS<\/a>\u95a2\u6570\u306e\u4e2d\u3067\u30a8\u30f3\u30ad\u30e5\u30fc\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u4ee5\u4e0a\u304b\u3089\u3001ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306eReconcile\u306fReplicaSet\u306b\u3057\u304b\u8208\u5473\u304c\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002 \u3053\u308c\u306f\u57fa\u672c\u7684\u306b\u4ed6\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3082\u540c\u3058\u3067\u3001Reconcile\u306f\u4f55\u304b\uff11\u7a2e\u985e\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u306e\u307f\u8cac\u4efb\u3092\u6301\u3064\u3053\u3068\u304c\u307b\u3068\u3093\u3069\u3067\u3059\u3002<\/p>\n<p dir=\"auto\" data-sourcepos=\"79:1-80:77\">syncHandler\u306fstruct\u3067\u3042\u308bReplicaSetContrller\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u3042\u308a\u3001\u5b9f\u614b\u306f<a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/blob\/fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b\/pkg\/controller\/replicaset\/replica_set.go#L655-L723\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">syncReplicaSet<\/a>\u304c<a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/blob\/fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b\/pkg\/controller\/replicaset\/replica_set.go#L184\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">\u4ee3\u5165\u3055\u308c\u3066\u3044\u307e\u3059<\/a>\u3002 \u3067\u306f\u30e1\u30a4\u30f3\u3067\u3042\u308bsyncReplicaSet\u306e\u5b9f\u88c5\u3092\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p dir=\"auto\" data-sourcepos=\"82:1-84:164\">\u5148\u307b\u3069\u8aac\u660e\u3057\u305f\u901a\u308a\u3001syncReplicaSet\u306f\u5f15\u6570\u3067\u3042\u308bkey\u3067<strong>\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d\/ReplicaSet\u540d<\/strong>\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059(658\u884c\u76ee)\u3002 \u305d\u3057\u3066\u305d\u308c\u306f\u5206\u89e3\u3055\u308c\u3001\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d\u3068ReplicaSet\u540d\u304c\u53d6\u308a\u51fa\u3055\u308c\u307e\u3059(664\u884c\u76ee)\u3002 \u53d6\u308a\u51fa\u3055\u308c\u305fReplicaSet\u306e\u307f\u3092\u5bfe\u8c61\u306b\u3053\u306eReconcile\u51e6\u7406\u304c\u5b9f\u65bd\u3055\u308c\u3001\u305d\u308c\u4ee5\u5916\u306eReplicaSet\u306f\u305d\u306eReconcile\u51e6\u7406\u3067\u306f\u5bfe\u8c61\u3068\u3057\u307e\u305b\u3093\u3002<\/p>\n<div class=\"gl-relative markdown-code-block js-markdown-code\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\" data-enlighter-lineoffset=\"658\">func (rsc *ReplicaSetController) syncReplicaSet(ctx context.Context, key string) error {\r\n    startTime := time.Now()\r\n    defer func() {\r\n        klog.V(4).Infof(\"Finished syncing %v %q (%v)\", rsc.Kind, key, time.Since(startTime))\r\n    }()\r\n\r\n    namespace, name, err := cache.SplitMetaNamespaceKey(key)\r\n    if err != nil {\r\n        return err\r\n    }\r\n    ...(\u7d9a\u304f)\r\n<\/pre>\n<p dir=\"auto\" data-sourcepos=\"100:1-101:120\">\u6b21\u306bReconcile\u5bfe\u8c61\u306eReplicaSet\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 \u524a\u9664\u3055\u308c\u3066\u3044\u305f\u5834\u5408\u306f\u305d\u308c\u4ee5\u4e0a\u51e6\u7406\u3092\u9032\u3081\u308b\u5fc5\u8981\u304c\u306a\u3044\u305f\u3081\u3001\u3053\u3053\u3067\u51e6\u7406\u304c\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\" data-enlighter-lineoffset=\"667\">...(\u7d9a\u304d)\r\nrs, err := rsc.rsLister.ReplicaSets(namespace).Get(name)\r\nif apierrors.IsNotFound(err) {\r\n    klog.V(4).Infof(\"%v %v has been deleted\", rsc.Kind, key)\r\n    rsc.expectations.DeleteExpectations(key)\r\n    return nil\r\n}\r\nif err != nil {\r\n    return err\r\n}\r\n...(\u7d9a\u304f)\r\n<\/pre>\n<p dir=\"auto\" data-sourcepos=\"117:1-118:108\">rsc.expectations.SatisfiedExpectations\u306f\u3001\u6700\u9069\u5316\u306e\u51e6\u7406\u306e\u3088\u3046\u306a\u3082\u306e\u306a\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u7121\u8996\u3057\u3066\u5927\u4e08\u592b\u3067\u3059(678\u884c\u76ee)\u3002 \u305d\u306e\u7d50\u679c\u3067\u3042\u308brsNeedsSync\u306b\u306ftrue\u304c\u5165\u308b\u3082\u306e\u3068\u3057\u3066\u3053\u308c\u4ee5\u964d\u8aad\u307f\u9032\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p dir=\"auto\" data-sourcepos=\"120:1-125:73\">\u5148\u307b\u3069\u53d6\u5f97\u3057\u305fReplicaSet\u306e\u7d50\u679c\u304b\u3089\u3001\u305d\u308c\u306b\u3088\u308a\u7ba1\u7406\u3055\u308c\u308bPod\u3092\u9078\u629e\u3059\u308b\u305f\u3081\u306eselector\u3092\u53d6\u5f97\u3057\u307e\u3059(679\u884c\u76ee)\u3002 \u305d\u306e\u6b21\u306b\u3001ReplicaSet\u304c\u6240\u5c5e\u3059\u308b\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u306e\u5168\u3066\u306ePod\u3092\u53d6\u5f97\u3057\u307e\u3059(688\u884c\u76ee)\u3002 \u305d\u3057\u3066\u53d6\u5f97\u3057\u305fPod\u304b\u3089\u30a2\u30af\u30c6\u30a3\u30d6\u306aPod\u306e\u307f\u3092\u53d6\u5f97\u3057\u307e\u3059(693\u884c\u76ee)\u3002 rsc.claimPods\u306f\u5c11\u3057\u8907\u96d1\u3067\u3059\u304c\u3001\u5bfe\u8c61\u306eReplicaSet\u3067\u7ba1\u7406\u3055\u308c\u308b\u3079\u304dPod\u3092\u30d5\u30a3\u30eb\u30bf\u30fc\u3057\u307e\u3059(697\u884c\u76ee)\u3002 \u5358\u7d14\u306a\u30d5\u30a3\u30eb\u30bf\u30fc\u3060\u3051\u3067\u306a\u304f\u3001\u5bfe\u8c61\u306eReplicaSet\u306e\u30bb\u30ec\u30af\u30bf\u306b\u30de\u30c3\u30c1\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u306eReplicaSet\u306b\u7ba1\u7406\u3055\u308c\u3066\u3044\u306a\u3044Pod\u3092\u7ba1\u7406\u4e0b\u306b\u3059\u308b\u3088\u3046\u306a\u4fee\u6b63\u3082\u3055\u308c\u307e\u3059\u3002 \u3053\u3053\u307e\u3067\u3067ReplicaSet\u306e\u7ba1\u7406\u5bfe\u8c61\u306ePod\u304c\u7d5e\u308a\u8fbc\u3081\u307e\u3057\u305f\u3002<\/p>\n<div class=\"gl-relative markdown-code-block js-markdown-code\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\" data-enlighter-lineoffset=\"677\">...(\u7d9a\u304d)\r\nrsNeedsSync := rsc.expectations.SatisfiedExpectations(key)\r\nselector, err := metav1.LabelSelectorAsSelector(rs.Spec.Selector)\r\nif err != nil {\r\n    utilruntime.HandleError(fmt.Errorf(\"error converting pod selector to selector for rs %v\/%v: %v\", namespace, name, err))\r\n    return nil\r\n}\r\n\r\n\/\/ list all pods to include the pods that don't match the rs`s selector\r\n\/\/ anymore but has the stale controller ref.\r\n\/\/ TODO: Do the List and Filter in a single pass, or use an index.\r\nallPods, err := rsc.podLister.Pods(rs.Namespace).List(labels.Everything())\r\nif err != nil {\r\n    return err\r\n}\r\n\/\/ Ignore inactive pods.\r\nfilteredPods := controller.FilterActivePods(allPods)\r\n\r\n\/\/ NOTE: filteredPods are pointing to objects from cache - if you need to\r\n\/\/ modify them, you need to copy it first.\r\nfilteredPods, err = rsc.claimPods(ctx, rs, selector, filteredPods)\r\nif err != nil {\r\n    return err\r\n}\r\n...(\u7d9a\u304f)\r\n<\/pre>\n<p dir=\"auto\" data-sourcepos=\"155:1-160:247\">\u3053\u3053\u304b\u3089\u672c\u683c\u7684\u306aReconcile\u51e6\u7406\u3067\u3059\u3002 \u524a\u9664\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306e\u307f\u3001rsc.manageReplicas\u3067Pod\u306e\u4f5c\u6210\u3084\u524a\u9664\u3092\u3057\u307e\u3059(704\u884c\u76ee)\u3002 rsc.manageReplicas\u3067\u306f\u5b9f\u969b\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u308bPod(filteredPods)\u306e\u6570\u3068ReplicaSet\u3067\u4f5c\u3089\u308c\u3066\u307b\u3057\u3044Pod\u306e\u6570(.spec.replicas)\u3092\u6bd4\u8f03\u3057\u307e\u3059\u3002 \u305d\u3057\u3066\u8db3\u308a\u306a\u3051\u308c\u3070\u4f5c\u6210\u3057\u3001\u9006\u306b\u591a\u3059\u304e\u308b\u5834\u5408\u306f\u524a\u9664\u3059\u308b\u51e6\u7406\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002 \u3053\u308c\u307e\u3067\u306e\u9023\u8f09\u3067\u8aac\u660e\u3057\u305f\u901a\u308a\u3001Reconcile\u51e6\u7406\u306f\u30a4\u30d9\u30f3\u30c8\u306e\u7a2e\u985e(\u4f8b\u3048\u3070ReplicaSet\u306eCreate\u3084Delete\u306a\u3069)\u306b\u3088\u3063\u3066\u51e6\u7406\u3092\u5206\u5c90\u3057\u306a\u3044\u3053\u3068\u3092\u8aac\u660e\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u30b3\u30fc\u30c9\u4e0a\u304b\u3089\u3082\u305d\u308c\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002 ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u901a\u3057\u3066\u3001Reconcile\u51e6\u7406\u306f\u5b9f\u969b\u306e\u72b6\u614b\u3068\u7406\u60f3\u306e\u72b6\u614b\u3092\u6bd4\u8f03\u3057\u3066\u3001\u5dee\u5206\u306b\u5bfe\u3057\u3066\u30a2\u30af\u30b7\u30e7\u30f3\u3059\u308b\u3082\u306e\u3068\u3044\u3046\u3053\u3068\u3092\u3001\u6539\u3081\u3066\u7406\u89e3\u3057\u3066\u3044\u305f\u3060\u3051\u305f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p dir=\"auto\" data-sourcepos=\"162:1-163:69\">manageReplicas\u3067\u306f\u4ed6\u306b\u3082\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6025\u6fc0\u306b\u6d41\u3055\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306e\u51e6\u7406\u3060\u3063\u305f\u308a\u3001Pod\u4f5c\u6210\u6642\u306b\u5c11\u3057\u305a\u3064\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u3092\u5897\u3084\u3057\u306a\u304c\u3089\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6295\u3052\u305f\u308a\u3068\u3044\u3063\u305f\u3044\u304f\u3064\u304b\u306e\u5de5\u592b\u304c\u306a\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u8208\u5473\u304c\u3042\u308c\u3070\u305c\u3072\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"gl-relative markdown-code-block js-markdown-code\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\" data-enlighter-lineoffset=\"701\">...(\u7d9a\u304d)\r\nvar manageReplicasErr error\r\nif rsNeedsSync &amp;&amp; rs.DeletionTimestamp == nil {\r\n    manageReplicasErr = rsc.manageReplicas(ctx, filteredPods, rs)\r\n}\r\n...(\u7d9a\u304f)<\/pre>\n<p dir=\"auto\" data-sourcepos=\"174:1-174:81\">\u6700\u5f8c\u306b<strong>.status<\/strong>\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u66f4\u65b0\u3057\u3066\u3053\u306e\u95a2\u6570\u306f\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\" data-enlighter-lineoffset=\"705\">    ...(\u7d9a\u304d)\r\n    rs = rs.DeepCopy()\r\n    newStatus := calculateStatus(rs, filteredPods, manageReplicasErr)\r\n\r\n    \/\/ Always updates status as pods come up or die.\r\n    updatedRS, err := updateReplicaSetStatus(rsc.kubeClient.AppsV1().ReplicaSets(rs.Namespace), rs, newStatus)\r\n    if err != nil {\r\n        \/\/ Multiple things could lead to this update failing. Requeuing the replica set ensures\r\n        \/\/ Returning an error causes a requeue without forcing a hotloop\r\n        return err\r\n    }\r\n    \/\/ Resync the ReplicaSet after MinReadySeconds as a last line of defense to guard against clock-skew.\r\n    if manageReplicasErr == nil &amp;&amp; updatedRS.Spec.MinReadySeconds &gt; 0 &amp;&amp;\r\n        updatedRS.Status.ReadyReplicas == *(updatedRS.Spec.Replicas) &amp;&amp;\r\n        updatedRS.Status.AvailableReplicas != *(updatedRS.Spec.Replicas) {\r\n        rsc.queue.AddAfter(key, time.Duration(updatedRS.Spec.MinReadySeconds)*time.Second)\r\n    }\r\n    return manageReplicasErr\r\n}\r\n<\/pre>\n<p dir=\"auto\" data-sourcepos=\"198:1-198:117\">\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304c\u3069\u3046\u3044\u3046\u6d41\u308c\u3067\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u96f0\u56f2\u6c17\u3092\u3064\u304b\u3081\u307e\u3057\u305f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<h2 dir=\"auto\" data-sourcepos=\"200:1-200:12\">\u6700\u5f8c\u306b<\/h2>\n<p dir=\"auto\" data-sourcepos=\"202:1-205:135\">\u4eca\u56de\u306f\u5b9f\u969b\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304c\u3069\u3046\u3044\u3046\u4f5c\u308a\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304b\u3092\u77e5\u308b\u305f\u3081\u306b\u3001Kubernetes\u306eReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002 Reconcile\u51e6\u7406\u306e\u6d41\u308c\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u5927\u4e8b\u306a\u3068\u3053\u308d\u3092\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3057\u305f\u304c\u3001\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u7d30\u90e8\u307e\u3067\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002 \u69d8\u3005\u306a\u8003\u616e\u304c\u3055\u308c\u3066\u3044\u3066\u3068\u3066\u3082\u9762\u767d\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u3053\u3053\u307e\u3067\u3067\u5b66\u3093\u3060\u3053\u3068\u3092\u6d3b\u7528\u3057\u3001\u6b21\u56de\u4ee5\u964d\u3067\u5b9f\u969b\u306b\u30b5\u30f3\u30d7\u30eb\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u958b\u767a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p dir=\"auto\" data-sourcepos=\"207:1-208:89\">\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\u3067\u306fKubernetes\u306b\u95a2\u3059\u308b\u69d8\u3005\u306a\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3092\u63d0\u4f9b\u3057\u3066\u304a\u308a\u307e\u3059\u3002 \u8a73\u3057\u304f\u306f<a href=\"\/training\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">\u3053\u3061\u3089<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<p dir=\"auto\" data-sourcepos=\"210:1-210:249\">\u307e\u305f\u3001\u3053\u306e\u9023\u8f09\u306e\u66f4\u65b0\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308a\u305f\u3044\u65b9\u306f\u3001<a href=\"https:\/\/twitter.com\/creationline\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">Twitter\u30a2\u30ab\u30a6\u30f3\u30c8<\/a>\u306e\u30d5\u30a9\u30ed\u30fc\u3084\u3001\u3053\u306e\u30da\u30fc\u30b8\u4e0b\u90e8\u306b\u30ea\u30f3\u30af\u306e\u3042\u308bCL LAB MAIL MAGAZINE\u3078\u306e\u767b\u9332\u3092\u305c\u3072\u304a\u9858\u3044\u3057\u307e\u3059\uff01<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306f\u5ba3\u8a00\u7684\u306a\u7ba1\u7406\u3084Reconciliation Loop\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002 \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304c\u3069\u306e\u3088\u3046\u306b\u4f5c\u3089\u308c\u3066\u3044\u308b\u304b\u5927\u307e\u304b\u306b\u7406\u89e3\u304c\u3067\u304d\u305f\u3068\u3053\u308d\u3067\u3001\u5b9f\u969b\u306eKubernetes\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002 \u7d30\u304b [&#8230;]<\/p>\n","protected":false},"author":82,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[43,122],"tags":[],"class_list":["post-59859","post","type-post","status-publish","format-standard","hentry","category-docker","category-kubernetes"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u9023\u8f09: Kubernetes\u3067\u30ab\u30b9\u30bf\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u308d\u3046\uff01 \uff5e\u7b2c6\u56de ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u5b66\u3076\uff5e - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"Docker, Kubernetes |\u524d\u56de\u306f\u5ba3\u8a00\u7684\u306a\u7ba1\u7406\u3084Reconciliation Loop\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u9023\u8f09: Kubernetes\u3067\u30ab\u30b9\u30bf\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u308d\u3046\uff01 \uff5e\u7b2c6\u56de ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u5b66\u3076\uff5e - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"Docker, Kubernetes |\u524d\u56de\u306f\u5ba3\u8a00\u7684\u306a\u7ba1\u7406\u3084Reconciliation Loop\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-07T00:00:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/screenshot.png\" \/>\n\t<meta property=\"og:image:width\" content=\"470\" \/>\n\t<meta property=\"og:image:height\" content=\"394\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"S U\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"S U\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/59859#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/59859\"},\"author\":{\"name\":\"S U\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/dca14cb27ff34414424ff487a8cae4aa\"},\"headline\":\"\u9023\u8f09: Kubernetes\u3067\u30ab\u30b9\u30bf\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u308d\u3046\uff01 \uff5e\u7b2c6\u56de ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u5b66\u3076\uff5e\",\"datePublished\":\"2023-04-07T00:00:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/59859\"},\"wordCount\":107,\"articleSection\":[\"Docker\",\"Kubernetes\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/59859\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/59859\",\"name\":\"\u9023\u8f09: Kubernetes\u3067\u30ab\u30b9\u30bf\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u308d\u3046\uff01 \uff5e\u7b2c6\u56de ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u5b66\u3076\uff5e - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"datePublished\":\"2023-04-07T00:00:16+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/dca14cb27ff34414424ff487a8cae4aa\"},\"description\":\"Docker, Kubernetes |\u524d\u56de\u306f\u5ba3\u8a00\u7684\u306a\u7ba1\u7406\u3084Reconciliation Loop\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/59859#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/59859\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/59859#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Docker\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u9023\u8f09: Kubernetes\u3067\u30ab\u30b9\u30bf\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u308d\u3046\uff01 \uff5e\u7b2c6\u56de ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u5b66\u3076\uff5e\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/dca14cb27ff34414424ff487a8cae4aa\",\"name\":\"S U\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/avatar.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/avatar.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/avatar.png\",\"caption\":\"S U\"},\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/s-uemura\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u9023\u8f09: Kubernetes\u3067\u30ab\u30b9\u30bf\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u308d\u3046\uff01 \uff5e\u7b2c6\u56de ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u5b66\u3076\uff5e - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"Docker, Kubernetes |\u524d\u56de\u306f\u5ba3\u8a00\u7684\u306a\u7ba1\u7406\u3084Reconciliation Loop\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859","og_locale":"ja_JP","og_type":"article","og_title":"\u9023\u8f09: Kubernetes\u3067\u30ab\u30b9\u30bf\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u308d\u3046\uff01 \uff5e\u7b2c6\u56de ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u5b66\u3076\uff5e - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"Docker, Kubernetes |\u524d\u56de\u306f\u5ba3\u8a00\u7684\u306a\u7ba1\u7406\u3084Reconciliation Loop\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002","og_url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2023-04-07T00:00:16+00:00","og_image":[{"width":470,"height":394,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/screenshot.png","type":"image\/png"}],"author":"S U","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"S U","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859"},"author":{"name":"S U","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/dca14cb27ff34414424ff487a8cae4aa"},"headline":"\u9023\u8f09: Kubernetes\u3067\u30ab\u30b9\u30bf\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u308d\u3046\uff01 \uff5e\u7b2c6\u56de ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u5b66\u3076\uff5e","datePublished":"2023-04-07T00:00:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859"},"wordCount":107,"articleSection":["Docker","Kubernetes"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859","url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859","name":"\u9023\u8f09: Kubernetes\u3067\u30ab\u30b9\u30bf\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u308d\u3046\uff01 \uff5e\u7b2c6\u56de ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u5b66\u3076\uff5e - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"datePublished":"2023-04-07T00:00:16+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/dca14cb27ff34414424ff487a8cae4aa"},"description":"Docker, Kubernetes |\u524d\u56de\u306f\u5ba3\u8a00\u7684\u306a\u7ba1\u7406\u3084Reconciliation Loop\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/59859#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative"},{"@type":"ListItem","position":3,"name":"Docker","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker"},{"@type":"ListItem","position":4,"name":"\u9023\u8f09: Kubernetes\u3067\u30ab\u30b9\u30bf\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u308d\u3046\uff01 \uff5e\u7b2c6\u56de ReplicaSet\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5b9f\u88c5\u3092\u5b66\u3076\uff5e"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/dca14cb27ff34414424ff487a8cae4aa","name":"S U","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","caption":"S U"},"url":"https:\/\/www.creationline.com\/tech-blog\/author\/s-uemura"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/59859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/82"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=59859"}],"version-history":[{"count":14,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/59859\/revisions"}],"predecessor-version":[{"id":59880,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/59859\/revisions\/59880"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=59859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=59859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=59859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}