Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 81ccba1

Browse files
authored
Merge pull request #519 from PrimeIntellect-ai/chore/ability-to-customize-redis-in-charts
chore(deployment): ability to customize redis in helm charts
2 parents 7497215 + 27c2471 commit 81ccba1

File tree

10 files changed

+30
-2
lines changed

10 files changed

+30
-2
lines changed

deployment/k8s/orchestrator-chart/templates/orchestrator-deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@
2929
value: {{ .root.Values.env.RPC_URL }}
3030
- name: MODE
3131
value: {{ .mode }}
32+
{{- if not .root.Values.env.REDIS_URL }}
3233
- name: REDIS_STORE_URL
3334
value: "redis://{{ include "orchestrator.redisName" .root }}:6379"
35+
{{- else }}
36+
- name: REDIS_STORE_URL
37+
value: "{{ .root.Values.env.REDIS_URL }}"
38+
{{- end }}
3439
- name: DISCOVERY_URLS
3540
value: {{ .root.Values.env.DISCOVERY_URLS }}
3641
- name: COORDINATOR_KEY

deployment/k8s/orchestrator-chart/templates/redis-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.env.REDIS_URL }}
12
apiVersion: apps/v1
23
kind: Deployment
34
metadata:
@@ -33,3 +34,4 @@ spec:
3334
- name: redis-data
3435
persistentVolumeClaim:
3536
claimName: {{ include "orchestrator.redisPVCName" . }}
37+
{{- end }}

deployment/k8s/orchestrator-chart/templates/redis-pvc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.env.REDIS_URL }}
12
apiVersion: v1
23
kind: PersistentVolumeClaim
34
metadata:
@@ -9,3 +10,4 @@ spec:
910
resources:
1011
requests:
1112
storage: 10Gi
13+
{{- end }}

deployment/k8s/orchestrator-chart/templates/redis-service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.env.REDIS_URL }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -9,3 +10,4 @@ spec:
910
ports:
1011
- port: 6379
1112
targetPort: 6379
13+
{{- end }}

deployment/k8s/orchestrator-chart/values.example.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ env:
1313
NODE_GROUP_CONFIGS: '[{"name": "h100-config", "min_group_size": 1, "max_group_size": 1, "compute_requirements": "gpu:model=h100"}, {"name": "a100-config", "min_group_size": 2, "max_group_size": 2, "compute_requirements": "gpu:model=a100"}]'
1414
WEBHOOK_CONFIGS: '[{"url": "https://your-webhook-url.example.com", "bearer_token": "your-bearer-token"}]'
1515
MAX_HEALTHY_NODES_WITH_SAME_ENDPOINT: "1"
16+
17+
# In case we use an external redis
18+
REDIS_URL: "redis://redis-master.example-namespace:6379"
1619
secrets:
1720
coordinatorKey: "your-coordinator-private-key"
1821
adminApiKey: "your-admin-api-key"

deployment/k8s/validator-chart/templates/redis-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.env.REDIS_URL }}
12
apiVersion: apps/v1
23
kind: Deployment
34
metadata:
@@ -33,3 +34,4 @@ spec:
3334
- name: redis-data
3435
persistentVolumeClaim:
3536
claimName: {{ include "validator.redisPVCName" . }}
37+
{{- end }}

deployment/k8s/validator-chart/templates/redis-pvc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.env.REDIS_URL }}
12
apiVersion: v1
23
kind: PersistentVolumeClaim
34
metadata:
@@ -9,3 +10,4 @@ spec:
910
resources:
1011
requests:
1112
storage: 10Gi
13+
{{- end }}

deployment/k8s/validator-chart/templates/redis-service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.env.REDIS_URL }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -9,3 +10,4 @@ spec:
910
ports:
1011
- port: 6379
1112
targetPort: 6379
13+
{{- end }}

deployment/k8s/validator-chart/templates/validator-deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@ spec:
4747
key: validatorKey
4848
- name: DISCOVERY_URLS
4949
value: {{ .Values.env.DISCOVERY_URLS }}
50+
{{- if not .Values.env.REDIS_URL }}
5051
- name: REDIS_URL
5152
value: "redis://{{ include "validator.redisName" . }}:6379"
53+
{{- else }}
54+
- name: REDIS_URL
55+
value: "{{ .Values.env.REDIS_URL }}"
56+
{{- end }}
5257
{{- if .Values.env.TOPLOC_CONFIGS }}
5358
- name: TOPLOC_CONFIGS
5459
value: {{ .Values.env.TOPLOC_CONFIGS | quote }}

deployment/k8s/validator-chart/values.example.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ env:
1414
DISABLE_HARDWARE_VALIDATION: "true"
1515
VALIDATOR_PENALTY: "200"
1616
INCOMPLETE_GROUP_GRACE_PERIOD_MINUTES: "0"
17+
TOPLOC_CONFIGS: |
18+
[]
19+
# In case we use an external redis
20+
REDIS_URL: "redis://redis-master.example-namespace:6379"
1721

1822
secrets:
1923
validatorKey: "private key"
2024
validatorApiKey: "your-secure-api-key-here"
21-
s3Credentials: "base64EncodedS3CredentialsGoHere"
22-
toplocConfigs: "toploc configs"
25+
s3Credentials: "base64EncodedS3CredentialsGoHere"

0 commit comments

Comments
 (0)