1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| varBaseChartDir='~/workspaces/develop/charts'
varChartName='demo'
mkdir -p ${varBaseChartDir}
cd ${varBaseChartDir}
helm create ${varChartName}
tree ${varChartName}
rm -rf ${varChartName}/templates/*
# 渲染成yaml
helm template --debug ${varChartName}
# 检查语法
helm lint --strict ${varChartName}
# 打包
helm package ${varChartName}
# 测试安装
helm upgrade --install --dry-run --debug \
--namespace chart-test \
--create-namespace \
${varChartName} ./${varChartName}
# 查看安装参数
helm get values <release-name> [flags]
|