Skip to content

Commit e0c72db

Browse files
committed
Pritesh feedback
1 parent 405000e commit e0c72db

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

src/current/v26.1/cockroachdb-operator-performance.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -277,26 +277,26 @@ cockroachdb:
277277
podTemplate:
278278
spec:
279279
affinity:
280-
podAntiAffinity:
281-
preferredDuringSchedulingIgnoredDuringExecution:
282-
- weight: 100
283-
podAffinityTerm:
284-
labelSelector:
285-
matchExpressions:
286-
- key: app
287-
operator: In
288-
values:
289-
- loadgen
290-
topologyKey: kubernetes.io/hostname
291-
- weight: 99
292-
podAffinityTerm:
293-
labelSelector:
294-
matchExpressions:
295-
- key: app
296-
operator: In
297-
values:
298-
- cockroachdb
299-
topologyKey: kubernetes.io/hostname
280+
podAntiAffinity:
281+
preferredDuringSchedulingIgnoredDuringExecution:
282+
- weight: 100
283+
podAffinityTerm:
284+
labelSelector:
285+
matchExpressions:
286+
- key: app
287+
operator: In
288+
values:
289+
- loadgen
290+
topologyKey: kubernetes.io/hostname
291+
- weight: 99
292+
podAffinityTerm:
293+
labelSelector:
294+
matchExpressions:
295+
- key: app
296+
operator: In
297+
values:
298+
- cockroachdb
299+
topologyKey: kubernetes.io/hostname
300300
~~~
301301

302302
The preceding configuration will first prefer to put the `loadgen` pods on different nodes from each other, which is important for the fault tolerance of the `loadgen` pods themselves. As a secondary priority, it will attempt to put the pods on nodes that do not already have a running `CockroachDB` pod. This will ensure the best possible balance of fault tolerance and performance for the load generator and CockroachDB cluster.

src/current/v26.1/schedule-cockroachdb-operator.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,17 +365,17 @@ For more context on how these rules work, see the [Kubernetes documentation](htt
365365

366366
To assist in working with your cluster, you can add labels and annotations to your resources.
367367

368-
Specify labels in `cockroachdb.crdbCluster.podTemplate.spec.podLabels` and annotations in `cockroachdb.crdbCluster.podTemplate.spec.podAnnotations` in the values file used to [deploy the cluster]({% link {{ page.version.version }}/deploy-cockroachdb-with-cockroachdb-operator.md %}#initialize-the-cluster):
368+
Specify labels in `cockroachdb.crdbCluster.podTemplate.metadata.labels` and annotations in `cockroachdb.crdbCluster.podTemplate.metadata.annotations` in the values file used to [deploy the cluster]({% link {{ page.version.version }}/deploy-cockroachdb-with-cockroachdb-operator.md %}#initialize-the-cluster):
369369

370370
~~~ yaml
371371
cockroachdb:
372372
crdbCluster:
373373
podTemplate:
374-
spec:
375-
podLabels:
376-
app.kubernetes.io/version: v25.1.4
377-
podAnnotations
378-
operator: https://raw.githubusercontent.com/cockroachdb/helm-charts/refs/heads/master/cockroachdb-parent/charts/cockroachdb/values.yaml
374+
metadata:
375+
labels:
376+
app.kubernetes.io/name: "cockroachdb"
377+
annotations
378+
kubernetes.io/description: "This is a CockroachDB pod."
379379
~~~
380380

381381
To verify that the labels and annotations were applied to a pod, for example, run `kubectl describe pod {pod-name}`.

0 commit comments

Comments
 (0)