How to add additional capabilities in Bamboo DC, and remote agent deployed in Kubernetes platform using Helm chart
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
要約
When installing Bamboo DC in the Kubernetes platform using Helm chart, some required executables are not installed by default. For example, the installation does not include the Kubernetes API client needed to communicate with the cluster. Also, you may want to add some executables to your clustered agents for Builds, etc. The purpose of this document is to provide an essential guide on how to add the required executables using the initContainer
in Bamboo DC and Remote agent Helm chart.
環境
Bamboo DC
ソリューション
Define additional volumes for application to all Bamboo pods.
additional volume configurationvolumes: additional: - name: executable-mount
The above will not create the volume, so you must add it as a property to make the mount point.
additionalVolumeMountsadditionalVolumeMounts: - name: executable-mount mountPath: /mnt/lib
Define an additional init container that will be added to all Bamboo pods. Write the executables to the mount point created above; this also applies to other required executables for your build. In this example of an AWS EKS cluster,
kubectl
executable is added to the user binary directory of Bamboo or the agent pod.additionalInitContainers: - name: eksctl-home-container image: ubuntu volumeMounts: - name: executable-mount mountPath: /mnt/lib command: ["/bin/bash"] args: ["-c","set -e; apt update; apt upgrade -y; \ apt install curl tar wget -y; curl -LO https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl; \ mv kubectl /mnt/lib; chmod +x /mnt/lib/kubectl; ln -s /mnt/lib/kubectl /usr/local/bin/kubectl"]
Install the chart if its a new setup OR Upgrade chart if its an already running instance to reflect the changes;
helm install bamboo atlassian-data-center/bamboo --version 1.19.0 --values values.yml OR helm upgrade bamboo atlassian-data-center/bamboo --values values.yml