使用helm部署应用
Helm 是一个 Kubernetes 的包管理工具,用于简化应用的部署和管理。下面是用helm在k8s上部署应用的一般流程。
- 添加helm仓库
# 添加仓库
root@master1:~# helm repo add aliyun https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
root@master1:~# helm repo add bitnami https://charts.bitnami.com/bitnami
# 更新
root@master1:~# helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "aliyun" chart repository
...Successfully got an update from the "harbor" chart repository
...Successfully got an update from the "gitlab-jh" chart repository
...
# 仓库列表
root@master1:~# helm repo list
NAME URL
ingress-nginx https://kubernetes.github.io/ingress-nginx
openebs https://openebs.github.io/openebs
harbor https://helm.goharbor.io
jenkins https://charts.jenkins.io
gitlab https://charts.gitlab.io/
gitlab-jh https://charts.gitlab.cn
bitnami https://charts.bitnami.com/b