Skip to content

Commit

Permalink
Merge branch 'main' into avimoondra/fix-backend-host-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
avimoondra authored May 22, 2024
2 parents 3ee9435 + ac9499d commit 9301e56
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ spec:
- name: membership
containerPort: {{ include (printf "temporal.%s.membershipPort" $service) $ }}
protocol: TCP
- name: metrics
- name: http-metrics
containerPort: 9090
protocol: TCP
{{- if and (ne $service "worker") $.Values.server.useLegacyHealthProbe }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
{{- end }}
spec:
endpoints:
- port: metrics
- port: http-metrics
interval: {{ default $.Values.server.metrics.serviceMonitor.interval $serviceValues.metrics.serviceMonitor.interval }}
{{- with (default $.Values.server.metrics.serviceMonitor.metricRelabelings $serviceValues.metrics.serviceMonitor.metricRelabelings) }}
metricRelabelings:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ spec:
protocol: TCP
name: grpc-membership
- port: 9090
targetPort: metrics
targetPort: http-metrics
protocol: TCP
name: metrics
name: http-metrics
selector:
app.kubernetes.io/name: {{ include "temporal.name" $ }}
app.kubernetes.io/instance: {{ $.Release.Name }}
Expand Down
8 changes: 8 additions & 0 deletions charts/retool/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,14 @@ Set code executor service name
{{ template "retool.fullname" . }}-code-executor
{{- end -}}

{{/*
Set multiplayer service name
*/}}
{{- define "retool.multiplayer.name" -}}
{{ template "retool.fullname" . }}-multiplayer-ws
{{- end -}}


{{/*
Set code executor image tag
Usage: (template "retool.codeExecutor.image.tag" .)
Expand Down
2 changes: 1 addition & 1 deletion charts/retool/templates/deployment_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ spec:
{{- end }}
ports:
- containerPort: {{ .Values.service.internalPort }}
name: {{ template "retool.name" . }}
name: http-server
protocol: TCP
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
Expand Down
14 changes: 2 additions & 12 deletions charts/retool/templates/deployment_code_executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ spec:
template:
metadata:
annotations:
prometheus.io/job: {{ template "retool.codeExecutor.name" . }}
prometheus.io/scrape: 'true'
prometheus.io/port: '9090'
{{- if .Values.podAnnotations }}
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
Expand Down Expand Up @@ -89,10 +86,7 @@ spec:
{{- end }}
ports:
- containerPort: 3004
name: {{ template "retool.name" . }}
protocol: TCP
- containerPort: 9090
name: metrics
name: http-server
protocol: TCP
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
Expand Down Expand Up @@ -143,9 +137,5 @@ spec:
- protocol: TCP
port: 80
targetPort: 3004
name: {{ template "retool.name" . }}
- protocol: TCP
port: 9090
targetPort: metrics
name: metrics
name: http-server
{{- end }}
12 changes: 8 additions & 4 deletions charts/retool/templates/deployment_multiplayer_ws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "retool.fullname" . }}-multiplayer-ws
name: {{ template "retool.multiplayer.name" . }}
spec:
selector:
retoolService: {{ template "retool.fullname" . }}-multiplayer-ws
retoolService: {{ template "retool.multiplayer.name" . }}
ports:
- name: ws
- name: http-server
protocol: TCP
port: 80
targetPort: 3001
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "retool.fullname" . }}-multiplayer-ws
name: {{ template "retool.multiplayer.name" . }}
labels:
{{- include "retool.labels" . | nindent 4 }}
{{- if .Values.deployment.annotations }}
Expand Down Expand Up @@ -128,6 +128,10 @@ spec:
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
ports:
- containerPort: 3001
name: http-server
protocol: TCP
resources:
{{ toYaml .Values.multiplayer.resources | indent 10 }}
readinessProbe:
Expand Down
4 changes: 2 additions & 2 deletions charts/retool/templates/deployment_telemetry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ spec:
{{- end }}
ports:
- containerPort: 9125
name: statsd-udp
name: udp-statsd
protocol: UDP
{{- if .Values.telemetry.extraPorts }}
{{- .Values.telemetry.extraPorts | toYaml | nindent 10 }}
Expand Down Expand Up @@ -175,7 +175,7 @@ metadata:
{{- include "retool.telemetry.labels" . | nindent 4 }}
spec:
ports:
- name: statsd-udp
- name: udp-statsd
port: 9125
protocol: UDP
selector:
Expand Down
3 changes: 2 additions & 1 deletion charts/retool/templates/deployment_workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ spec:
{{- end }}
ports:
- containerPort: {{ .Values.service.internalPort }}
name: {{ template "retool.name" . }}
name: http-server
protocol: TCP
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
Expand Down Expand Up @@ -319,4 +319,5 @@ spec:
- protocol: TCP
port: 80
targetPort: {{ .Values.service.internalPort }}
name: http-server
{{- end }}
10 changes: 5 additions & 5 deletions charts/retool/templates/deployment_workflows_worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ spec:
{{- end }}
ports:
- containerPort: 3005
name: {{ template "retool.name" . }}
name: http-server
protocol: TCP
- containerPort: 9090
name: metrics
name: http-metrics
protocol: TCP

{{- if .Values.livenessProbe.enabled }}
Expand Down Expand Up @@ -342,9 +342,9 @@ spec:
- protocol: TCP
port: 3005
targetPort: 3005
name: {{ template "retool.name" . }}
name: http-server
- protocol: TCP
port: 9090
targetPort: metrics
name: metrics
targetPort: http-metrics
name: http-metrics
{{- end }}

0 comments on commit 9301e56

Please sign in to comment.