Reworked pasarguard nodes daemonset.
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 10s
Check with kubeconform / lint (push) Successful in 1m44s
Auto-update README / Generate README and Create MR (push) Successful in 7s

This commit is contained in:
Ultradesu
2025-12-08 18:31:46 +02:00
parent 4241c81fc0
commit 101d97eb51

View File

@@ -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: