helm相关

部署

https://helm.sh/zh/docs/helm/helm_install/

helm install polaris-controller .

更新

helm upgrade -i polaris-controller .

查看部署列表

helm list

卸载

helm uninstall polaris-controller

分析

https://helm.sh/zh/docs/helm/helm_status/

helm status polaris-controller --show-desc --show-resources

调试

验证语法

helm lint

生成yaml

helm install --generate-name --dry-run --debug . > dry-run-debug.tmp.yaml
  • 在本地测试渲染chart模板
helm template --debug . > template-debug.tmp.yaml
  • 清理yaml
rm *.tmp.yaml

create namespace踩坑记录

helm3 创建命名空间的方式需要在命令中显式声明,在templates文件夹中创建命名空间会报错

Error: INSTALLATION FAILED: Unable to continue with install: Namespace "test" in namespace "" exists and cannot be imported into the current release
  • 解决方案:创建命名空间的方式需要在命令中显式声明,templates文件夹中去掉命名空间创建相关内容
helm install --create-namespace --namespace {k8s_namespace_name} --generate-name

这样就不会报错了

Ref

https://helm.sh/zh/docs/helm/helm/

posted @   惜阳茕影  阅读(12)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
点击右上角即可分享
微信分享提示