I have one question regarding helmfile. The question is: how to set annotations to deployment using helmfile? I've tried by using set instruction but It's not working. Also didn't find any information in docs.
Asked
Active
Viewed 1,200 times
1
-
Is there a particular chart you're trying to install using Helmfile? It's hard to directly inject content into the generated YAML files; it mostly depends on being able to provide appropriate values to the chart you're installing, and the chart knowing how to produce the annotations. – David Maze Aug 06 '21 at 11:33
2 Answers
1
Checked very similar stack question How do I assign value to variable in helmfile??
you can do like this
set:
- name: "ingress.annotations.kubernetes\\.io/ingress\\.class"
value: "nginx"
...
or like that
annotations:
kubernetes.io/ingress.class: "nginx"
kubernetes.io/tls-acme: "true"

Vit
- 7,740
- 15
- 40
0
If you set annotation from helm cli, you can make it like this example:
helm install stable/nginx-ingress --set controller.service.annotations."cloud\.google\.com\/load-balancer\-type"=Internal

Enrique Tejeda
- 356
- 1
- 6