<p>I'm using Terraform for deploying <strong>cert-manager</strong> and <strong>ambassador</strong>.</p>
<p>Trying to understand how to use <strong>nodeSelector</strong> in terraform deployment and assign the helm chart I'm using for both services to a specific group node I have (using a label with key and value to assign)</p>
<pre><code>resource &quot;helm_release&quot; &quot;cert_manager&quot; {
  namespace        = var.cert_manager_namespace
  name             = &quot;cert-manager&quot;
  repository       = &quot;https://charts.jetstack.io&quot;
  chart            = &quot;cert-manager&quot;
  version          = var.cert_manager_release_version
  create_namespace = true
  count            = var.enable

set {
  name = &quot;controller.&quot;
}
set {
  name = &quot;controller.nodeselector&quot;
  value = &quot;&quot;
}
set {
  name  = &quot;installCRDs&quot; # Should only happen on the first attempt
  value = &quot;true&quot;
}

set {
  name  = &quot;securityContext.enabled&quot;
  value = &quot;true&quot;
}
</code></pre>
<p>Thie example above is me trying to assign it.
Any ideas?</p>
<p>Thanks!!</p>

n1vgabay
<p>If Your nodeSelector location in values.yaml looks like this:</p>
<pre><code>controller:
    nodeSelector: {}
</code></pre>
<p>You should be setting it up this way:</p>
<pre><code>set {
    name = &quot;controller.nodeSelector.dedicated&quot;
    value = &quot;workloads&quot;
}
</code></pre>
<p>Where <strong>dedicated</strong> is key and <strong>workloads</strong> is value.</p>
