add nodeAffinity rules
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2025-09-08 20:04:24 +05:30
parent c17a09e105
commit 1cdf209085

View File

@@ -17,14 +17,17 @@ spec:
spec: spec:
hostNetwork: true hostNetwork: true
affinity: affinity:
nodeAntiAffinity: nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms: nodeSelectorTerms:
- matchExpressions: - matchExpressions:
- key: kubernetes.io/hostname - key: kubernetes.io/hostname
operator: In operator: In
values: values:
- kube-01 - kube-02
- kube-03
- kube-04
- kube-05
containers: containers:
- name: pihole - name: pihole
image: pihole/pihole@sha256:90a1412b3d3037d1c22131402bde19180d898255b584d685c84d943cf9c14821 image: pihole/pihole@sha256:90a1412b3d3037d1c22131402bde19180d898255b584d685c84d943cf9c14821