Helm命令日常使用


# 先移除原先的倉庫
helm repo remove stable
# 添加新的倉庫地址
helm repo add stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
# 更新倉庫
helm repo update
  • 查看在存儲庫中可用的所有 Helm charts
helm search
  • 更新charts列表
helm repo update
  • 安裝charts
    Monocular是一個開源軟件,用於管理kubernetes上以Helm Charts形式創建的服務,可以通過它的web頁面來安裝helm Charts
# 安裝Nginx Ingress controller,安裝的k8s集群啟用了RBAC,則一定要加rbac.create=true參數
helm install stable/nginx-ingress --set controller.hostNetwork=true,rbac.create=true

# 安裝monocular
helm repo add monocular https://helm.github.io/monocular

helm install --name monocular --namesapce monocular monocular/monocular 


  • 查看K8S中已安裝的charts
helm list
  • 刪除已安裝的charts
helm delete kubeapps
# 上述雖然刪除了,但是還能夠使用這個命令查看到:helm ls --all
# 上述刪除,但是名稱還在,狀態是DELETED,若添加同名的release,則需要使用下面這個命令徹底刪除

# 刪除的話也能查看到詳情信息
helm status kubeapps

# 取消刪除發行版
helm rollback kubeapps


# 徹底刪除
helm delete --purge kubeapps


免責聲明!

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



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