1
0

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 1 year has passed since last update.

IKS で構成したデリバリー・パイプライン プライベート・ワーカーの更新

Last updated at Posted at 2022-09-28

はじめに

IKS で構成した デリバリー・パイプライン プライベート・ワーカーで 更新の警告表示が出ていたので更新手順を確認しました。

参考:Delivery Pipeline プライベート・ワーカーの更新


環境

・IKS (IBM Cloud Kubernetes Service) で、デリバリー・パイプライン・プライベートワーカーを構成

構成作業は以下で実施。


作業

図1.png

上記はOutdated 状態のため、更新は推奨で必須ではありませんが確認のため実施しています。

IBMCloud へCLIでログイン、対象のIKSのコンテキストを設定し、コマンドを実行します。

$ kubectl apply --filename "https://private-worker-service.eu-de.devops.cloud.ibm.com/update"
clusterrolebinding.rbac.authorization.k8s.io/pw-agent-update-role created
serviceaccount/pw-agent-update-role created
job.batch/agent-updater-1664265494626 created
$

数分後、プライベート・ワーカーにも反映されていました。

図2.png

以下のコマンドでも pipeline-private-worker のバージョンが確認できます。
(作業前には実施していないので事前ログ無しです)

$ kubectl -n tekton-pipelines describe deploy private-worker-agent
Name:                   private-worker-agent
Namespace:              tekton-pipelines
CreationTimestamp:      Tue, 27 Sep 2022 17:00:11 +0900
Labels:                 app=private-worker-agent
Annotations:            deployment.kubernetes.io/revision: 1
Selector:               app=private-worker-agent
Replicas:               1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  25% max unavailable, 25% max surge
Pod Template:
  Labels:           app=private-worker-agent
                    name=private-worker-agent
  Service Account:  private-worker-agent
  Containers:
   manager:
    Image:      icr.io/continuous-delivery/pipeline/pipeline-private-worker:0.14.3
    Port:       <none>
    Host Port:  <none>
    Command:
      /manager
    Environment:
      POD_NAME:              (v1:metadata.name)
      POD_SERVICE_ACCOUNT:  private-worker-agent
      POD_NAMESPACE:         (v1:metadata.namespace)
      AUTO_UPDATE:          disabled
      CLEANER_IMAGE:        icr.io/continuous-delivery/pipeline/tekton/ubi:1.12.0
      DAEMONSET_IMAGE:      icr.io/continuous-delivery/pipeline/pipeline-private-worker-util:2.12.0
    Mounts:                 <none>
  Volumes:                  <none>
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Available      True    MinimumReplicasAvailable
  Progressing    True    NewReplicaSetAvailable
OldReplicaSets:  <none>
NewReplicaSet:   private-worker-agent-866c56f587 (1/1 replicas created)
Events:          <none>
$

どのくらいの期間で非サポートになるのかは気になりますね..。

以上です。

1
0
1

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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?