Kubernetes包管理工具 - Helm
一、概述
二、基本用法
2.1 添加Helm源
添加阿里云镜像
$ helm repo add apphub https://apphub.aliyuncs.com/
$ helm repo update
helm repo的基本用法:
Usage:
helm repo [command]
Available Commands:
add add a chart repository
index generate an index file given a directory containing packaged charts
list list chart repositories
remove remove one or more chart repositories
update update information of available charts locally from chart repositories
2.2 搜索Chart
$ helm search repo nfs
NAME CHART VERSION APP VERSION DESCRIPTION
apphub/nfs-client-provisioner 1.2.8 3.1.0 nfs-client is an automatic provisioner that use...
apphub/nfs-server-provisioner 1.0.0 2.3.0 nfs-server-provisioner is an out-of-tree dynami...
2.3 查看Chart
helm show的基本用法:
Usage:
helm show [command]
Aliases:
show, inspect
Available Commands:
all show all information of the chart
chart show the chart's definition
readme show the chart's README
values show the chart's values
$ helm show chart apphub/nfs-client-provisioner
2.4 安装Chart
选择仓库里的Chart进行安装。
$ helm install nfs-storage apphub/nfs-client-provisioner \
--set nfs.server=192.168.88.100 \
--set nfs.path=/home/pengbotao/nfs \
--set nfs.sotrageClass.name=nfs-storage \
--set sotrageClass.defaultClass=true
-- EOF --
最后更新于:
2024-08-17 14:44
发表于:
2021-03-01 09:49
标签:
Kubernetes
容器化