From 4241c81fc00907ef9b84f260f5cb1df416a33d02 Mon Sep 17 00:00:00 2001 From: Ultradesu Date: Mon, 8 Dec 2025 18:30:34 +0200 Subject: [PATCH] Reworked pasarguard nodes daemonset. --- .../pasarguard/configmap-scripts-ingress.yaml | 9 +++--- k8s/apps/pasarguard/daemonset-ingress.yaml | 29 ++++++++++++++++++- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/k8s/apps/pasarguard/configmap-scripts-ingress.yaml b/k8s/apps/pasarguard/configmap-scripts-ingress.yaml index c581bb9..306b936 100644 --- a/k8s/apps/pasarguard/configmap-scripts-ingress.yaml +++ b/k8s/apps/pasarguard/configmap-scripts-ingress.yaml @@ -13,11 +13,11 @@ data: # NODE_NAME is already set via environment variable NAMESPACE=$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace) - # Get DNS name from node label xray-node-address - DNS_NAME=$(kubectl get node "${NODE_NAME}" -o jsonpath='{.metadata.labels.xray-node-address}') + # Get DNS name from node label xray-public-address + DNS_NAME=$(kubectl get node "${NODE_NAME}" -o jsonpath='{.metadata.labels.xray-public-address}') if [ -z "${DNS_NAME}" ]; then - echo "ERROR: Node ${NODE_NAME} does not have label 'xray-node-address'" + echo "ERROR: Node ${NODE_NAME} does not have label 'xray-public-address'" exit 1 fi @@ -112,7 +112,7 @@ data: echo "Creating Service: ${SERVICE_NAME} for node ${NODE_NAME} (short: ${NODE_SHORT_NAME})" - # Create Service with pod selector + # Create Service with pod selector including node name cat <