Skip to content

Commit fdb30b1

Browse files
authored
Document how to disable Pod antiaffinity rules (#1303)
1 parent 69d48e5 commit fdb30b1

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

modules/deploy/pages/deployment-option/self-hosted/kubernetes/k-production-deployment.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,19 @@ statefulset:
623623
topologyKey: "kubernetes.io/zone"
624624
----
625625

626+
To completely disable `podAntiAffinity` rules (for example, in development environments where you want to run multiple brokers on the same node), you can override the default configuration:
627+
628+
[source,yaml]
629+
----
630+
statefulset:
631+
podTemplate:
632+
spec:
633+
affinity:
634+
podAntiAffinity: null
635+
----
636+
637+
WARNING: Disabling `podAntiAffinity` rules is not recommended for production environments as it allows multiple brokers to be scheduled on the same node, increasing the risk of data loss if a node fails.
638+
626639
See also: xref:./k-high-availability.adoc[]
627640

628641
=== Graceful shutdown

modules/troubleshoot/partials/errors-and-solutions.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Error: UPGRADE FAILED: cannot patch "redpanda" with kind StatefulSet: StatefulSe
269269
----
270270

271271
To fix this error, include all the value overrides from the previous installation using either the `--set` or the `--values` flags.
272-
+
272+
273273
WARNING: Do not use the `--reuse-values` flag to upgrade from one version of the Helm chart to another. This flag stops Helm from using any new values in the upgraded chart.
274274

275275
=== Cannot patch "redpanda-console" with kind Deployment

0 commit comments

Comments
 (0)