fix(scheduling): pin portainer+forgejo-runner to az-a, add nodeSelector to runner chart template — WFFC alone insufficient with single Longhorn node (cp-1 only)
This commit is contained in:
@@ -51,3 +51,8 @@ tolerations:
|
|||||||
- key: node-role.kubernetes.io/control-plane
|
- key: node-role.kubernetes.io/control-plane
|
||||||
operator: Exists
|
operator: Exists
|
||||||
effect: NoSchedule
|
effect: NoSchedule
|
||||||
|
|
||||||
|
# Pin to az-a (talos-cp-1) — sole Longhorn storage node. Its RWO PVC can only
|
||||||
|
# attach there; without this the pod may land on cp-2/cp-3 and fail to mount.
|
||||||
|
nodeSelector:
|
||||||
|
topology.kubernetes.io/zone: az-a
|
||||||
|
|||||||
@@ -19,6 +19,10 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml .Values.tolerations | nindent 8 }}
|
{{- toYaml .Values.tolerations | nindent 8 }}
|
||||||
|
{{- with .Values.nodeSelector }}
|
||||||
|
nodeSelector:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: register
|
- name: register
|
||||||
|
|||||||
@@ -40,3 +40,8 @@ tolerations:
|
|||||||
- key: node-role.kubernetes.io/control-plane
|
- key: node-role.kubernetes.io/control-plane
|
||||||
operator: Exists
|
operator: Exists
|
||||||
effect: NoSchedule
|
effect: NoSchedule
|
||||||
|
|
||||||
|
# Pin to az-a (talos-cp-1) — sole Longhorn node; RWO PVCs (reg/dind cache) only
|
||||||
|
# attach there.
|
||||||
|
nodeSelector:
|
||||||
|
topology.kubernetes.io/zone: az-a
|
||||||
|
|||||||
Reference in New Issue
Block a user