Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
266265ea
Unverified
Commit
266265ea
authored
Aug 24, 2025
by
julienmancuso
Committed by
GitHub
Aug 24, 2025
Browse files
fix: fix manual helm chart (#2648)
parent
05913af5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
140 additions
and
11 deletions
+140
-11
deploy/helm/chart/templates/deployment.yaml
deploy/helm/chart/templates/deployment.yaml
+69
-4
deploy/helm/chart/templates/grove-podgangset.yaml
deploy/helm/chart/templates/grove-podgangset.yaml
+70
-6
deploy/helm/chart/templates/service.yaml
deploy/helm/chart/templates/service.yaml
+1
-1
No files found.
deploy/helm/chart/templates/deployment.yaml
View file @
266265ea
...
...
@@ -39,14 +39,32 @@ spec:
containers
:
-
name
:
{{
$.Release.Name
}}
-{{ $serviceName | lower }}
image
:
{{
$serviceSpec.extraPodSpec.mainContainer.image
}}
{{
- if $serviceSpec.extraPodSpec.mainContainer.workingDir
}}
workingDir
:
{{
$serviceSpec.extraPodSpec.mainContainer.workingDir
}}
{{
- end
}}
{{
- if $serviceSpec.extraPodSpec.mainContainer.command
}}
command
:
{{
- $serviceSpec.extraPodSpec.mainContainer.command | toYaml | nindent 8
}}
{{
- else
}}
{{
- if $serviceSpec.componentType | eq "frontend"
}}
command
:
-
python3
{{- else }}
command
:
-
/bin/sh
-
-c
{{
- if not $serviceSpec.extraPodSpec.mainContainer.args
}}
{{
- fail (printf "spec.services
[
%
s
]
.extraPodSpec.mainContainer.args must be set for non-frontend components" $serviceName)
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- if $serviceSpec.extraPodSpec.mainContainer.args
}}
args
:
{{
- $serviceSpec.extraPodSpec.mainContainer.args | toYaml | nindent 8
}}
{{
- else if $serviceSpec.componentType | eq "frontend"
}}
args
:
-
-m
-
dynamo.frontend
{{
- end
}}
{{
if $serviceSpec.resources
}}
resources
:
...
...
@@ -77,8 +95,10 @@ spec:
name
:
{{
$serviceSpec.envFromSecret
}}
{{
- end
}}
env
:
-
name
:
DYNAMO_PORT
value
:
"
{{
$.Values.dynamoPort
|
default
8000
}}"
{{
- if $.Values.dynamoNamespace
}}
-
name
:
DYN_NAMESPACE
value
:
{{
$.Values.dynamoNamespace
}}
{{
- end
}}
{{
- if $.Values.etcdAddr
}}
-
name
:
ETCD_ENDPOINTS
value
:
"
{{
$.Values.etcdAddr
}}"
...
...
@@ -87,9 +107,31 @@ spec:
-
name
:
NATS_SERVER
value
:
"
{{
$.Values.natsAddr
}}"
{{
- end
}}
{{
- if $serviceSpec.componentType | eq "frontend"
}}
-
name
:
DYNAMO_PORT
value
:
"
{{
$.Values.dynamoPort
|
default
8000
}}"
-
name
:
DYN_HTTP_PORT
value
:
"
{{
$.Values.dynamoPort
|
default
8000
}}"
{{
- else if $serviceSpec.componentType | eq "worker"
}}
-
name
:
DYN_SYSTEM_ENABLED
value
:
"
true"
-
name
:
DYN_SYSTEM_PORT
value
:
"
{{
$.Values.dynamoSystemPort
|
default
9090
}}"
-
name
:
DYN_SYSTEM_USE_ENDPOINT_HEALTH_STATUS
value
:
"
[
\"
generate
\"
]"
{{
- end
}}
{{
- if $serviceSpec.componentType | eq "frontend"
}}
ports
:
-
name
:
health
containerPort
:
{{
$.Values.healthPort | default 5000
}}
-
name
:
http
containerPort
:
{{
$.Values.dynamoPort | default 8000
}}
protocol
:
TCP
{{
- else if $serviceSpec.componentType | eq "worker"
}}
ports
:
-
name
:
system
containerPort
:
{{
$.Values.dynamoSystemPort | default 9090
}}
protocol
:
TCP
{{
- end
}}
{{
- if and $serviceSpec.componentType (or (eq $serviceSpec.componentType "frontend") (eq $serviceSpec.componentType "worker"))
}}
livenessProbe
:
{{
- if $serviceSpec.livenessProbe
}}
{{
$serviceSpec.livenessProbe | toYaml | nindent 10
}}
...
...
@@ -99,11 +141,21 @@ spec:
timeoutSeconds
:
5
failureThreshold
:
10
successThreshold
:
1
{{
- if $serviceSpec.componentType | eq "frontend"
}}
httpGet
:
path
:
/health
port
:
http
{{
- else if $serviceSpec.componentType | eq "worker"
}}
httpGet
:
path
:
/live
port
:
system
{{
- else
}}
httpGet
:
path
:
/healthz
port
:
health
scheme
:
HTTP
{{
- end
}}
{{
- end
}}
readinessProbe
:
{{
- if $serviceSpec.readinessProbe
}}
{{
$serviceSpec.readinessProbe | toYaml | nindent 10
}}
...
...
@@ -113,10 +165,23 @@ spec:
timeoutSeconds
:
5
failureThreshold
:
10
successThreshold
:
1
{{
- if $serviceSpec.componentType | eq "frontend"
}}
exec
:
command
:
-
/bin/sh
-
-c
-
curl -s http://localhost:${DYNAMO_PORT}/health | jq -e ".status == \"healthy\""
{{
- else if $serviceSpec.componentType | eq "worker"
}}
httpGet
:
path
:
/health
port
:
system
{{
- else
}}
httpGet
:
path
:
/readyz
port
:
health
scheme
:
HTTP
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
\ No newline at end of file
deploy/helm/chart/templates/grove-podgangset.yaml
View file @
266265ea
...
...
@@ -23,6 +23,7 @@ metadata:
spec
:
replicas
:
1
template
:
terminationDelay
:
1h
cliques
:
{{
- range $serviceName
,
$serviceSpec
:
= .Values.spec.services
}}
-
name
:
{{
$serviceName | lower
}}
...
...
@@ -64,14 +65,32 @@ spec:
{{
- if $serviceSpec.extraPodSpec.mainContainer.command
}}
command
:
{{
- $serviceSpec.extraPodSpec.mainContainer.command | toYaml | nindent 14
}}
{{
- else
}}
{{
- if $serviceSpec.componentType | eq "frontend"
}}
command
:
-
python3
{{- else }}
command
:
-
/bin/sh
-
-c
{{- if not $serviceSpec.extraPodSpec.mainContainer.args }}
{{- fail (printf "spec.services[%s].extraPodSpec.mainContainer.args must be set for non-frontend components" $serviceName) }}
{{- end }}
{{- end }}
{{
- end
}}
{{
- if $serviceSpec.extraPodSpec.mainContainer.args
}}
args
:
{{
- $serviceSpec.extraPodSpec.mainContainer.args | toYaml | nindent 14
}}
{{
- else if $serviceSpec.componentType | eq "frontend"
}}
args
:
-
-m
-
dynamo.frontend
{{
- end
}}
env
:
-
name
:
DYNAMO_PORT
value
:
"
{{
$.Values.dynamoPort
|
default
8000
}}"
{{
- if $.Values.dynamoNamespace
}}
-
name
:
DYN_NAMESPACE
value
:
{{
$.Values.dynamoNamespace
}}
{{
- end
}}
{{
- if $.Values.etcdAddr
}}
-
name
:
ETCD_ENDPOINTS
value
:
"
{{
$.Values.etcdAddr
}}"
...
...
@@ -80,41 +99,86 @@ spec:
-
name
:
NATS_SERVER
value
:
"
{{
$.Values.natsAddr
}}"
{{
- end
}}
{{
- if $serviceSpec.componentType | eq "frontend"
}}
-
name
:
DYNAMO_PORT
value
:
"
{{
$.Values.dynamoPort
|
default
8000
}}"
-
name
:
DYN_HTTP_PORT
value
:
"
{{
$.Values.dynamoPort
|
default
8000
}}"
{{
- else if $serviceSpec.componentType | eq "worker"
}}
-
name
:
DYN_SYSTEM_ENABLED
value
:
"
true"
-
name
:
DYN_SYSTEM_PORT
value
:
"
{{
$.Values.dynamoSystemPort
|
default
9090
}}"
-
name
:
DYN_SYSTEM_USE_ENDPOINT_HEALTH_STATUS
value
:
"
[
\"
generate
\"
]"
{{
- end
}}
{{
- if $serviceSpec.envFromSecret
}}
envFrom
:
-
secretRef
:
name
:
{{
$serviceSpec.envFromSecret
}}
{{
- end
}}
{{
- if $serviceSpec.componentType | eq "frontend"
}}
ports
:
-
name
:
http
containerPort
:
{{
$.Values.dynamoPort | default 8000
}}
protocol
:
TCP
{{
- else if $serviceSpec.componentType | eq "worker"
}}
ports
:
-
name
:
health
containerPort
:
{{
$.Values.healthPort | default 5000
}}
-
name
:
system
containerPort
:
{{
$.Values.dynamoSystemPort | default 9090
}}
protocol
:
TCP
{{
- end
}}
{{
- if and $serviceSpec.componentType (or (eq $serviceSpec.componentType "frontend") (eq $serviceSpec.componentType "worker"))
}}
livenessProbe
:
{{
- if $serviceSpec.livenessProbe
}}
{{
$serviceSpec.livenessProbe | toYaml | nindent 1
4
}}
{{
$serviceSpec.livenessProbe | toYaml | nindent 1
0
}}
{{
- else
}}
initialDelaySeconds
:
60
periodSeconds
:
60
timeoutSeconds
:
5
failureThreshold
:
10
successThreshold
:
1
{{
- if $serviceSpec.componentType | eq "frontend"
}}
httpGet
:
path
:
/health
port
:
http
{{
- else if $serviceSpec.componentType | eq "worker"
}}
httpGet
:
path
:
/live
port
:
system
{{
- else
}}
httpGet
:
path
:
/healthz
port
:
health
scheme
:
HTTP
{{
- end
}}
{{
- end
}}
readinessProbe
:
{{
- if $serviceSpec.readinessProbe
}}
{{
$serviceSpec.readinessProbe | toYaml | nindent 1
4
}}
{{
$serviceSpec.readinessProbe | toYaml | nindent 1
0
}}
{{
- else
}}
initialDelaySeconds
:
60
periodSeconds
:
60
timeoutSeconds
:
5
failureThreshold
:
10
successThreshold
:
1
{{
- if $serviceSpec.componentType | eq "frontend"
}}
exec
:
command
:
-
/bin/sh
-
-c
-
curl -s http://localhost:${DYNAMO_PORT}/health | jq -e ".status == \"healthy\""
{{
- else if $serviceSpec.componentType | eq "worker"
}}
httpGet
:
path
:
/health
port
:
system
{{
- else
}}
httpGet
:
path
:
/readyz
port
:
health
scheme
:
HTTP
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
deploy/helm/chart/templates/service.yaml
View file @
266265ea
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
{{
- range $serviceName
,
$serviceSpec
:
= .Values.spec.services
}}
{{
- if eq $serviceSpec.componentType "
main
"
}}
{{
- if eq $serviceSpec.componentType "
frontend
"
}}
---
apiVersion
:
v1
kind
:
Service
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment