更新日志:
- 2023.10.31 1055 初始化
HELM
Helm是一个用于k8s的包管理器,使用helm之后就不需要了解k8s的yaml语法并编写应用部署文件,可以通过helm下载并在k8s上安装需要的应用。
Helm还提供了k8s的软件部署,删除,升级,回滚应用的强大功能。
列表
列举安装的应用
helm list
卸载
卸载已安装的包
helm uninstall -n <namespace> RELEASE_NAME [...] [flags]
示例:卸载安装在TRS空间的mariadb包
root@master /k8s [1]# helm list -A
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
ingress-nginx ingress-nginx 1 2023-08-19 13:57:08.208634825 +0800 CST deployed ingress-nginx-4.7.1 1.8.1
mariadb trs 4 2023-09-26 16:26:25.30996393 +0800 CST deployed mariadb-13.0.2 11.0.2
metallb metallb 1 2023-08-19 14:24:37.262083111 +0800 CST deployed metallb-4.6.4 0.13.10
mysql trs 9 2023-09-26 16:20:44.276640223 +0800 CST failed mysql-9.10.10 8.0.34
nfs default 1 2023-08-13 14:23:36.334033351 +0800 CST deployed nfs-subdir-external-provisioner-4.0.18 4.0.2
nginx trs 1 2023-09-26 16:00:16.428456552 +0800 CST deployed nginx-15.1.2 1.25.1
rabbitmq trs 1 2023-08-23 14:50:30.285538015 +0800 CST deployed rabbitmq-12.0.10 3.12.2
redis trs 5 2023-09-26 16:03:31.154321306 +0800 CST deployed redis-17.15.2 7.0.12
root@master /k8s# helm uninstall -n trs mariadb
release "mariadb" uninstalled
标签:运维,0800,2023,helm,CST,trs,K8s,快速,deployed
From: https://www.cnblogs.com/F0rbbIden/p/17799789.html