add antiAffinity rules

This commit is contained in:
2025-09-08 19:53:30 +05:30
parent 7419df27f8
commit c17a09e105

View File

@@ -16,6 +16,15 @@ spec:
app: pihole
spec:
hostNetwork: true
affinity:
nodeAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- kube-01
containers:
- name: pihole
image: pihole/pihole@sha256:90a1412b3d3037d1c22131402bde19180d898255b584d685c84d943cf9c14821