Tanzu Build Service(TBS) をアップグレードする
以下の記事で利用しているTanzu Build Service(TBS) の環境をアップグレードしてみます。
- Tanzu Kubernetes Grid 上に Tanzu Build Service をインストールする
- Tanzu Build Service を利用してみる - その1
手順
TBS アップグレード
こちらのドキュメント「Tanzu Build Service - Upgrading Tanzu Build Service」を参考にします。
インストールした際の手順と同様に実施します。
$ mkdir v1.1.4
$ tar xvf build-service-1.1.4.tar -C v1.1.4
images.lock
manifests/
manifests/pod-webhook/
manifests/pod-webhook/configmaps.yaml
manifests/pod-webhook/deployment.yaml
manifests/pod-webhook/rbac.yaml
manifests/pod-webhook/overlay.yaml
manifests/kpack/
manifests/kpack/kp-config.yaml
manifests/kpack/registry-serviceaccount.yaml
manifests/kpack/registry-secret.yaml
manifests/kpack/release.yaml
manifests/kpack/overlay.yaml
manifests/stacks-operator/
manifests/stacks-operator/registry-secret.yaml
manifests/stacks-operator/release.yaml
manifests/stacks-operator/overlay.yaml
manifests/ca-cert.yaml
manifests/build-service/
manifests/build-service/namespace.yaml
manifests/build-service/admin-role.yaml
manifests/build-service/ccb-service-account.yaml
manifests/build-service/registry-secret.yaml
manifests/build-service/authenticated-role.yaml
manifests/build-service/user-role.yaml
manifests/warmer/
manifests/warmer/daemonset.yaml
manifests/warmer/deployment.yaml
manifests/warmer/rbac.yaml
manifests/secret-syncer/
manifests/secret-syncer/deployment.yaml
manifests/secret-syncer/rbac.yaml
manifests/values.star
values.yaml
$ cd v1.1.4
$ ls
images.lock manifests values.yaml
TBSのアップグレードに必要なイメージをリロケートします。
$ kbld relocate -f images.lock --lock-output images-relocated.lock --repository harbor2.<MYDOMAIN>/tanzu/tbs
relocate | exporting 15 images...
relocate | will export registry.pivotal.io/build-service/kpack-build-init-windows@sha256:69e9e14949a130049ae1684bccbf734cb132bc98796801775161843e316bb127
relocate | will export registry.pivotal.io/build-service/kpack-build-init@sha256:94cdd9223310c2bbc6b9f10d17f754337d782f32ac1cd7de58d3e78746d5ab7c
relocate | will export registry.pivotal.io/build-service/kpack-completion-windows@sha256:4752610e600b8f2930a31a277944a8cfb7a361b352ce3b171198519537c79db9
relocate | will export registry.pivotal.io/build-service/kpack-completion@sha256:7b8b829ee21f6009ea9b580cad86fb2f74f28d2aa34676d4a130fb62b9fc9893
relocate | will export registry.pivotal.io/build-service/kpack-controller@sha256:ec256da7e29eeecdd0821f499e754080672db8f0bc521b2fa1f13f6a75a04835
relocate | will export registry.pivotal.io/build-service/kpack-lifecycle@sha256:fb7e0916ea429697630743b34e858c3555ddfbb5940683754dfccd3bfa446e0a
relocate | will export registry.pivotal.io/build-service/kpack-rebase@sha256:97f9f9c1f25b720401f18ad21a7f92ddb4ff80882333702586ac8f7d619c3e02
relocate | will export registry.pivotal.io/build-service/kpack-webhook@sha256:ab9708d6be3f348fb89dda510525ee15f87716424a8c933f8620f074fd49b73a
relocate | will export registry.pivotal.io/build-service/pod-webhook@sha256:d40667df0d832800d894d4f9c1f662f96805de5dd5f6951d99ac0b56d56db2da
relocate | will export registry.pivotal.io/build-service/secret-syncer@sha256:57bde18ba3f450512697c2c8882227eb9ff7f547edf19548c8d2b6411d823730
relocate | will export registry.pivotal.io/build-service/setup-ca-certs@sha256:de52c865c102bb8ba65c2378a45ee6c080e95d7d8765f3f52555e763c797d300
relocate | will export registry.pivotal.io/build-service/sleeper@sha256:96f409f660fd48fc3d9c040afb2fb49a20ff7fa178fa6f93b5ec5d0f562c5814
relocate | will export registry.pivotal.io/build-service/smart-warmer@sha256:eb607c5ef535b681c85925f74eca15c9487f3b6de4f0398ec23012b3a63a3b96
relocate | will export registry.pivotal.io/build-service/stackify@sha256:720dea633643f924c432609a806b996e31054b6d79b3801288b142e0d2f757ec
relocate | will export registry.pivotal.io/build-service/stacks-operator-controller@sha256:a0170e2a3363d586d986a6fc611e0e32f33cbc9f89476cbcdb56e9099fb74289
relocate | exported 15 images
relocate | importing 15 images...
relocate | importing registry.pivotal.io/build-service/pod-webhook@sha256:d40667df0d832800d894d4f9c1f662f96805de5dd5f6951d99ac0b56d56db2da -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:d40667df0d832800d894d4f9c1f662f96805de5dd5f6951d99ac0b56d56db2da...
relocate | importing registry.pivotal.io/build-service/kpack-rebase@sha256:97f9f9c1f25b720401f18ad21a7f92ddb4ff80882333702586ac8f7d619c3e02 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:97f9f9c1f25b720401f18ad21a7f92ddb4ff80882333702586ac8f7d619c3e02...
relocate | importing registry.pivotal.io/build-service/kpack-webhook@sha256:ab9708d6be3f348fb89dda510525ee15f87716424a8c933f8620f074fd49b73a -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:ab9708d6be3f348fb89dda510525ee15f87716424a8c933f8620f074fd49b73a...
relocate | importing registry.pivotal.io/build-service/kpack-completion-windows@sha256:4752610e600b8f2930a31a277944a8cfb7a361b352ce3b171198519537c79db9 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:4752610e600b8f2930a31a277944a8cfb7a361b352ce3b171198519537c79db9...
relocate | importing registry.pivotal.io/build-service/kpack-controller@sha256:ec256da7e29eeecdd0821f499e754080672db8f0bc521b2fa1f13f6a75a04835 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:ec256da7e29eeecdd0821f499e754080672db8f0bc521b2fa1f13f6a75a04835...
relocate | importing registry.pivotal.io/build-service/kpack-build-init-windows@sha256:69e9e14949a130049ae1684bccbf734cb132bc98796801775161843e316bb127 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:69e9e14949a130049ae1684bccbf734cb132bc98796801775161843e316bb127...
relocate | importing registry.pivotal.io/build-service/stacks-operator-controller@sha256:a0170e2a3363d586d986a6fc611e0e32f33cbc9f89476cbcdb56e9099fb74289 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:a0170e2a3363d586d986a6fc611e0e32f33cbc9f89476cbcdb56e9099fb74289...
relocate | importing registry.pivotal.io/build-service/setup-ca-certs@sha256:de52c865c102bb8ba65c2378a45ee6c080e95d7d8765f3f52555e763c797d300 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:de52c865c102bb8ba65c2378a45ee6c080e95d7d8765f3f52555e763c797d300...
relocate | importing registry.pivotal.io/build-service/sleeper@sha256:96f409f660fd48fc3d9c040afb2fb49a20ff7fa178fa6f93b5ec5d0f562c5814 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:96f409f660fd48fc3d9c040afb2fb49a20ff7fa178fa6f93b5ec5d0f562c5814...
relocate | importing registry.pivotal.io/build-service/secret-syncer@sha256:57bde18ba3f450512697c2c8882227eb9ff7f547edf19548c8d2b6411d823730 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:57bde18ba3f450512697c2c8882227eb9ff7f547edf19548c8d2b6411d823730...
relocate | importing registry.pivotal.io/build-service/stackify@sha256:720dea633643f924c432609a806b996e31054b6d79b3801288b142e0d2f757ec -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:720dea633643f924c432609a806b996e31054b6d79b3801288b142e0d2f757ec...
relocate | importing registry.pivotal.io/build-service/smart-warmer@sha256:eb607c5ef535b681c85925f74eca15c9487f3b6de4f0398ec23012b3a63a3b96 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:eb607c5ef535b681c85925f74eca15c9487f3b6de4f0398ec23012b3a63a3b96...
relocate | importing registry.pivotal.io/build-service/kpack-lifecycle@sha256:fb7e0916ea429697630743b34e858c3555ddfbb5940683754dfccd3bfa446e0a -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:fb7e0916ea429697630743b34e858c3555ddfbb5940683754dfccd3bfa446e0a...
relocate | importing registry.pivotal.io/build-service/kpack-completion@sha256:7b8b829ee21f6009ea9b580cad86fb2f74f28d2aa34676d4a130fb62b9fc9893 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:7b8b829ee21f6009ea9b580cad86fb2f74f28d2aa34676d4a130fb62b9fc9893...
relocate | importing registry.pivotal.io/build-service/kpack-build-init@sha256:94cdd9223310c2bbc6b9f10d17f754337d782f32ac1cd7de58d3e78746d5ab7c -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:94cdd9223310c2bbc6b9f10d17f754337d782f32ac1cd7de58d3e78746d5ab7c...
relocate | imported 15 images
Succeeded
事前にTBS の稼働状況を確認してみます。
$ kubectl get ns
NAME STATUS AGE
build-service Active 2d9h
default Active 3d9h
demo Active 2d9h
kpack Active 2d9h
kube-node-lease Active 3d9h
kube-public Active 3d9h
kube-system Active 3d9h
metallb-system Active 3d8h
stacks-operator-system Active 2d9h
tkg-system-public Active 3d9h
$ kubectl get pod -n build-service
NAME READY STATUS RESTARTS AGE
build-pod-image-fetcher-g2khm 5/5 Running 0 2d9h
cert-injection-webhook-5f6d8bf4bf-nmgq4 1/1 Running 0 2d9h
secret-syncer-controller-5bbdfbc694-hlcdq 1/1 Running 0 2d9h
smart-warmer-image-fetcher-dzrtc 4/4 Running 0 4h38m
warmer-controller-67696b9d6c-f4psz 1/1 Running 0 2d9h
$ kubectl get pod -n kpack
NAME READY STATUS RESTARTS AGE
kpack-controller-5c88bc87bc-6qhgh 1/1 Running 0 2d9h
kpack-webhook-76955f5675-4cxqk 1/1 Running 0 2d9h
$ kubectl get pod -n stacks-operator-system
NAME READY STATUS RESTARTS AGE
controller-manager-6c5b8646d4-wtqk5 1/1 Running 1 2d9h
アップグレードしていきます。
$ ytt -f values.yaml -f manifests/ -v docker_repository=harbor2.<MYDOMAIN>/tanzu/tbs -v docker_username=<harbor-user> -v docker_password=<harbor-user-password> | kbld -f images-relocated.lock -f- |kapp deploy -a tbs -f- -y
Target cluster 'https://xxx.xxx.xxx.xxx:6443' (nodes: devsecops-control-plane-kw5wx, 1+)
resolve | final: build-init -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:94cdd9223310c2bbc6b9f10d17f754337d782f32ac1cd7de58d3e78746d5ab7c
resolve | final: completion -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:7b8b829ee21f6009ea9b580cad86fb2f74f28d2aa34676d4a130fb62b9fc9893
resolve | final: dev.registry.pivotal.io/build-service/pod-webhook@sha256:d40667df0d832800d894d4f9c1f662f96805de5dd5f6951d99ac0b56d56db2da -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:d40667df0d832800d894d4f9c1f662f96805de5dd5f6951d99ac0b56d56db2da
resolve | final: dev.registry.pivotal.io/build-service/setup-ca-certs@sha256:de52c865c102bb8ba65c2378a45ee6c080e95d7d8765f3f52555e763c797d300 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:de52c865c102bb8ba65c2378a45ee6c080e95d7d8765f3f52555e763c797d300
resolve | final: dev.registry.pivotal.io/core-deps/stackify@sha256:4e134fc6b4dd3f90d03cf5358b582ba2a75fba07f202ffe992e28e2d9373edfc -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:720dea633643f924c432609a806b996e31054b6d79b3801288b142e0d2f757ec
resolve | final: dev.registry.pivotal.io/core-deps/stacks-operator@sha256:bc503d56593a0756f6549da642c36df9ec7556fb8148a5849b6fd3f8f8eb8105 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:a0170e2a3363d586d986a6fc611e0e32f33cbc9f89476cbcdb56e9099fb74289
resolve | final: gcr.io/cf-build-service-public/kpack/build-init-windows@sha256:69e9e14949a130049ae1684bccbf734cb132bc98796801775161843e316bb127 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:69e9e14949a130049ae1684bccbf734cb132bc98796801775161843e316bb127
resolve | final: gcr.io/cf-build-service-public/kpack/build-init@sha256:94cdd9223310c2bbc6b9f10d17f754337d782f32ac1cd7de58d3e78746d5ab7c -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:94cdd9223310c2bbc6b9f10d17f754337d782f32ac1cd7de58d3e78746d5ab7c
resolve | final: gcr.io/cf-build-service-public/kpack/completion-windows@sha256:4752610e600b8f2930a31a277944a8cfb7a361b352ce3b171198519537c79db9 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:4752610e600b8f2930a31a277944a8cfb7a361b352ce3b171198519537c79db9
resolve | final: gcr.io/cf-build-service-public/kpack/completion@sha256:7b8b829ee21f6009ea9b580cad86fb2f74f28d2aa34676d4a130fb62b9fc9893 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:7b8b829ee21f6009ea9b580cad86fb2f74f28d2aa34676d4a130fb62b9fc9893
resolve | final: gcr.io/cf-build-service-public/kpack/controller@sha256:ec256da7e29eeecdd0821f499e754080672db8f0bc521b2fa1f13f6a75a04835 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:ec256da7e29eeecdd0821f499e754080672db8f0bc521b2fa1f13f6a75a04835
resolve | final: gcr.io/cf-build-service-public/kpack/lifecycle@sha256:fb7e0916ea429697630743b34e858c3555ddfbb5940683754dfccd3bfa446e0a -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:fb7e0916ea429697630743b34e858c3555ddfbb5940683754dfccd3bfa446e0a
resolve | final: gcr.io/cf-build-service-public/kpack/rebase@sha256:97f9f9c1f25b720401f18ad21a7f92ddb4ff80882333702586ac8f7d619c3e02 -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:97f9f9c1f25b720401f18ad21a7f92ddb4ff80882333702586ac8f7d619c3e02
resolve | final: gcr.io/cf-build-service-public/kpack/webhook@sha256:ab9708d6be3f348fb89dda510525ee15f87716424a8c933f8620f074fd49b73a -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:ab9708d6be3f348fb89dda510525ee15f87716424a8c933f8620f074fd49b73a
resolve | final: rebase -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:97f9f9c1f25b720401f18ad21a7f92ddb4ff80882333702586ac8f7d619c3e02
resolve | final: secret-syncer -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:57bde18ba3f450512697c2c8882227eb9ff7f547edf19548c8d2b6411d823730
resolve | final: setup-ca-certs -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:de52c865c102bb8ba65c2378a45ee6c080e95d7d8765f3f52555e763c797d300
resolve | final: sleeper -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:96f409f660fd48fc3d9c040afb2fb49a20ff7fa178fa6f93b5ec5d0f562c5814
resolve | final: stackify -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:720dea633643f924c432609a806b996e31054b6d79b3801288b142e0d2f757ec
resolve | final: warmer -> harbor2.<MYDOMAIN>/tanzu/tbs@sha256:eb607c5ef535b681c85925f74eca15c9487f3b6de4f0398ec23012b3a63a3b96
Changes
Namespace Name Kind Conds. Age Op Op st. Wait to Rs Ri
(cluster) builders.kpack.io CustomResourceDefinition 2/2 t 2d update - reconcile ok -
^ builds.kpack.io CustomResourceDefinition 2/2 t 2d update - reconcile ok -
^ clusterbuilders.kpack.io CustomResourceDefinition 2/2 t 2d update - reconcile ok -
^ clusterstacks.kpack.io CustomResourceDefinition 2/2 t 2d update - reconcile ok -
^ clusterstores.kpack.io CustomResourceDefinition 2/2 t 2d update - reconcile ok -
^ customstacks.stacks.stacks-operator.tanzu.vmware.com CustomResourceDefinition 0/0 t 2d update - reconcile ok -
^ defaults.webhook.cert-injection.tanzu.vmware.com MutatingWebhookConfiguration - 2d update - reconcile ok -
^ defaults.webhook.kpack.io MutatingWebhookConfiguration - 2d update - reconcile ok -
^ images.kpack.io CustomResourceDefinition 2/2 t 2d update - reconcile ok -
^ sourceresolvers.kpack.io CustomResourceDefinition 2/2 t 2d update - reconcile ok -
^ validation.webhook.kpack.io ValidatingWebhookConfiguration - 2d update - reconcile ok -
build-service build-pod-image-fetcher DaemonSet - 2d update - reconcile ok -
^ cert-injection-webhook-tls Secret - 2d update - reconcile ok -
^ secret-syncer-controller Deployment 2/2 t 2d update - reconcile ok -
^ sleeper-image ConfigMap - 2d update - reconcile ok -
^ warmer-controller Deployment 2/2 t 2d update - reconcile ok -
kpack build-init-image ConfigMap - 2d update - reconcile ok -
^ build-init-windows-image ConfigMap - 2d update - reconcile ok -
^ canonical-registry-serviceaccount ServiceAccount - 2d update - reconcile ok -
^ completion-image ConfigMap - 2d update - reconcile ok -
^ completion-windows-image ConfigMap - 2d update - reconcile ok -
^ kpack-controller Deployment 2/2 t 2d update - reconcile ok -
^ kpack-webhook Deployment 2/2 t 2d update - reconcile ok -
^ rebase-image ConfigMap - 2d update - reconcile ok -
^ webhook-certs Secret - 2d update - reconcile ok -
stacks-operator-system controller-manager Deployment 2/2 t 2d update - reconcile ok -
^ stackify-image ConfigMap - 2d update - reconcile ok -
Op: 0 create, 0 delete, 27 update, 0 noop
Wait to: 27 reconcile, 0 delete, 0 noop
2:38:42PM: ---- applying 21 changes [0/27 done] ----
2:38:42PM: update configmap/completion-windows-image (v1) namespace: kpack
2:38:42PM: update configmap/sleeper-image (v1) namespace: build-service
2:38:42PM: update customresourcedefinition/clusterstacks.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: update customresourcedefinition/sourceresolvers.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: update mutatingwebhookconfiguration/defaults.webhook.kpack.io (admissionregistration.k8s.io/v1beta1) cluster
2:38:42PM: update secret/webhook-certs (v1) namespace: kpack
2:38:42PM: update customresourcedefinition/images.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: update validatingwebhookconfiguration/validation.webhook.kpack.io (admissionregistration.k8s.io/v1beta1) cluster
2:38:42PM: update secret/cert-injection-webhook-tls (v1) namespace: build-service
2:38:42PM: update configmap/stackify-image (v1) namespace: stacks-operator-system
2:38:42PM: update serviceaccount/canonical-registry-serviceaccount (v1) namespace: kpack
2:38:42PM: update customresourcedefinition/builds.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: update mutatingwebhookconfiguration/defaults.webhook.cert-injection.tanzu.vmware.com (admissionregistration.k8s.io/v1beta1) cluster
2:38:42PM: update customresourcedefinition/builders.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: update customresourcedefinition/clusterbuilders.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: update configmap/build-init-image (v1) namespace: kpack
2:38:42PM: update customresourcedefinition/clusterstores.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: update configmap/rebase-image (v1) namespace: kpack
2:38:42PM: update configmap/build-init-windows-image (v1) namespace: kpack
2:38:42PM: update configmap/completion-image (v1) namespace: kpack
2:38:42PM: update customresourcedefinition/customstacks.stacks.stacks-operator.tanzu.vmware.com (apiextensions.k8s.io/v1beta1) cluster
2:38:42PM: ---- waiting on 21 changes [0/27 done] ----
2:38:42PM: ok: reconcile configmap/sleeper-image (v1) namespace: build-service
2:38:42PM: ok: reconcile configmap/completion-windows-image (v1) namespace: kpack
2:38:42PM: ok: reconcile customresourcedefinition/images.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: ok: reconcile customresourcedefinition/clusterstacks.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: ok: reconcile mutatingwebhookconfiguration/defaults.webhook.kpack.io (admissionregistration.k8s.io/v1beta1) cluster
2:38:42PM: ok: reconcile customresourcedefinition/sourceresolvers.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: ok: reconcile secret/cert-injection-webhook-tls (v1) namespace: build-service
2:38:42PM: ok: reconcile validatingwebhookconfiguration/validation.webhook.kpack.io (admissionregistration.k8s.io/v1beta1) cluster
2:38:42PM: ok: reconcile secret/webhook-certs (v1) namespace: kpack
2:38:42PM: ok: reconcile customresourcedefinition/builds.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: ok: reconcile customresourcedefinition/builders.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: ok: reconcile configmap/stackify-image (v1) namespace: stacks-operator-system
2:38:42PM: ok: reconcile customresourcedefinition/customstacks.stacks.stacks-operator.tanzu.vmware.com (apiextensions.k8s.io/v1beta1) cluster
2:38:42PM: ok: reconcile serviceaccount/canonical-registry-serviceaccount (v1) namespace: kpack
2:38:42PM: ok: reconcile configmap/rebase-image (v1) namespace: kpack
2:38:42PM: ok: reconcile configmap/completion-image (v1) namespace: kpack
2:38:42PM: ok: reconcile customresourcedefinition/clusterbuilders.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: ok: reconcile mutatingwebhookconfiguration/defaults.webhook.cert-injection.tanzu.vmware.com (admissionregistration.k8s.io/v1beta1) cluster
2:38:42PM: ok: reconcile configmap/build-init-image (v1) namespace: kpack
2:38:42PM: ok: reconcile configmap/build-init-windows-image (v1) namespace: kpack
2:38:42PM: ok: reconcile customresourcedefinition/clusterstores.kpack.io (apiextensions.k8s.io/v1) cluster
2:38:42PM: ---- applying 6 changes [21/27 done] ----
2:38:42PM: update daemonset/build-pod-image-fetcher (apps/v1) namespace: build-service
2:38:42PM: update deployment/kpack-controller (apps/v1) namespace: kpack
2:38:43PM: update deployment/warmer-controller (apps/v1) namespace: build-service
2:38:43PM: update deployment/controller-manager (apps/v1) namespace: stacks-operator-system
2:38:43PM: update deployment/secret-syncer-controller (apps/v1) namespace: build-service
2:38:43PM: update deployment/kpack-webhook (apps/v1) namespace: kpack
2:38:43PM: ---- waiting on 6 changes [21/27 done] ----
2:38:43PM: ongoing: reconcile deployment/warmer-controller (apps/v1) namespace: build-service
2:38:43PM: ^ Waiting for 1 unavailable replicas
2:38:43PM: L ok: waiting on replicaset/warmer-controller-9b5cbb6f6 (apps/v1) namespace: build-service
2:38:43PM: L ok: waiting on replicaset/warmer-controller-67696b9d6c (apps/v1) namespace: build-service
2:38:43PM: L ongoing: waiting on pod/warmer-controller-9b5cbb6f6-xm6pm (v1) namespace: build-service
2:38:43PM: ^ Pending: ContainerCreating
2:38:43PM: L ok: waiting on pod/warmer-controller-67696b9d6c-f4psz (v1) namespace: build-service
2:38:43PM: ok: reconcile daemonset/build-pod-image-fetcher (apps/v1) namespace: build-service
2:38:43PM: ongoing: reconcile deployment/kpack-controller (apps/v1) namespace: kpack
2:38:43PM: ^ Waiting for 1 unavailable replicas
2:38:43PM: L ok: waiting on replicaset/kpack-controller-6cccff9ddb (apps/v1) namespace: kpack
2:38:43PM: L ok: waiting on replicaset/kpack-controller-5c88bc87bc (apps/v1) namespace: kpack
2:38:43PM: L ongoing: waiting on pod/kpack-controller-6cccff9ddb-xdxlf (v1) namespace: kpack
2:38:43PM: ^ Pending: ContainerCreating
2:38:43PM: L ok: waiting on pod/kpack-controller-5c88bc87bc-6qhgh (v1) namespace: kpack
2:38:43PM: ongoing: reconcile deployment/kpack-webhook (apps/v1) namespace: kpack
2:38:43PM: ^ Waiting for generation 4 to be observed
2:38:43PM: L ok: waiting on replicaset/kpack-webhook-76955f5675 (apps/v1) namespace: kpack
2:38:43PM: L ok: waiting on replicaset/kpack-webhook-665498689d (apps/v1) namespace: kpack
2:38:43PM: L ok: waiting on pod/kpack-webhook-76955f5675-4cxqk (v1) namespace: kpack
2:38:43PM: L ongoing: waiting on pod/kpack-webhook-665498689d-44tln (v1) namespace: kpack
2:38:43PM: ^ Pending: ContainerCreating
2:38:43PM: ongoing: reconcile deployment/controller-manager (apps/v1) namespace: stacks-operator-system
2:38:43PM: ^ Waiting for 1 unavailable replicas
2:38:43PM: L ok: waiting on replicaset/controller-manager-7d6db5dff9 (apps/v1) namespace: stacks-operator-system
2:38:43PM: L ok: waiting on replicaset/controller-manager-6c5b8646d4 (apps/v1) namespace: stacks-operator-system
2:38:43PM: L ongoing: waiting on pod/controller-manager-7d6db5dff9-t9z79 (v1) namespace: stacks-operator-system
2:38:43PM: ^ Pending: ContainerCreating
2:38:43PM: L ok: waiting on pod/controller-manager-6c5b8646d4-wtqk5 (v1) namespace: stacks-operator-system
2:38:43PM: ongoing: reconcile deployment/secret-syncer-controller (apps/v1) namespace: build-service
2:38:43PM: ^ Waiting for 1 unavailable replicas
2:38:43PM: L ok: waiting on replicaset/secret-syncer-controller-5bbdfbc694 (apps/v1) namespace: build-service
2:38:43PM: L ok: waiting on replicaset/secret-syncer-controller-58f8d9cf6 (apps/v1) namespace: build-service
2:38:43PM: L ok: waiting on pod/secret-syncer-controller-5bbdfbc694-hlcdq (v1) namespace: build-service
2:38:43PM: L ongoing: waiting on pod/secret-syncer-controller-58f8d9cf6-ffq9q (v1) namespace: build-service
2:38:43PM: ^ Pending: ContainerCreating
2:38:43PM: ---- waiting on 5 changes [22/27 done] ----
2:38:43PM: ongoing: reconcile deployment/kpack-webhook (apps/v1) namespace: kpack
2:38:43PM: ^ Waiting for 1 unavailable replicas
2:38:43PM: L ok: waiting on replicaset/kpack-webhook-76955f5675 (apps/v1) namespace: kpack
2:38:43PM: L ok: waiting on replicaset/kpack-webhook-665498689d (apps/v1) namespace: kpack
2:38:43PM: L ok: waiting on pod/kpack-webhook-76955f5675-4cxqk (v1) namespace: kpack
2:38:43PM: L ongoing: waiting on pod/kpack-webhook-665498689d-44tln (v1) namespace: kpack
2:38:43PM: ^ Pending: ContainerCreating
2:38:47PM: ok: reconcile deployment/secret-syncer-controller (apps/v1) namespace: build-service
2:38:47PM: ok: reconcile deployment/warmer-controller (apps/v1) namespace: build-service
2:38:47PM: ---- waiting on 3 changes [24/27 done] ----
2:38:49PM: ok: reconcile deployment/kpack-webhook (apps/v1) namespace: kpack
2:38:49PM: ---- waiting on 2 changes [25/27 done] ----
2:38:50PM: ok: reconcile deployment/kpack-controller (apps/v1) namespace: kpack
2:38:50PM: ---- waiting on 1 changes [26/27 done] ----
2:38:52PM: ok: reconcile deployment/controller-manager (apps/v1) namespace: stacks-operator-system
2:38:52PM: ---- applying complete [27/27 done] ----
2:38:52PM: ---- waiting complete [27/27 done] ----
Succeeded
cert-injection-webhook
Pod 以外は新しいPod が起動しているようです。
$ kubectl get ns
NAME STATUS AGE
build-service Active 2d9h
default Active 3d9h
demo Active 2d9h
kpack Active 2d9h
kube-node-lease Active 3d9h
kube-public Active 3d9h
kube-system Active 3d9h
metallb-system Active 3d8h
stacks-operator-system Active 2d9h
tkg-system-public Active 3d9h
$ kubectl get pod -n build-service
NAME READY STATUS RESTARTS AGE
build-pod-image-fetcher-nvm9s 5/5 Running 0 94s
cert-injection-webhook-5f6d8bf4bf-nmgq4 1/1 Running 0 2d9h
secret-syncer-controller-58f8d9cf6-ffq9q 1/1 Running 0 96s
smart-warmer-image-fetcher-sndg8 4/4 Running 0 68s
warmer-controller-9b5cbb6f6-xm6pm 1/1 Running 0 96s
$ kubectl get pod -n kpack
NAME READY STATUS RESTARTS AGE
kpack-controller-6cccff9ddb-xdxlf 1/1 Running 0 41s
kpack-webhook-665498689d-44tln 1/1 Running 0 41s
$ kubectl get pod -n stacks-operator-system
NAME READY STATUS RESTARTS AGE
controller-manager-7d6db5dff9-t9z79 1/1 Running 0 48s
TBS で利用しているClusterBuilder のアップグレード
こちらもインストール時同様の手順で実施します。こちらのドキュメント「Tanzu Build Service - Updating Build Service Dependencies」を参考にします。
事前に
ClusterBuilder
, ClusterStack
, ClusterStore
の状況を確認しておきます。アップデート前ClusterBuilder
$ kp clusterbuilder list
NAME READY STACK IMAGE
base true io.buildpacks.stacks.bionic harbor2.<MYDOMAIN>/tanzu/tbs/base@sha256:c827a4cdcfd8307e22784fe8a7722612d43ccad280d50eae496b6746246af1fe
default true io.buildpacks.stacks.bionic harbor2.<MYDOMAIN>/tanzu/tbs/default@sha256:c827a4cdcfd8307e22784fe8a7722612d43ccad280d50eae496b6746246af1fe
full true io.buildpacks.stacks.bionic harbor2.<MYDOMAIN>/tanzu/tbs/full@sha256:34c6705531afe19a130224a89e55f29b046341f82a417e12f8b2b9c8496047bb
tiny true io.paketo.stacks.tiny harbor2.<MYDOMAIN>/tanzu/tbs/tiny@sha256:732dba6d162ae1d7d5aa713599b475f7cfbd05fd0907b9477a33410f41046f36
$ kp clusterbuilder status default
Status: Ready
Image: harbor2.<MYDOMAIN>/tanzu/tbs/default@sha256:c827a4cdcfd8307e22784fe8a7722612d43ccad280d50eae496b6746246af1fe
Stack: io.buildpacks.stacks.bionic
Run Image: harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:4944b79a3c228cb08ed29f4addb4382c26b3b49c9abdcb66a183a0b7851f7e39
BUILDPACK ID VERSION HOMEPAGE
paketo-buildpacks/graalvm 4.0.0 https://github.com/paketo-buildpacks/graalvm
paketo-buildpacks/bellsoft-liberica 6.0.0 https://github.com/paketo-buildpacks/bellsoft-liberica
tanzu-buildpacks/go-dist 0.1.3
tanzu-buildpacks/php-dist 0.0.44
tanzu-buildpacks/dotnet-core-sdk 0.0.22
tanzu-buildpacks/node-engine 0.1.1
tanzu-buildpacks/node-engine 0.1.2
tanzu-buildpacks/apache-skywalking 2.4.1 https://github.com/pivotal-cf/tanzu-apache-skywalking
tanzu-buildpacks/dotnet-core-runtime 0.0.30
tanzu-buildpacks/jprofiler 2.2.1 https://github.com/pivotal-cf/tanzu-jprofiler
paketo-buildpacks/gradle 3.5.0 https://github.com/paketo-buildpacks/gradle
tanzu-buildpacks/appdynamics 2.11.0 https://github.com/pivotal-cf/tanzu-appdynamics
tanzu-buildpacks/dotnet-core-aspnet 0.0.24
tanzu-buildpacks/new-relic 2.9.0 https://github.com/pivotal-cf/tanzu-new-relic
tanzu-buildpacks/overops 2.7.0 https://github.com/pivotal-cf/tanzu-overops
paketo-buildpacks/apache-tomcat 3.2.0 https://github.com/paketo-buildpacks/apache-tomcat
tanzu-buildpacks/icu 0.0.9
tanzu-buildpacks/jrebel 2.6.0 https://github.com/pivotal-cf/tanzu-jrebel
paketo-buildpacks/sbt 3.6.0 https://github.com/paketo-buildpacks/sbt
paketo-buildpacks/azure-application-insights 3.0.0 https://github.com/paketo-buildpacks/azure-application-insights
tanzu-buildpacks/httpd 0.0.40
tanzu-buildpacks/httpd 0.0.39
tanzu-buildpacks/contrast-security 2.8.0 https://github.com/pivotal-cf/tanzu-contrast-security
tanzu-buildpacks/nginx 0.0.46
tanzu-buildpacks/nginx 0.0.48
paketo-buildpacks/maven 3.2.1 https://github.com/paketo-buildpacks/maven
tanzu-buildpacks/elastic-apm 2.7.0 https://github.com/pivotal-cf/tanzu-elastic-apm
tanzu-buildpacks/php-web 0.0.25
paketo-buildpacks/google-stackdriver 2.14.0 https://github.com/paketo-buildpacks/google-stackdriver
tanzu-buildpacks/dep 0.0.10
tanzu-buildpacks/yourkit 2.7.0 https://github.com/pivotal-cf/tanzu-yourkit
tanzu-buildpacks/php-composer 0.0.31
tanzu-buildpacks/yarn 0.0.2
tanzu-buildpacks/dynatrace 2.1.3 https://github.com/pivotal-cf/tanzu-dynatrace
tanzu-buildpacks/jacoco 2.3.1 https://github.com/pivotal-cf/tanzu-jacoco
paketo-buildpacks/spring-boot 3.5.0 https://github.com/paketo-buildpacks/spring-boot
tanzu-buildpacks/yarn-install 0.1.2
tanzu-buildpacks/synopsys 2.2.1 https://github.com/pivotal-cf/tanzu-synopsys
tanzu-buildpacks/checkmarx 2.1.3 https://github.com/pivotal-cf/tanzu-checkmarx
paketo-buildpacks/ca-certificates 1.0.1 https://github.com/paketo-buildpacks/ca-certificates
paketo-buildpacks/encrypt-at-rest 2.2.3 https://github.com/paketo-buildpacks/encrypt-at-rest
paketo-buildpacks/debug 2.1.4 https://github.com/paketo-buildpacks/debug
paketo-buildpacks/jmx 2.1.4 https://github.com/paketo-buildpacks/jmx
paketo-buildpacks/leiningen 1.2.1 https://github.com/paketo-buildpacks/leiningen
tanzu-buildpacks/snyk 2.1.2 https://github.com/pivotal-cf/tanzu-snyk
paketo-buildpacks/spring-boot-native-image 2.0.0 https://github.com/paketo-buildpacks/spring-boot-native-image
paketo-buildpacks/executable-jar 3.1.3 https://github.com/paketo-buildpacks/executable-jar
tanzu-buildpacks/dotnet-publish 0.0.13
tanzu-buildpacks/go-build 0.0.23
paketo-buildpacks/environment-variables 2.1.2 https://github.com/paketo-buildpacks/environment-variables
tanzu-buildpacks/aspectj 2.1.3 https://github.com/pivotal-cf/tanzu-aspectj
paketo-buildpacks/procfile 3.0.0 https://github.com/paketo-buildpacks/procfile
paketo-buildpacks/dist-zip 2.2.2 https://github.com/paketo-buildpacks/dist-zip
paketo-buildpacks/image-labels 2.0.6 https://github.com/paketo-buildpacks/image-labels
tanzu-buildpacks/dotnet-execute 0.0.28
tanzu-buildpacks/npm-install 0.1.1
tanzu-buildpacks/dep-ensure 0.0.29
tanzu-buildpacks/yarn-start 0.0.4
tanzu-buildpacks/npm-start 0.0.2
tanzu-buildpacks/go-mod-vendor 0.0.26
tanzu-buildpacks/node-start 0.0.3
tanzu-buildpacks/java 4.1.0 https://github.com/pivotal-cf/tanzu-java
tanzu-buildpacks/java-native-image 3.10.0 https://github.com/pivotal-cf/tanzu-java-native-image
tanzu-buildpacks/dotnet-core 0.0.7
tanzu-buildpacks/nodejs 1.2.3
tanzu-buildpacks/php 0.0.5
tanzu-buildpacks/go 1.0.9
DETECTION ORDER
Group #1
tanzu-buildpacks/dotnet-core@0.0.7
Group #2
tanzu-buildpacks/nodejs@1.2.3
Group #3
tanzu-buildpacks/go@1.0.9
Group #4
tanzu-buildpacks/php@0.0.5
Group #5
tanzu-buildpacks/nginx@0.0.48
Group #6
tanzu-buildpacks/httpd@0.0.40
Group #7
tanzu-buildpacks/java-native-image@3.10.0
Group #8
tanzu-buildpacks/java@4.1.0
Group #9
paketo-buildpacks/procfile@3.0.0
アップデート前ClusterStack
$ kp clusterstack list
NAME READY ID
base True io.buildpacks.stacks.bionic
default True io.buildpacks.stacks.bionic
full True io.buildpacks.stacks.bionic
tiny True io.paketo.stacks.tiny
$ kp clusterstack status base
Status: Ready
Id: io.buildpacks.stacks.bionic
Run Image: harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:4944b79a3c228cb08ed29f4addb4382c26b3b49c9abdcb66a183a0b7851f7e39
Build Image: harbor2.<MYDOMAIN>/tanzu/tbs/build@sha256:a6b7409c156a2b52f843f749fed91a07c569b663a526906c2dfee89859d31164
$ kp clusterstack status default
Status: Ready
Id: io.buildpacks.stacks.bionic
Run Image: harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:4944b79a3c228cb08ed29f4addb4382c26b3b49c9abdcb66a183a0b7851f7e39
Build Image: harbor2.<MYDOMAIN>/tanzu/tbs/build@sha256:a6b7409c156a2b52f843f749fed91a07c569b663a526906c2dfee89859d31164
$ kp clusterstack status full
Status: Ready
Id: io.buildpacks.stacks.bionic
Run Image: harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:ec9ef0c4230f337b400574db726ed13c0d5407d87978d2bd14a27d9725cac16b
Build Image: harbor2.<MYDOMAIN>/tanzu/tbs/build@sha256:c3136dec66307645a3f0809cb732bee4fcd72fe1ba65c555367b054eaf14c602
$ kp clusterstack status tiny
Status: Ready
Id: io.paketo.stacks.tiny
Run Image: harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:4b3b0cbe8b9bd6e68f6f8c681eae7189e99323540ff152e10fb38e4875280900
Build Image: harbor2.<MYDOMAIN>/tanzu/tbs/build@sha256:64d500ca33238ffedafdb4e990522b23639c7088721c6975bd632fc16a1f2319
アップデート前ClusterStore
$ kp clusterstore list
NAME READY
default True
$ kp clusterstore status default
Status: Ready
BUILDPACKAGE ID VERSION HOMEPAGE
paketo-buildpacks/procfile 2.0.2 https://github.com/paketo-buildpacks/procfile
paketo-buildpacks/procfile 3.0.0 https://github.com/paketo-buildpacks/procfile
tanzu-buildpacks/dotnet-core 0.0.7
tanzu-buildpacks/go 1.0.9
tanzu-buildpacks/httpd 0.0.40
tanzu-buildpacks/java 4.1.0 https://github.com/pivotal-cf/tanzu-java
tanzu-buildpacks/java-native-image 3.10.0 https://github.com/pivotal-cf/tanzu-java-native-image
tanzu-buildpacks/nginx 0.0.48
tanzu-buildpacks/nodejs 1.2.3
tanzu-buildpacks/php 0.0.5
インストール時と同様、
kp import
コマンドを使って、ClusterBuilder
をアップデートしていきます。自分の環境では、ClusterBuilder
のアップデートは問題無く完了しましたが、ClusterStore
アップデートに伴うコンテナイメージの自動ビルドが上手くいっていなかったので、実際にアップデートする際は諸々確認の上、実施するようにして下さい。$ kp import -f descriptor-100.0.80.yaml
Importing ClusterStore 'default'...
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/tanzu-buildpacks_go@sha256:64ba98089642bdb1ae22fde9b12fb905e0034a2e99c4564249bbc5190dcef8f9'
Buildpackage already exists in the store
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/tanzu-buildpacks_java@sha256:1b8dcd7fddbb9cc797c549183d5505e92f5b4888fb223776d4730c0070f2c30e'
Added Buildpackage
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/tanzu-buildpacks_nodejs@sha256:5050ac76d043395422e4ae3cab74d5bb31dc4e9f66414d0be3c4ebb7d1276312'
Added Buildpackage
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/tanzu-buildpacks_java-native-image@sha256:662b27ae983ff6b0aed6eca1e5ba7e25cab178204a628ca0542cfe23c25826bf'
Added Buildpackage
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/tanzu-buildpacks_dotnet-core@sha256:9ecfbe3c3565f6bc15d5aa116615cf33195a5d27133438d285f9d812f5c72664'
Added Buildpackage
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/tanzu-buildpacks_php@sha256:fd5abb334f4adbcf46f42977992af145db04fb262d4c516ff4264f94e1fcd689'
Buildpackage already exists in the store
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/tanzu-buildpacks_nginx@sha256:e67d5cd2e5240a9eb7a899b9b5d979ad85d0cf6c8182e15424516dac9f577371'
Buildpackage already exists in the store
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/tanzu-buildpacks_httpd@sha256:34989fb8e264ccaea7916a9017b306d621b017920f71439fc515164ac0484cf5'
Buildpackage already exists in the store
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/paketo-buildpacks_procfile@sha256:bf6a4265db23ae25b34d402cd24e04c36dccdf24d6a6b9297f1d154a9d0b8062'
Buildpackage already exists in the store
Importing ClusterStack 'tiny'...
Uploading to 'harbor2.<MYDOMAIN>/tanzu/tbs'...
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/build@sha256:555abb70443fc67c71578f3185d36a1a7ba418e6c1bbc2c5a458c1c603b13ac0'
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:30e7b4b0e1de31e763c7b631161a508c0ef710ea44924f65177afad2644312b9'
Importing ClusterStack 'base'...
Uploading to 'harbor2.<MYDOMAIN>/tanzu/tbs'...
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/build@sha256:c484ec9919b724ee93bde4431fa79996e42c0bd1d5b69b78450e403451aaa615'
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:367a43536f60c21190cea5c06d040d01d29f4102840d6b3e1dcd72ed2eb71721'
Importing ClusterStack 'full'...
Uploading to 'harbor2.<MYDOMAIN>/tanzu/tbs'...
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/build@sha256:0ce25f3610ea9c8556b50a6f8db33760e02d330af599d01586d8ba3e50810292'
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:70eba09341a0a48abb08b72539a5dc3a0ce988295e281f8aead85ec83c45cfe2'
Importing ClusterStack 'default'...
Uploading to 'harbor2.<MYDOMAIN>/tanzu/tbs'...
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/build@sha256:c484ec9919b724ee93bde4431fa79996e42c0bd1d5b69b78450e403451aaa615'
Uploading 'harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:367a43536f60c21190cea5c06d040d01d29f4102840d6b3e1dcd72ed2eb71721'
Importing ClusterBuilder 'base'...
Importing ClusterBuilder 'full'...
Importing ClusterBuilder 'tiny'...
Importing ClusterBuilder 'default'...
Imported resources
確認
アップデートされた
ClusterBuilder
, ClusterStack
, ClusterStore
を確認してみます。アップデート後ClusterBuilder
$ kp clusterbuilder list
NAME READY STACK IMAGE
base true io.buildpacks.stacks.bionic harbor2.<MYDOMAIN>/tanzu/tbs/base@sha256:2b5aa86addaadc6cb6dc9d51542b5abd78db534fe28f3bf9d3bee6653aa59a02
default true io.buildpacks.stacks.bionic harbor2.<MYDOMAIN>/tanzu/tbs/default@sha256:2b5aa86addaadc6cb6dc9d51542b5abd78db534fe28f3bf9d3bee6653aa59a02
full true io.buildpacks.stacks.bionic harbor2.<MYDOMAIN>/tanzu/tbs/full@sha256:7a2d1e9d1338c4ab6c1a322b3d99ee8fb5a6d5cca3c2f18c1895d8fe7f6b1188
tiny true io.paketo.stacks.tiny harbor2.<MYDOMAIN>/tanzu/tbs/tiny@sha256:7d3a943647c59da414d1baa1e7b2015465e0ce5c32f6e5a8bef43875124e3c49
$ kp clusterbuilder status default
Status: Ready
Image: harbor2.<MYDOMAIN>/tanzu/tbs/default@sha256:2b5aa86addaadc6cb6dc9d51542b5abd78db534fe28f3bf9d3bee6653aa59a02
Stack: io.buildpacks.stacks.bionic
Run Image: harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:367a43536f60c21190cea5c06d040d01d29f4102840d6b3e1dcd72ed2eb71721
BUILDPACK ID VERSION HOMEPAGE
paketo-buildpacks/graalvm 6.0.0 https://github.com/paketo-buildpacks/graalvm
paketo-buildpacks/bellsoft-liberica 7.0.1 https://github.com/paketo-buildpacks/bellsoft-liberica
tanzu-buildpacks/go-dist 0.1.3
tanzu-buildpacks/php-dist 0.0.44
tanzu-buildpacks/dotnet-core-sdk 0.1.0
tanzu-buildpacks/node-engine 0.1.3
tanzu-buildpacks/node-engine 0.1.5
tanzu-buildpacks/apache-skywalking 3.1.0 https://github.com/pivotal-cf/tanzu-apache-skywalking
tanzu-buildpacks/dotnet-core-runtime 0.1.2
tanzu-buildpacks/jprofiler 3.0.0 https://github.com/pivotal-cf/tanzu-jprofiler
paketo-buildpacks/gradle 5.0.0 https://github.com/paketo-buildpacks/gradle
tanzu-buildpacks/appdynamics 3.1.0 https://github.com/pivotal-cf/tanzu-appdynamics
tanzu-buildpacks/dotnet-core-aspnet 0.1.0
tanzu-buildpacks/new-relic 3.3.0 https://github.com/pivotal-cf/tanzu-new-relic
tanzu-buildpacks/overops 3.3.0 https://github.com/pivotal-cf/tanzu-overops
paketo-buildpacks/apache-tomcat 5.1.0 https://github.com/paketo-buildpacks/apache-tomcat
tanzu-buildpacks/icu 0.0.9
tanzu-buildpacks/jrebel 3.2.0 https://github.com/pivotal-cf/tanzu-jrebel
paketo-buildpacks/sbt 5.0.0 https://github.com/paketo-buildpacks/sbt
paketo-buildpacks/azure-application-insights 4.2.0 https://github.com/paketo-buildpacks/azure-application-insights
tanzu-buildpacks/httpd 0.0.40
tanzu-buildpacks/httpd 0.0.39
tanzu-buildpacks/contrast-security 3.3.0 https://github.com/pivotal-cf/tanzu-contrast-security
tanzu-buildpacks/nginx 0.0.46
tanzu-buildpacks/nginx 0.0.48
paketo-buildpacks/maven 5.0.0 https://github.com/paketo-buildpacks/maven
tanzu-buildpacks/elastic-apm 3.3.0 https://github.com/pivotal-cf/tanzu-elastic-apm
paketo-buildpacks/google-stackdriver 3.4.0 https://github.com/paketo-buildpacks/google-stackdriver
tanzu-buildpacks/php-web 0.0.25
tanzu-buildpacks/dep 0.0.10
tanzu-buildpacks/yourkit 3.1.0 https://github.com/pivotal-cf/tanzu-yourkit
tanzu-buildpacks/php-composer 0.0.31
tanzu-buildpacks/yarn 0.0.3
tanzu-buildpacks/dynatrace 3.0.0 https://github.com/pivotal-cf/tanzu-dynatrace
tanzu-buildpacks/yarn-install 0.1.3
tanzu-buildpacks/dotnet-publish 0.1.0
tanzu-buildpacks/dotnet-execute 0.1.0
tanzu-buildpacks/jacoco 3.0.0 https://github.com/pivotal-cf/tanzu-jacoco
paketo-buildpacks/spring-boot 4.1.0 https://github.com/paketo-buildpacks/spring-boot
tanzu-buildpacks/npm-install 0.1.3
tanzu-buildpacks/synopsys 3.0.0 https://github.com/pivotal-cf/tanzu-synopsys
tanzu-buildpacks/checkmarx 3.0.0 https://github.com/pivotal-cf/tanzu-checkmarx
paketo-buildpacks/ca-certificates 2.1.0 https://github.com/paketo-buildpacks/ca-certificates
paketo-buildpacks/encrypt-at-rest 3.0.0 https://github.com/paketo-buildpacks/encrypt-at-rest
paketo-buildpacks/debug 3.0.0 https://github.com/paketo-buildpacks/debug
paketo-buildpacks/leiningen 3.0.0 https://github.com/paketo-buildpacks/leiningen
paketo-buildpacks/jmx 3.0.0 https://github.com/paketo-buildpacks/jmx
tanzu-buildpacks/snyk 3.0.0 https://github.com/pivotal-cf/tanzu-snyk
paketo-buildpacks/native-image 4.0.0 https://github.com/paketo-buildpacks/native-image
paketo-buildpacks/executable-jar 5.0.0 https://github.com/paketo-buildpacks/executable-jar
tanzu-buildpacks/go-build 0.0.23
paketo-buildpacks/environment-variables 3.0.0 https://github.com/paketo-buildpacks/environment-variables
tanzu-buildpacks/aspectj 3.0.0 https://github.com/pivotal-cf/tanzu-aspectj
paketo-buildpacks/procfile 4.0.0 https://github.com/paketo-buildpacks/procfile
paketo-buildpacks/image-labels 3.0.0 https://github.com/paketo-buildpacks/image-labels
paketo-buildpacks/dist-zip 4.0.0 https://github.com/paketo-buildpacks/dist-zip
tanzu-buildpacks/dep-ensure 0.0.29
tanzu-buildpacks/node-start 0.0.4
tanzu-buildpacks/yarn-start 0.0.4
tanzu-buildpacks/npm-start 0.0.2
tanzu-buildpacks/go-mod-vendor 0.0.26
tanzu-buildpacks/java 5.3.0 https://github.com/pivotal-cf/tanzu-java
tanzu-buildpacks/java-native-image 4.1.0 https://github.com/pivotal-cf/tanzu-java-native-image
tanzu-buildpacks/dotnet-core 1.0.1
tanzu-buildpacks/nodejs 1.3.0
tanzu-buildpacks/php 0.0.5
tanzu-buildpacks/go 1.0.9
DETECTION ORDER
Group #1
tanzu-buildpacks/dotnet-core@1.0.1
Group #2
tanzu-buildpacks/nodejs@1.3.0
Group #3
tanzu-buildpacks/go@1.0.9
Group #4
tanzu-buildpacks/php@0.0.5
Group #5
tanzu-buildpacks/nginx@0.0.48
Group #6
tanzu-buildpacks/httpd@0.0.40
Group #7
tanzu-buildpacks/java-native-image@4.1.0
Group #8
tanzu-buildpacks/java@5.3.0
Group #9
paketo-buildpacks/procfile@4.0.0
アップデート後ClusterStack
$ kp clusterstack list
NAME READY ID
base True io.buildpacks.stacks.bionic
default True io.buildpacks.stacks.bionic
full True io.buildpacks.stacks.bionic
tiny True io.paketo.stacks.tiny
$ kp clusterstack status base
Status: Ready
Id: io.buildpacks.stacks.bionic
Run Image: harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:367a43536f60c21190cea5c06d040d01d29f4102840d6b3e1dcd72ed2eb71721
Build Image: harbor2.<MYDOMAIN>/tanzu/tbs/build@sha256:c484ec9919b724ee93bde4431fa79996e42c0bd1d5b69b78450e403451aaa615
$ kp clusterstack status default
Status: Ready
Id: io.buildpacks.stacks.bionic
Run Image: harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:367a43536f60c21190cea5c06d040d01d29f4102840d6b3e1dcd72ed2eb71721
Build Image: harbor2.<MYDOMAIN>/tanzu/tbs/build@sha256:c484ec9919b724ee93bde4431fa79996e42c0bd1d5b69b78450e403451aaa615
$ kp clusterstack status full
Status: Ready
Id: io.buildpacks.stacks.bionic
Run Image: harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:70eba09341a0a48abb08b72539a5dc3a0ce988295e281f8aead85ec83c45cfe2
Build Image: harbor2.<MYDOMAIN>/tanzu/tbs/build@sha256:0ce25f3610ea9c8556b50a6f8db33760e02d330af599d01586d8ba3e50810292
$ kp clusterstack status tiny
Status: Ready
Id: io.paketo.stacks.tiny
Run Image: harbor2.<MYDOMAIN>/tanzu/tbs/run@sha256:30e7b4b0e1de31e763c7b631161a508c0ef710ea44924f65177afad2644312b9
Build Image: harbor2.<MYDOMAIN>/tanzu/tbs/build@sha256:555abb70443fc67c71578f3185d36a1a7ba418e6c1bbc2c5a458c1c603b13ac0
アップデート後ClusterStore
$ kp clusterstore list
NAME READY
default True
$ kp clusterstore status default
Status: Ready
BUILDPACKAGE ID VERSION HOMEPAGE
paketo-buildpacks/procfile 2.0.2 https://github.com/paketo-buildpacks/procfile
paketo-buildpacks/procfile 3.0.0 https://github.com/paketo-buildpacks/procfile
tanzu-buildpacks/dotnet-core 1.0.1
tanzu-buildpacks/dotnet-core 0.0.7
tanzu-buildpacks/go 1.0.9
tanzu-buildpacks/httpd 0.0.40
tanzu-buildpacks/java 4.1.0 https://github.com/pivotal-cf/tanzu-java
tanzu-buildpacks/java 5.3.0 https://github.com/pivotal-cf/tanzu-java
tanzu-buildpacks/java-native-image 3.10.0 https://github.com/pivotal-cf/tanzu-java-native-image
tanzu-buildpacks/java-native-image 4.1.0 https://github.com/pivotal-cf/tanzu-java-native-image
tanzu-buildpacks/nginx 0.0.48
tanzu-buildpacks/nodejs 1.2.3
tanzu-buildpacks/nodejs 1.3.0
tanzu-buildpacks/php 0.0.5
まとめ
TBS、ClusterBuilder のアップデート手順としては特に複雑な部分は無く、実施出来ました。