1. 在线方式安装 CRDs
使用如下命令直接从官方仓库安装 CRDs:
kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/v1.15.5/charts/dapr/crds/components.yaml
kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/v1.15.5/charts/dapr/crds/configuration.yaml
kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/v1.15.5/charts/dapr/crds/subscription.yaml
kubectl apply -f https://raw.githubusercontent.com/dapr/dapr/v1.15.5/charts/dapr/crds/resiliency.yaml
kubectl apply -f https://raw.githubusercontent.com/dapr/dapr/v1.15.5/charts/dapr/crds/httpendpoints.yaml
2. 离线方式安装 CRDs
如无法访问外网,可先下载 CRD 文件到本地,再执行:
kubectl replace -f ./components.yaml
kubectl replace -f ./configuration.yaml
kubectl replace -f ./subscription.yaml
kubectl apply -f ./resiliency.yaml
kubectl apply -f ./httpendpoints.yaml
下载地址:https://pan.quark.cn/s/8cb2c31d8a99
3. 添加 Dapr Helm 仓库(如有需要)
注意:
如果 repo 不存在,请先添加 Dapr Helm 仓库:
helm repo add dapr https://dapr.github.io/helm-charts/
然后更新仓库:
helm repo update
4. 升级 Dapr
标准升级命令如下:
helm upgrade dapr dapr/dapr --version 1.15.5 --namespace dapr-system --wait
如需自定义参数,请参考如下命令:
helm upgrade dapr dapr/dapr \
--version 1.15.5 \
--namespace dapr-system \
--set global.ha.enabled=true \
--set global.registry=docker.io/daprio \
--wait \
--debug \
--set dapr_scheduler.cluster.storageSize=16Gi \
--set dapr_scheduler.etcdSpaceQuota=16Gi
5. 参数说明
领取专属 10元无门槛券
私享最新 技术干货