@@ -86,6 +86,18 @@ cockroachdb:
8686 requests:
8787 cpu: "1"
8888 memory: 2Gi
89+ initContainers:
90+ - command:
91+ - /bin/sh
92+ - -c
93+ - echo "Custom init container setup"; sleep 2
94+ image: alpine:latest
95+ imagePullPolicy: IfNotPresent
96+ name: custom-init
97+ resources:
98+ requests:
99+ cpu: 100m
100+ memory: 64Mi
89101 nodeSelector:
90102 cloud.google.com/gke-nodepool: default-pool
91103 priorityClassName: crdb-critical
@@ -103,6 +115,13 @@ cockroachdb:
103115 maxSkew: 1
104116 topologyKey: topology.kubernetes.io/zone
105117 whenUnsatisfiable: ScheduleAnyway
118+ volumes:
119+ - configMap:
120+ items:
121+ - key: config.yaml
122+ path: custom-config.yaml
123+ name: custom-config-map
124+ name: custom-config
106125 regions:
107126 - cloudProvider: gcp
108127 code: us-central1
@@ -164,133 +183,6 @@ cockroachdb:
164183 maxSkew: 1
165184 topologyKey: topology.kubernetes.io/zone
166185 whenUnsatisfiable: ScheduleAnyway
167- dataStore:
168- volumeClaimTemplate:
169- metadata:
170- name: datadir
171- spec:
172- accessModes:
173- - ReadWriteOnce
174- resources:
175- requests:
176- storage: 100Gi
177- volumeMode: Filesystem
178- image:
179- name: cockroachdb/cockroach:v25.1.5
180- localityLabels:
181- - country
182- - region
183- loggingConfigMapName: cockroachdb-log-config
184- podLabels:
185- app.kubernetes.io/component: cockroachdb
186- app.kubernetes.io/instance: cockroachdb
187- app.kubernetes.io/name: cockroachdb
188- podTemplate:
189- metadata:
190- annotations:
191- crdb: is-cool
192- labels:
193- app.kubernetes.io/component: cockroachdb
194- app.kubernetes.io/instance: cockroachdb
195- app.kubernetes.io/name: cockroachdb
196- spec:
197- affinity:
198- podAntiAffinity:
199- preferredDuringSchedulingIgnoredDuringExecution:
200- - podAffinityTerm:
201- labelSelector:
202- matchLabels:
203- app.kubernetes.io/component: cockroachdb
204- app.kubernetes.io/instance: cockroachdb
205- app.kubernetes.io/name: cockroachdb
206- topologyKey: kubernetes.io/hostname
207- weight: 100
208- containers:
209- - env:
210- - name: STATEFULSET_NAME
211- value: cockroachdb
212- - name: STATEFULSET_FQDN
213- value: cockroachdb.default.svc.cluster.local
214- - name: COCKROACH_CHANNEL
215- value: kubernetes-helm
216- - name: GODEBUG
217- value: disablethp=1
218- - name: HOST_IP
219- valueFrom:
220- fieldRef:
221- apiVersion: v1
222- fieldPath: status.hostIP
223- - name: GODEBUG
224- value: disablethp=1
225- image: cockroachdb/cockroach:v25.1.5
226- name: cockroachdb
227- resources:
228- limits:
229- cpu: "2"
230- memory: 4Gi
231- requests:
232- cpu: "1"
233- memory: 2Gi
234- initContainers:
235- - command:
236- - /bin/sh
237- - -c
238- - echo "Custom init container setup"; sleep 2
239- image: alpine:latest
240- imagePullPolicy: IfNotPresent
241- name: custom-init
242- resources:
243- requests:
244- cpu: 100m
245- memory: 64Mi
246- nodeSelector:
247- cloud.google.com/gke-nodepool: default-pool
248- priorityClassName: crdb-critical
249- terminationGracePeriodSeconds: 300
250- tolerations:
251- - effect: NoSchedule
252- key: non-crdb
253- operator: Exists
254- topologySpreadConstraints:
255- - labelSelector:
256- matchLabels:
257- app.kubernetes.io/component: cockroachdb
258- app.kubernetes.io/instance: cockroachdb
259- app.kubernetes.io/name: cockroachdb
260- maxSkew: 1
261- topologyKey: topology.kubernetes.io/zone
262- whenUnsatisfiable: ScheduleAnyway
263- volumes:
264- - configMap:
265- items:
266- - key: config.yaml
267- path: custom-config.yaml
268- name: custom-config-map
269- name: custom-config
270- regions:
271- - cloudProvider: gcp
272- code: us-central1
273- domain: ""
274- namespace: default
275- nodes: 3
276- service:
277- ports:
278- grpc:
279- port: 26258
280- http:
281- port: 8080
282- sql:
283- port: 26257
284- startFlags:
285- omit: null
286- upsert:
287- - --join=${STATEFULSET_NAME}-0.${STATEFULSET_FQDN}:26257,${STATEFULSET_NAME}-1.${STATEFULSET_FQDN}:26257,${STATEFULSET_NAME}-2.${STATEFULSET_FQDN}:26257
288- - --advertise-host=$(hostname).${STATEFULSET_FQDN}
289- - --certs-dir=/cockroach/cockroach-certs/
290- - --cache=25%
291- - --max-sql-memory=25%
292- virtualCluster:
293- mode: primary
294186 tls:
295187 enabled: true
296188 externalCertificates:
0 commit comments