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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_STORE
Chart.lock
charts/
.claude
12 changes: 12 additions & 0 deletions cockroach/versions/1.4.0/templates/workload-backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@ spec:
- name: BACKUP_PROVIDER
value: {{ .Values.backup.provider }}
- name: COCKROACH_HOST
{{- if .Values.pgbouncer.enabled }}
value: {{ include "cockroach.pgbouncer.name" . }}.{{ .Values.gvc.name }}.cpln.local
{{- else }}
value: {{ include "cockroach.name" . }}.{{ .Values.gvc.name }}.cpln.local
{{- end }}
- name: COCKROACH_PORT
{{- if .Values.pgbouncer.enabled }}
value: "5432"
{{- else }}
value: "26257"
{{- end }}
- name: COCKROACH_DB
value: {{ .Values.database.name | quote }}
{{- if eq .Values.backup.provider "aws" }}
- name: AWS_BUCKET
value: {{ .Values.backup.aws.bucket }}
Expand Down
4 changes: 4 additions & 0 deletions cockroach/versions/1.4.0/templates/workload-cockroach.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ spec:
target: 100
capacityAI: false
debug: false
multiZone:
enabled: {{ .Values.multiZone }}
suspend: false
timeoutSeconds: 10
firewallConfig:
Expand Down Expand Up @@ -95,6 +97,8 @@ spec:
capacityAI: false
debug: false
location: //location/{{ $location.name }}
multiZone:
enabled: {{ $.Values.multiZone }}
suspend: {{ if eq ($location.replicas | int) 0 }}true{{ else }}false{{ end }}
timeoutSeconds: 10
{{- end }}
Expand Down
12 changes: 7 additions & 5 deletions cockroach/versions/1.4.0/values.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
gvc:
name: cockroach-gvc
locations:
- name: aws-us-west-2
replicas: 3
- name: aws-us-east-2
- name: aws-us-east-1
replicas: 3
- name: aws-eu-central-1
replicas: 3
- name: aws-us-west-2
replicas: 3

image: cockroachdb/cockroach:v25.4.0

multiZone: false

resources:
cpu: 2
memory: 4Gi
Expand Down Expand Up @@ -57,10 +59,10 @@ pgbouncer:

backup:
enabled: false
image: controlplanecorporation/cockroach-backup:1.0
image: ghcr.io/controlplane-com/backup-images/cockroach-backup:1.1
schedule: "0 2 * * *"
activeDeadlineSeconds: 14400 # hard kill after 4 hours if backup hangs
location: aws-us-east-2 # run the backup job in the same region as your storage bucket
location: aws-us-east-1 # run the backup job in the same region as your storage bucket
resources:
cpu: 500m
memory: 512Mi
Expand Down
Loading