1.常用helm3的数学计算函数
(1).add函数、sub函数、mul函数、div、mod、add1函数
(2).max函数、min函数、round函数、len函数、floor函数、ceil函数
2.常用helm3的数学计算函数使用的演示
1).环境准备 k8s集群
# kubectl get node
NAME STATUS ROLES AGE VERSION
k8s-m1 Ready master 70d v1.19.16
k8s-m2 Ready master 70d v1.19.16
k8s-m3 Ready master 70d v1.19.16
2).创建一个chart包 (用helm3发布创建一个configmap,创建的k8s集群中,发布其他资源也一样)
# helm create mychart #创建一个chart包,chart包名为: mychart
# cd mychart/
# ls
charts Chart.yaml templates values.yaml
# cd templates/
# ls
deployment.yaml _helpers.tpl hpa.yaml ingress.yaml NOTES.txt