Reworked pasarguard nodes daemonset.
This commit is contained in:
@@ -91,7 +91,13 @@ spec:
|
|||||||
app: pasarguard-node-ingress
|
app: pasarguard-node-ingress
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: pasarguard-node-ingress
|
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:
|
initContainers:
|
||||||
- name: label-pod
|
- name: label-pod
|
||||||
image: bitnami/kubectl:latest
|
image: bitnami/kubectl:latest
|
||||||
@@ -115,14 +121,6 @@ spec:
|
|||||||
# Add node label to pod
|
# Add node label to pod
|
||||||
NODE_SHORT=$(echo ${NODE_NAME} | cut -d. -f1)
|
NODE_SHORT=$(echo ${NODE_NAME} | cut -d. -f1)
|
||||||
kubectl label pod ${POD_NAME} -n ${POD_NAMESPACE} node-name=${NODE_SHORT} --overwrite
|
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
|
- name: init-uuid
|
||||||
image: bitnami/kubectl:latest
|
image: bitnami/kubectl:latest
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user