Helm3---(一)
###
kubectl create deployment nginx --image=nginx:1.16.1 --dry-run -o yaml >deploy.yml
###
kubectl expose deployment nginx --port=80 --target-port=80 --dry-run -o yaml >nginx-svc.yaml
###
删除安装的 Release
helm uninstall nginx
###
测试Chart文件
helm install webapp --dry-run nginx/
###
Values对象是为Chart模板提供值,这个对象的值有4个来源:
chart包中的values.yaml 文件,
父chart包中的values.yaml文件
也可以通过--set 传值给到Chart模板。
###
default 默认值
####
其他函数
缩进 {{ .Values.resources | indent 12 }}
大写: {{ upper.Values.resource }}
首字母大写: {{ title .Values.resources }}
####
流程控制
###
if 支持的运算符: ne , lt , gt , and , or
添加判断 - 表示不空行,
###
实用with 修改引用范围