概要
- k8sテスト環境構築
Helm インストール
構築目次
環境
- Rancher: v2.6.3
- kubernetes(Client): v1.22.4
- kubernetes(Server): v1.22.4
- Helm: v3.7.2
インストール
- Helm Quickstart Page
https://helm.sh/docs/intro/quickstart/
Helm ダウンロード
- 作業場所: ClientPC
- Helm Release Page
https://github.com/helm/helm/releases
$ wget https://get.helm.sh/helm-v3.7.2-linux-amd64.tar.gz
$ tar xvf helm-v3.7.2-linux-amd64.tar.gz
$ sudo mv linux-amd64/helm /usr/local/bin/
$ helm version --short
v3.7.2+g663a896
Repoの追加とアップデート
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm repo update
$ helm search repo
NAME CHART VERSION APP VERSION DESCRIPTION
stable/acs-engine-autoscaler 2.2.2 2.1.1 DEPRECATED Scales worker nodes within agent pools
stable/aerospike 0.3.5 v4.5.0.5 DEPRECATED A Helm chart for Aerospike in Kubern...
...............
動作確認
- Helm Commands
https://helm.sh/docs/helm/
### mysqlインストール
$ helm install bitnami/mysql --generate-name
NAME: mysql-1640762552
LAST DEPLOYED: Wed Dec 29 16:22:36 2021
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: mysql
CHART VERSION: 8.8.18
APP VERSION: 8.0.27
** Please be patient while the chart is being deployed **
..........
..........
..........
### 確認
$ helm list -n default
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
mysql-1640762552 default 1 2021-12-29 16:22:36.264348607 +0900 JST deployed mysql-8.8.18 8.0.27
### 削除
helm uninstall mysql-1640762552 -n default