admin管理员组文章数量:1125578
I want to install the Redis Helm chart by Bitnami, configuring an additional annotation for the statefulset
resource as detailed in this page of Helm doc.
cat myconfig.yml
[...]
sentinel:
enabled: true
master:
podAnnotations:
checksum/config: '{{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}'
[...]
The problem is when I install the chart, dry-run at the moment, the annotation is missing:
helm install redis-sentinel bitnami/redis -f myconfig.yml --dry-run=server >> dry-run.yml
cat dry-run.yml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: redis-sentinel
spec:
replicas: 3
serviceName: redis-sentinel
updateStrategy:
type: RollingUpdate
template:
metadata:
annotations:
checksum/configmap: 99
checksum/health: 88
checksum/scripts: 77
checksum/secret: 66
What I was expecting is
spec:
template:
metadata:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/configmap: foo
checksum/health: goo
[...]
本文标签: helmfileBitnami Helm Redis ignores podAnnotations in configuration fileStack Overflow
版权声明:本文标题:helmfile - Bitnami Helm Redis ignores podAnnotations in configuration file - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736641275a1945998.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论