diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index b344148..7306885 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -21,6 +21,14 @@ spec: runAsNonRoot: true seccompProfile: type: RuntimeDefault + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app.kubernetes.io/name: kangalpatch + app.kubernetes.io/component: manager + topologyKey: kubernetes.io/hostname containers: - name: manager image: ghcr.io/uozalp/kangal-patch:0.1.1 diff --git a/helm/kangal-patch/values.yaml b/helm/kangal-patch/values.yaml index 12a41c6..0e70c34 100644 --- a/helm/kangal-patch/values.yaml +++ b/helm/kangal-patch/values.yaml @@ -46,7 +46,14 @@ nodeSelector: {} tolerations: [] -affinity: {} +affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app.kubernetes.io/name: kangalpatch + app.kubernetes.io/component: manager + topologyKey: kubernetes.io/hostname # Controller manager settings controllerManager: