Skip to content

Setting nodeSelector and tolerations values with setValues or setValueTemplates #9692

Open
@radnov

Description

@radnov

I'm trying to set nodeSelector and tolerations through the setValues and setValueTemplates configuration options, like this:

setValues:
  tolerations:
    - key: dedicated
      operator: Equal
      value: "true"
      effect: NoSchedule
  nodeSelector:
    dedicated: "true"

but when running skaffold deploy I get the following error:

Error: UPGRADE FAILED: failed to create resource: Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal bool into Go struct field PodSpec.spec.template.spec.nodeSelector of type string
deploying "web-client": install: exit status 1

I've also tried using setValueTemplates, but the result is the same.

Is it possible to configure a map based value like nodeSelector through setValues or setValueTemplates? It works fine if I use valuesFiles and a seaprate values file, but I'd like to avoid that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions