fix(matrix-synapse): replace 8008 with port variable

This commit is contained in:
Alex Babel 2021-11-21 00:48:21 +01:00
parent 003aa144ac
commit c99918b413
No known key found for this signature in database
GPG key ID: 172C226B30136F43
3 changed files with 8 additions and 8 deletions

View file

@ -139,11 +139,11 @@ spec:
service:
name: {{ $fullName }}
port:
number: 8008
number: {{ $.Values.service.port }}
pathType: Prefix
{{- else }}
serviceName: {{ $fullName }}
servicePort: 8008
servicePort: {{ $.Values.service.port }}
{{- end }}
{{- end }}
@ -154,11 +154,11 @@ spec:
service:
name: {{ $fullName }}
port:
number: 8008
number: {{ $.Values.service.port }}
pathType: Prefix
{{- else }}
serviceName: {{ $fullName }}
servicePort: 8008
servicePort: {{ $.Values.service.port }}
{{- end }}
{{- end }}
@ -195,11 +195,11 @@ spec:
service:
name: {{ $fullName }}
port:
number: 8008
number: {{ $.Values.service.port }}
pathType: Exact
{{- else }}
serviceName: {{ $fullName }}
servicePort: 8008
servicePort: {{ $.Values.service.port }}
{{- end }}
{{- end }}
{{- end }}

View file

@ -12,5 +12,5 @@ spec:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "matrix-synapse.fullname" . }}:8008/_matrix/client/versions']
args: ['{{ include "matrix-synapse.fullname" . }}:{{ $.Values.service.port }}/_matrix/client/versions']
restartPolicy: Never

View file

@ -29,7 +29,7 @@ data:
worker_name: {{ $config.name }}
{{- end }}
worker_main_http_uri: http://{{ include "matrix-synapse.fullname" $ }}:8008
worker_main_http_uri: http://{{ include "matrix-synapse.fullname" $ }}:{{ $.Values.service.port }}
worker_replication_host: {{ include "matrix-synapse.replicationname" $ | quote }}
worker_replication_http_port: 9093