Helm3的使用

常用命令:

# 生成chart文件
$helm create foo
Creating foo

# 打包
$helm package foo
Successfully packaged chart and saved it to: /home/test/helm/foo-0.1.0.tgz

# 安装
$helm install foo ./foo-0.1.0.tgz
NAME: foo
LAST DEPLOYED: Sat Dec  7 21:05:33 2019
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
1. Get the application URL by running these commands:
  export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=foo,app.kubernetes.io/instance=foo" -o jsonpath="{.items[0].metadata.name}")
  echo "Visit http://127.0.0.1:8080 to use your application"
  kubectl --namespace default port-forward $POD_NAME 8080:80

# 查询release
$helm ls
NAME    NAMESPACE    REVISION    UPDATED                                    STATUS      CHART        APP VERSION
foo     default      1           2019-12-07 21:05:33.355624435 +0800 CST    deployed    foo-0.1.0    1.16.0     

# 删除release
$helm delete foo
release "foo" uninstalled

 


repo相关操作:

# 添加仓库
$helm repo add {仓库名字} {仓库地址}
"{仓库名字}" has been added to your repositories

# 查询仓库列表
$helm repo list
NAME          URL                                                            
{仓库名字}    {仓库地址}

# 查询chart包
$helm search repo

# 删除仓库
$helm repo remove {仓库名字}
"{仓库名字}" has been removed from your repositories

 


————————————————
版权声明:本文为CSDN博主「zhizuqiu_」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/Hender_/java/article/details/103458478

posted @ 2020-04-26 15:43  学习者_3988  阅读(900)  评论(0编辑  收藏  举报