{{- if and .Values.config .Values.config.appservice }} apiVersion: v1 kind: Service metadata: name: {{ include "mautrix-signal.fullname" . }} labels: {{- include "mautrix-signal.labels" . | nindent 4 }} spec: type: {{ .Values.service.type }} publishNotReadyAddresses: true selector: {{- include "mautrix-signal.selectorLabels" . | nindent 4 }} ports: - port: {{ .Values.config.appservice.port }} targetPort: http protocol: TCP name: http {{- end }}