Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 1 addition & 31 deletions src/current/v25.2/override-templates-cockroachdb-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,37 +37,7 @@ cockroachdb:
# initContainers captures the list of init containers for CockroachDB pods.
initContainers:
- name : cockroachdb-init
image: us-docker.pkg.dev/cockroach-cloud-images/data-plane/init-container@sha256:c3e4ba851802a429c7f76c639a64b9152d206cebb31162c1760f05e98f7c4254
# containers captures the list of containers for CockroachDB pods.
containers:
- name: cockroachdb
image: cockroachdb/cockroach:v25.2.2
# imagePullSecrets captures the secrets for fetching images from private registries.
imagePullSecrets: []
~~~

At least one value for `containers` must be specified if any part of `podTemplate` is being modified. For example, the following `podTemplate` configuration overrides pod anti-affinity behavior and specifies a default `cockroachdb/cockroach:v25.2.2` container image:

~~~ yaml
cockroachdb:
crdbCluster:
podTemplate:
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: In
values:
- cockroachdb
topologyKey: kubernetes.io/hostname
containers:
- name: cockroachdb
image: cockroachdb/cockroach:v25.2.2
image: us-docker.pkg.dev/releases-prod/self-hosted/init-container@sha256:example1234567890abcdefghijklmnopqrstuvwxyz
~~~

## Override the default `cockroach start` flags
Expand Down
32 changes: 1 addition & 31 deletions src/current/v25.3/override-templates-cockroachdb-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,37 +37,7 @@ cockroachdb:
# initContainers captures the list of init containers for CockroachDB pods.
initContainers:
- name : cockroachdb-init
image: us-docker.pkg.dev/cockroach-cloud-images/data-plane/init-container@sha256:c3e4ba851802a429c7f76c639a64b9152d206cebb31162c1760f05e98f7c4254
# containers captures the list of containers for CockroachDB pods.
containers:
- name: cockroachdb
image: cockroachdb/cockroach:v25.3.2
# imagePullSecrets captures the secrets for fetching images from private registries.
imagePullSecrets: []
~~~

At least one value for `containers` must be specified if any part of `podTemplate` is being modified. For example, the following `podTemplate` configuration overrides pod anti-affinity behavior and specifies a default `cockroachdb/cockroach:v25.3.2` container image:

~~~ yaml
cockroachdb:
crdbCluster:
podTemplate:
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: In
values:
- cockroachdb
topologyKey: kubernetes.io/hostname
containers:
- name: cockroachdb
image: cockroachdb/cockroach:v25.3.2
image: us-docker.pkg.dev/releases-prod/self-hosted/init-container@sha256:example1234567890abcdefghijklmnopqrstuvwxyz
~~~

## Override the default `cockroach start` flags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cockroachdb:
# initContainers captures the list of init containers for CockroachDB pods.
initContainers:
- name : cockroachdb-init
image: us-docker.pkg.dev/cockroach-cloud-images/data-plane/init-container@sha256:example1234567890abcdefghijklmnopqrstuvwxyz
image: us-docker.pkg.dev/releases-prod/self-hosted/init-container@sha256:example1234567890abcdefghijklmnopqrstuvwxyz
~~~

## Override the default `cockroach start` flags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cockroachdb:
# initContainers captures the list of init containers for CockroachDB pods.
initContainers:
- name : cockroachdb-init
image: us-docker.pkg.dev/cockroach-cloud-images/data-plane/init-container@sha256:example1234567890abcdefghijklmnopqrstuvwxyz
image: us-docker.pkg.dev/releases-prod/self-hosted/init-container@sha256:example1234567890abcdefghijklmnopqrstuvwxyz
~~~

## Override the default `cockroach start` flags
Expand Down
Loading