我可以用这个helm命令安装bitnami/redis:
helm upgrade --install "my-release" bitnami/redis
--set auth.existingSecret=redis-key
--set metrics.enabled=true
--set metrics.podAnnotations.release=prom
--set master.podAnnotations."linkerd.io/inject"=enabled
--set replica.podAnnotations."linkerd.io/inject"=enabled
现在我想使用ArgoCD清单安装它。
project: default
source:
repoURL: 'https://charts.bitnami.com/bitnami'
targetRevision: 14.1.1
helm:
valueFiles:
- values.yaml
parameters:
- name: metrics.enabled
value: 'true'
- name: metrics.podAnnotations.release
value: 'prom'
- name: master.podAnnotations.linkerd.io/inject
value: enabled
- name: replica.podAnnotations.linkerd.io/inject
value: enabled
- name: auth.existingSecret
value: redis-key
chart: redis
destination:
server: 'https://kubernetes.default.svc'
namespace: default
syncPolicy: {}
但由于master.podAnnotations.linkerd.io/inject
和replica.podAnnotations.linkerd.io/inject
,我收到了验证错误
error validating data: ValidationError(StatefulSet.spec.template.metadata.annotations."linkerd): invalid type for io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta.annotations: got "map", expected "string"
error validating data: ValidationError(StatefulSet.spec.template.metadata.annotations."linkerd): invalid type for io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta.annotations: got "map", expected "string"
如果我删除这两个注释设置,就可以安装该应用程序。我试过master.podAnnotations."linkerd.io/inject"
,但它不起作用。我想这和"或"/&";。有人能帮我解决这个问题吗?
看看这个例子,包含点的参数需要转义。