<p>The grafana helm chart spawns a service on a Classic Load Balancer. I have the AWS load balancer webhook installed, and I'd like to overwrite the annotations on the Grafana service. I'm attempting the following:</p>
<pre><code>helm install grafana grafana/grafana \
--namespace grafana \
--set persistence.storageClassName=&quot;gp2&quot; \
--set persistence.enabled=true \
--set adminPassword='abc' \
--values grafana.yaml \
--set service.type=LoadBalancer \
--set nodeSelector.app=prometheus \
--set nodeSelector.k8s-app=metrics-server \
--set service.annotations.&quot;service\.beta.kubernetes\.io/aws-load-balancer-nlb-target-type&quot;=ip \
--set service.annotations.&quot;service\.beta.kubernetes\.io/aws-load-balancer-type&quot;=external
</code></pre>
<p>but, after trying multiple permutations, I continue to get:</p>
<pre><code>Error: INSTALLATION FAILED: YAML parse error on grafana/templates/service.yaml: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal object into Go struct field .metadata.annotations of type string
</code></pre>
<p>What is the correct way of doing this?</p>

<p>there is an issue in the annotation, you are missing  escape character for <code>beta\.kubernetes</code></p>
<p>try this and it should work.</p>
<pre><code>--set service.annotations.&quot;service\.beta\.kubernetes\.io/aws-load-balancer-nlb-target-type&quot;=ip \
--set service.annotations.&quot;service\.beta\.kubernetes\.io/aws-load-balancer-type&quot;=external
</code></pre>
