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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM