@@ -168,14 +168,6 @@ cockroachdb:
168168 clusterSettings : ~
169169 # timestamp captures the annotation timestamp used for rolling restarts.
170170 timestamp : " 2021-10-18T00:00:00Z"
171- # resources captures the resource requests and limits for CockroachDB pods.
172- resources : ~
173- # limits:
174- # cpu: 4000m
175- # memory: 16Gi
176- # requests:
177- # cpu: 4000m
178- # memory: 16Gi
179171 # dataStore captures the disk configuration for CockroachDB storage.
180172 dataStore :
181173 # volumeClaimTemplate captures the PVC template for storage.
@@ -282,16 +274,13 @@ cockroachdb:
282274 # storageClassName: ""
283275 #
284276 # path is the absolute mount path inside the CockroachDB container to use for WAL failover side disk.
285- # Examples:
277+ # Examples:
286278 # - /cockroach/cockroach-failover
287279 # - /cockroach/custom/path
288280 # IMPORTANT: Set it only for fresh deployments. Changing it on upgrades might cause issues with the deployment.
289281 #
290282 # path: "/cockroach/cockroach-failover"
291283 #
292- # podLabels captures additional labels to apply to CockroachDB pods.
293- podLabels :
294- app.kubernetes.io/component : cockroachdb
295284 # startFlags specify the flags that will be used for starting the cluster.
296285 # Any flag defined in here will take precedence over the first-class
297286 # fields responsible for setting the same flags.
@@ -303,25 +292,8 @@ cockroachdb:
303292 # # omit defines a set of flags which will be omitted from the start command.
304293 # omit:
305294 # - ""
306- # env captures environment variables set on CockroachDB pods.
307- env : []
308- # - name: APP_NAME
309- # value: "CRDB"
310- # - name: POD_NAME
311- # valueFrom:
312- # fieldRef:
313- # fieldPath: metadata.name
314295 # rollingRestartDelay specifies the delay between rolling restarts of CockroachDB pods.
315296 rollingRestartDelay : 30s
316- # topologySpreadConstraints captures pod topology spread constraints.
317- # It is recommended to spread CockroachDB pods across zones to ensure high availability.
318- topologySpreadConstraints :
319- # maxSkew defines the degree to which the pods can be unevenly distributed.
320- - maxSkew : 1
321- # topologyKey defines the key for topology spread.
322- topologyKey : topology.kubernetes.io/zone
323- # whenUnsatisfiable defines the behavior when constraints cannot be met.
324- whenUnsatisfiable : DoNotSchedule
325297 # service captures the Kubernetes Service configurations for CockroachDB pods.
326298 service :
327299 # ports captures the service port definitions.
@@ -368,43 +340,6 @@ cockroachdb:
368340 ingressClassName : " "
369341 annotations : {}
370342 host : " "
371- # podAnnotations captures annotations to apply to CockroachDB pods.
372- podAnnotations : {}
373- # terminationGracePeriod determines the time available to CockroachDB for graceful drain.
374- # It follows the metav1.Duration format, e.g., "300s", "5m" or "1h".
375- # terminationGracePeriod: "300s"
376- # nodeSelector captures the node selector labels for scheduling pods.
377- nodeSelector : {}
378- # affinity captures scheduling affinity rules for CockroachDB pods.
379- affinity :
380- # nodeAffinity:
381- # requiredDuringSchedulingIgnoredDuringExecution:
382- # nodeSelectorTerms:
383- # - matchExpressions:
384- # - key: kubernetes.io/os
385- # operator: In
386- # values:
387- # - linux
388- # podAffinity:
389- # requiredDuringSchedulingIgnoredDuringExecution:
390- # - labelSelector:
391- # matchExpressions:
392- # - key: security
393- # operator: In
394- # values:
395- # - S1
396- # topologyKey: topology.kubernetes.io/zone
397- # podAntiAffinity:
398- # preferredDuringSchedulingIgnoredDuringExecution:
399- # - weight: 100
400- # podAffinityTerm:
401- # labelSelector:
402- # matchExpressions:
403- # - key: security
404- # operator: In
405- # values:
406- # - S2
407- # topologyKey: topology.kubernetes.io/zone
408343 #
409344 # sideCars captures the configuration for sidecar containers.
410345 sideCars :
@@ -414,8 +349,6 @@ cockroachdb:
414349 containers : []
415350 # volumes captures additional volumes for CockroachDB pods.
416351 volumes : []
417- # tolerations captures the tolerations for scheduling CockroachDB pods.
418- tolerations : []
419352 # localityLabels captures labels used to determine node locality.
420353 # It is an ordered, comma-separated list of keys that which must be present as labels on the nodes.
421354 # For region and zone to be part of the locality, the labels (topology.kubernetes.io/region, topology.kubernetes.io/region) must be set on the nodes.
@@ -470,23 +403,83 @@ cockroachdb:
470403 # podTemplate is an optional pod specification that overrides the default pod specification configured by the operator.
471404 # If specified, podTemplate is merged with the default pod specification, with settings in podTemplate taking precedence.
472405 # This can be used to add or update containers, volumes, and other settings of the CockroachDB pod.
473- podTemplate : {}
474- # # metadata captures the pod metadata for CockroachDB pods.
475- # metadata: {}
476- # # spec captures the pod specification for CockroachDB pods.
477- # spec:
478- # # initContainers captures the list of init containers for CockroachDB pods.
479- # initContainers:
480- # - name : cockroachdb-init
481- # image: us-docker.pkg.dev/cockroach-cloud-images/data-plane/init-container@sha256:c3e4ba851802a429c7f76c639a64b9152d206cebb31162c1760f05e98f7c4254
482- # # containers captures the list of containers for CockroachDB pods.
483- # containers:
484- # - name: cockroachdb
485- # image: cockroachdb/cockroach:v25.2.2
486- # - name: cert-reloader
487- # image: us-docker.pkg.dev/cockroach-cloud-images/data-plane/inotifywait:87edf086db32734c7fa083a62d1055d664900840
488- # # imagePullSecrets captures the secrets for fetching images from private registries.
489- # imagePullSecrets: []
406+ podTemplate :
407+ # metadata captures the pod metadata for CockroachDB pods.
408+ metadata :
409+ labels :
410+ app.kubernetes.io/component : cockroachdb
411+ annotations : {}
412+ # spec captures the pod specification for CockroachDB pods.
413+ spec :
414+ # imagePullSecrets captures the secrets for fetching images from private registries.
415+ # imagePullSecrets: []
416+ # initContainers captures the list of init containers for CockroachDB pods.
417+ # initContainers:
418+ # - name : cockroachdb-init
419+ # image: us-docker.pkg.dev/cockroach-cloud-images/data-plane/init-container@sha256:c3e4ba851802a429c7f76c639a64b9152d206cebb31162c1760f05e98f7c4254
420+ # containers captures the list of containers for CockroachDB pods.
421+ containers :
422+ - name : cockroachdb
423+ # env captures environment variables set on CockroachDB pods.
424+ env : []
425+ # - name: APP_NAME
426+ # value: "CRDB"
427+ # - name: POD_NAME
428+ # valueFrom:
429+ # fieldRef:
430+ # fieldPath: metadata.name
431+ resources : {}
432+ # image: cockroachdb/cockroach:v25.2.2
433+ # - name: cert-reloader
434+ # image: us-docker.pkg.dev/cockroach-cloud-images/data-plane/inotifywait:87edf086db32734c7fa083a62d1055d664900840
435+
436+ # topologySpreadConstraints captures pod topology spread constraints.
437+ # It is recommended to spread CockroachDB pods across zones to ensure high availability.
438+ topologySpreadConstraints :
439+ # maxSkew defines the degree to which the pods can be unevenly distributed.
440+ - maxSkew : 1
441+ # topologyKey defines the key for topology spread.
442+ topologyKey : topology.kubernetes.io/zone
443+ # whenUnsatisfiable defines the behavior when constraints cannot be met.
444+ whenUnsatisfiable : DoNotSchedule
445+ # terminationGracePeriodSeconds determines the time available to CockroachDB for graceful drain.
446+ # terminationGracePeriodSeconds: 300
447+ # tolerations captures the tolerations for pods of the self-signer job.
448+ # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
449+ # tolerations: []
450+ # nodeSelector captures the node selector labels for scheduling pods.
451+ # nodeSelector: {}
452+ # affinity captures scheduling affinity rules for CockroachDB pods.
453+ # affinity:
454+ # nodeAffinity:
455+ # requiredDuringSchedulingIgnoredDuringExecution:
456+ # nodeSelectorTerms:
457+ # - matchExpressions:
458+ # - key: kubernetes.io/os
459+ # operator: In
460+ # values:
461+ # - linux
462+ # podAffinity:
463+ # requiredDuringSchedulingIgnoredDuringExecution:
464+ # - labelSelector:
465+ # matchExpressions:
466+ # - key: security
467+ # operator: In
468+ # values:
469+ # - S1
470+ # topologyKey: topology.kubernetes.io/zone
471+ # podAntiAffinity:
472+ # preferredDuringSchedulingIgnoredDuringExecution:
473+ # - weight: 100
474+ # podAffinityTerm:
475+ # labelSelector:
476+ # matchExpressions:
477+ # - key: security
478+ # operator: In
479+ # values:
480+ # - S2
481+ # topologyKey: topology.kubernetes.io/zone
482+ #
490483
491484 # persistentVolumeClaimRetentionPolicy is used to Retain or Delete the PVCs when the node is deleted.
492485 # If not specified, the PVCs will be deleted when the node is deleted.
0 commit comments