不能登录k8s master节点如何安装dapr


通过heml安装,version指定版本

helm也是执行yaml文件,kubectl能连接到集群

heml文件结构

 

 

安装heml

wget https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz

tar -zxvf helm-v3.3.4-linux-amd64.tar.gz

mv linux-amd64/helm /usr/local/bin/helm

添加dapr库

helm repo add dapr https://dapr.github.io/helm-charts/

更新

helm repo update

安装

helm upgrade --install dapr dapr/dapr \
--version=1.5 \
--namespace dapr-system \
--create-namespace \
--wait

高可用方式安装

helm upgrade --install dapr dapr/dapr \
--version=1.5 \
--namespace dapr-system \
--create-namespace \
--set global.ha.enabled=true \
--wait

卸载

helm uninstall dapr --namespace dapr-system

参考链接
在Kubernetes集群上部署Dapr:https://docs.dapr.io/zh-hans/operations/hosting/kubernetes/kubernetes-deploy/
helm安装:https://www.cnblogs.com/bigberg/p/13925981.html

posted @ 2022-03-22 17:00  苏仙一  阅读(229)  评论(0)    收藏  举报