From 101d97eb512def9ba52c6fe2445352d817bf50e9 Mon Sep 17 00:00:00 2001 From: Ultradesu Date: Mon, 8 Dec 2025 18:31:46 +0200 Subject: [PATCH] Reworked pasarguard nodes daemonset. --- k8s/apps/pasarguard/daemonset-ingress.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/k8s/apps/pasarguard/daemonset-ingress.yaml b/k8s/apps/pasarguard/daemonset-ingress.yaml index e2682bc..2690f6d 100644 --- a/k8s/apps/pasarguard/daemonset-ingress.yaml +++ b/k8s/apps/pasarguard/daemonset-ingress.yaml @@ -91,7 +91,13 @@ spec: app: pasarguard-node-ingress spec: serviceAccountName: pasarguard-node-ingress - # Add node name as annotation for service selector creation + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: xray-public-address + operator: Exists initContainers: - name: label-pod image: bitnami/kubectl:latest @@ -115,14 +121,6 @@ spec: # Add node label to pod NODE_SHORT=$(echo ${NODE_NAME} | cut -d. -f1) kubectl label pod ${POD_NAME} -n ${POD_NAMESPACE} node-name=${NODE_SHORT} --overwrite - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: xray-public-address - operator: Exists - initContainers: - name: init-uuid image: bitnami/kubectl:latest env: