openSUSE Leap 16

Kubernetes : Helm インストール2025/11/07

 

Helm をインストールすると、Kubernetes アプリケーションのイントール等々の管理が容易になります。

当例では以下のように 4 台のノードを使用して Kubernetes クラスターを構成しています。

+----------------------+   +----------------------+
|  [ ctrl.srv.world ]  |   |   [ dlp.srv.world ]  |
|     Manager Node     |   |     Control Plane    |
+-----------+----------+   +-----------+----------+
        eth0|10.0.0.25             eth0|10.0.0.30
            |                          |
------------+--------------------------+-----------
            |                          |
        eth0|10.0.0.51             eth0|10.0.0.52
+-----------+----------+   +-----------+----------+
| [ node01.srv.world ] |   | [ node02.srv.world ] |
|     Worker Node#1    |   |     Worker Node#2    |
+----------------------+   +----------------------+

[1] Helm をインストールします。
ctrl:~ #
zypper -n install git tar
ctrl:~ #
curl -O https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
ctrl:~ #
bash ./get-helm-3

Downloading https://get.helm.sh/helm-v3.19.0-linux-amd64.tar.gz
Verifying checksum... Done.
Preparing to install helm into /usr/local/bin
helm installed into /usr/local/bin/helm

ctrl:~ #
helm version

version.BuildInfo{Version:"v3.19.0", GitCommit:"3d8990f0836691f0229297773f3524598f46bda6", GitTreeState:"clean", GoVersion:"go1.24.7"}
[2] Helm の基本操作です。
# Helm Hub からキーワードが含まれるチャートを検索

suse@ctrl:~>
helm search hub wordpress

URL                                                     CHART VERSION   APP VERSION             DESCRIPTION                     
https://artifacthub.io/packages/helm/slybase-wo...      0.5.4           6.8.3                   Using the official WordPress image. This chart ...
https://artifacthub.io/packages/helm/wordpress-...      1.0.2           1.0.0                   A Helm chart for deploying Wordpress+Mariadb st...
https://artifacthub.io/packages/helm/kube-wordp...      0.1.0           1.1                     this is my wordpress package    
.....
.....

# リポジトリを追加 (下例は bitnami リポジトリ)

suse@ctrl:~>
helm repo add bitnami https://charts.bitnami.com/bitnami

"bitnami" has been added to your repositories
# リポジトリ一覧

suse@ctrl:~>
helm repo list

NAME    URL
bitnami https://charts.bitnami.com/bitnami

# リポジトリからキーワードが含まれるチャートを検索

suse@ctrl:~>
helm search repo bitnami

NAME                                            CHART VERSION   APP VERSION     DESCRIPTION                                     
bitnami/airflow                                 25.0.2          3.0.5           Apache Airflow is a tool to express and execute...
bitnami/apache                                  11.4.29         2.4.65          Apache HTTP Server is an open-source HTTP serve...
bitnami/apisix                                  6.0.0           3.13.0          Apache APISIX is high-performance, real-time AP...
bitnami/appsmith                                7.0.3           1.85.0          Appsmith is an open source platform for buildin...
bitnami/argo-cd                                 11.0.0          3.1.1           Argo CD is a continuous delivery tool for Kuber...
bitnami/argo-workflows                          13.0.6          3.7.1           Argo Workflows is meant to orchestrate Kubernet...
bitnami/aspnet-core                             8.1.3           9.0.10          ASP.NET Core is an open-source framework for we...
bitnami/cadvisor                                0.1.13          0.53.0          cAdvisor (Container Advisor) is an open-source ...
bitnami/cassandra                               12.3.11         5.0.5           Apache Cassandra is an open source distributed .
.....
.....

# チャートの情報を表示
# helm show [all|chart|readme|values] [チャート名]

suse@ctrl:~>
helm show chart bitnami/haproxy

annotations:
  fips: "true"
  images: |
    - name: haproxy
      version: 3.2.7
      image: registry-1.docker.io/bitnami/haproxy:latest
  licenses: Apache-2.0
  tanzuCategory: clusterUtility
apiVersion: v2
appVersion: 3.2.7
dependencies:
- name: common
  repository: oci://registry-1.docker.io/bitnamicharts
  tags:
  - bitnami-common
  version: 2.33.1
description: HAProxy is a TCP proxy and a HTTP reverse proxy. It supports SSL termination
  and offloading, TCP and HTTP normalization, traffic regulation, caching and protection
  against DDoS attacks.
home: https://bitnami.com
icon: https://dyltqmyl993wv.cloudfront.net/assets/stacks/haproxy/img/haproxy-stack-220x234.png
keywords:
- haproxy
- proxy
- infrastructure
maintainers:
- name: Broadcom, Inc. All Rights Reserved.
  url: https://github.com/bitnami/charts
name: haproxy
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/haproxy
version: 3.1.4

# チャートからアプリケーションをデプロイ
# helm install [任意の名称] [チャート名]

suse@ctrl:~>
helm install haproxy bitnami/haproxy

NAME: haproxy
LAST DEPLOYED: Fri Nov  7 09:28:13 2025
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: haproxy
CHART VERSION: 3.1.4
APP VERSION: 3.2.7

    WARNING: Since August 28th, 2025, only a limited subset of images/charts are available for free.
    Subscribe to Bitnami Secure Images to receive continued support and security updates.
    More info at https://bitnami.com and https://github.com/bitnami/containers/issues/83267

** Please be patient while the chart is being deployed **
1. HAproxy has been started. You can find out the port numbers being used by HAProxy by running:

    $ kubectl describe svc haproxy --namespace default
2. Get HAProxy's load balancer IP/hostname:

    NOTE: It may take a few minutes for this to become available.

    You can watch the status by running:

        $ kubectl get svc haproxy --namespace default -w

    Once 'EXTERNAL-IP' is no longer '<pending>':

        $ kubectl describe svc haproxy --namespace default | grep Ingress | awk '{print $3}'

3. Configure DNS records corresponding to Kubernetes ingress resources to point to the load balancer IP/hostname found in step 3
WARNING: Rolling tag detected (bitnami/haproxy:latest), please note that it is strongly recommended to avoid using rolling tags in a production environment.
+info https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-understand-rolling-tags-containers-index.html

WARNING: There are "resources" sections in the chart not set. Using "resourcesPreset" is not recommended for production. For production installations, please set the following values according to your workload needs:
  - resources
+info https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

# デプロイ済みアプリケーションの一覧

suse@ctrl:~>
helm list

NAME    NAMESPACE       REVISION        UPDATED                                 STATUS          CHART           APP VERSION
haproxy default         1               2025-11-07 09:28:13.50900761 +0900 JST  deployed        haproxy-3.1.4   3.2.7

# デプロイ済みアプリケーションのステータスを表示

suse@ctrl:~>
helm status haproxy

NAME: haproxy
LAST DEPLOYED: Fri Nov  7 09:28:13 2025
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: haproxy
CHART VERSION: 3.1.4
APP VERSION: 3.2.7
.....
.....

suse@ctrl:~>
kubectl get pods

NAME                      READY   STATUS    RESTARTS   AGE
haproxy-c5cb5744f-hbv8s   1/1     Running   0          108s

# デプロイ済みアプリケーションをアンインストール

suse@ctrl:~>
helm uninstall haproxy

release "haproxy" uninstalled
関連コンテンツ