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: service:
name: {{ $fullName }} name: {{ $fullName }}
port: port:
number: 8008 number: {{ $.Values.service.port }}
pathType: Prefix pathType: Prefix
{{- else }} {{- else }}
serviceName: {{ $fullName }} serviceName: {{ $fullName }}
servicePort: 8008 servicePort: {{ $.Values.service.port }}
{{- end }} {{- end }}
{{- end }} {{- end }}
@ -154,11 +154,11 @@ spec:
service: service:
name: {{ $fullName }} name: {{ $fullName }}
port: port:
number: 8008 number: {{ $.Values.service.port }}
pathType: Prefix pathType: Prefix
{{- else }} {{- else }}
serviceName: {{ $fullName }} serviceName: {{ $fullName }}
servicePort: 8008 servicePort: {{ $.Values.service.port }}
{{- end }} {{- end }}
{{- end }} {{- end }}
@ -195,11 +195,11 @@ spec:
service: service:
name: {{ $fullName }} name: {{ $fullName }}
port: port:
number: 8008 number: {{ $.Values.service.port }}
pathType: Exact pathType: Exact
{{- else }} {{- else }}
serviceName: {{ $fullName }} serviceName: {{ $fullName }}
servicePort: 8008 servicePort: {{ $.Values.service.port }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View file

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

View file

@ -29,7 +29,7 @@ data:
worker_name: {{ $config.name }} worker_name: {{ $config.name }}
{{- end }} {{- 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_host: {{ include "matrix-synapse.replicationname" $ | quote }}
worker_replication_http_port: 9093 worker_replication_http_port: 9093