mirror of
https://github.com/outbackdingo/proxmox-cloud-controller-manager.git
synced 2026-01-27 10:20:13 +00:00
chore: replace nodeSelector with nodeAffinity in chart + manifests
Some K8s distributions might label control-plane nodes with ``` node-role.kubernetes.io/control-plane: "true" ``` rather than ``` node-role.kubernetes.io/control-plane: "" ``` which makes the default `nodeSelector` fail. Replacing it with a `affinity.nodeAffinity` nodeSelector fixes it.
This commit is contained in:
@@ -15,7 +15,7 @@ maintainers:
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.8
|
version: 0.1.9
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
|||||||
@@ -35,8 +35,13 @@ enabledControllers:
|
|||||||
- cloud-node-lifecycle
|
- cloud-node-lifecycle
|
||||||
|
|
||||||
# Deploy CCM only on control-plane nodes
|
# Deploy CCM only on control-plane nodes
|
||||||
nodeSelector:
|
affinity:
|
||||||
node-role.kubernetes.io/control-plane: ""
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
operator: Exists
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: node-role.kubernetes.io/control-plane
|
- key: node-role.kubernetes.io/control-plane
|
||||||
effect: NoSchedule
|
effect: NoSchedule
|
||||||
|
|||||||
@@ -33,8 +33,13 @@ enabledControllers:
|
|||||||
- cloud-node-lifecycle
|
- cloud-node-lifecycle
|
||||||
|
|
||||||
# Deploy CCM only on control-plane nodes
|
# Deploy CCM only on control-plane nodes
|
||||||
nodeSelector:
|
affinity:
|
||||||
node-role.kubernetes.io/control-plane: ""
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
operator: Exists
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: node-role.kubernetes.io/control-plane
|
- key: node-role.kubernetes.io/control-plane
|
||||||
effect: NoSchedule
|
effect: NoSchedule
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/sergelogvinov/proxmox-cloud-controller-manager
|
repository: ghcr.io/sergelogvinov/proxmox-cloud-controller-manager
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
tag: edge
|
tag: edge
|
||||||
|
|
||||||
nodeSelector:
|
affinity:
|
||||||
node-role.kubernetes.io/control-plane: ""
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
operator: Exists
|
||||||
|
|
||||||
logVerbosityLevel: 4
|
logVerbosityLevel: 4
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,14 @@
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
tag: edge
|
tag: edge
|
||||||
|
|
||||||
nodeSelector:
|
affinity:
|
||||||
node-role.kubernetes.io/control-plane: ""
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
operator: Exists
|
||||||
|
|
||||||
logVerbosityLevel: 4
|
logVerbosityLevel: 4
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
|
affinity:
|
||||||
nodeSelector:
|
nodeAffinity:
|
||||||
node-role.kubernetes.io/control-plane: ""
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
operator: Exists
|
||||||
|
|
||||||
logVerbosityLevel: 4
|
logVerbosityLevel: 4
|
||||||
|
|
||||||
|
|||||||
@@ -123,6 +123,12 @@ tolerations:
|
|||||||
# -- Affinity for data pods assignment.
|
# -- Affinity for data pods assignment.
|
||||||
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
# nodeAffinity:
|
||||||
|
# requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
# nodeSelectorTerms:
|
||||||
|
# - matchExpressions:
|
||||||
|
# - key: node-role.kubernetes.io/control-plane
|
||||||
|
# operator: Exists
|
||||||
|
|
||||||
# -- Additional volumes for Pods
|
# -- Additional volumes for Pods
|
||||||
extraVolumes: []
|
extraVolumes: []
|
||||||
|
|||||||
@@ -172,8 +172,13 @@ spec:
|
|||||||
- name: cloud-config
|
- name: cloud-config
|
||||||
mountPath: /etc/proxmox
|
mountPath: /etc/proxmox
|
||||||
readOnly: true
|
readOnly: true
|
||||||
nodeSelector:
|
affinity:
|
||||||
node-role.kubernetes.io/control-plane: ""
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
operator: Exists
|
||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
key: node-role.kubernetes.io/control-plane
|
key: node-role.kubernetes.io/control-plane
|
||||||
|
|||||||
@@ -172,8 +172,13 @@ spec:
|
|||||||
- name: cloud-config
|
- name: cloud-config
|
||||||
mountPath: /etc/proxmox
|
mountPath: /etc/proxmox
|
||||||
readOnly: true
|
readOnly: true
|
||||||
nodeSelector:
|
affinity:
|
||||||
node-role.kubernetes.io/control-plane: ""
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
operator: Exists
|
||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
key: node-role.kubernetes.io/control-plane
|
key: node-role.kubernetes.io/control-plane
|
||||||
|
|||||||
Reference in New Issue
Block a user