azure-docs
azure-docs copied to clipboard
Node Affinity Yaml example giving error "expected 'array' while given 'string' for values"
The following section was giving error
affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: hardware operator: In values: highmem
worked when changed to
affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: hardware operator: In values: - highmem
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: dae17603-813b-f1ef-e161-c229d49a2541
- Version Independent ID: 5c1dcea0-0cda-0233-2356-be63be776809
- Content: Best practices for scheduler features - Azure Kubernetes Service
- Content Source: articles/aks/operator-best-practices-advanced-scheduler.md
- Service: container-service
- GitHub Login: @MGoedtel
- Microsoft Alias: magoedte
@contact2abhi Thanks for your feedback! We will investigate and update as appropriate.
@contact2abhi - Thanks for bringing this to our attention. Your correct that the two example YAML files in this section for setting up affinity were not formatted correctly by the original author. I'm going to create a bug for this now and see about fixing it before the day is out.
#please-close