Merge remote-tracking branch 'origin/develop/v.1.0.1' into HEAD
# Conflicts: # release-charts/mixingx-agent-unit/templates/unit.yaml
This commit is contained in:
commit
cc8c081e7f
3 files changed
+38
-23
No files matched your search
@@ -49,3 +49,33 @@ affinity:
|
||||
topologyKey: kubernetes.io/hostname
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "mixingx-unit.backendConfigData" -}}
|
||||
{{- $name := include "mixingx-unit.name" . -}}
|
||||
{{- $serviceId := include "mixingx-unit.serviceId" . -}}
|
||||
{{- $pgHost := printf "%s-postgres-service" $name -}}
|
||||
HTTP_PORTS: "{{ .Values.ports.backend }}"
|
||||
REDIS_HOST: "{{ .Values.sharedInfra.redis.host }}"
|
||||
REDIS_PORT: "{{ .Values.sharedInfra.redis.port }}"
|
||||
POSTGRESQL_HOST: "{{ $pgHost }}"
|
||||
POSTGRESQL_PORT: "{{ .Values.sharedInfra.postgres.port }}"
|
||||
POSTGRESQL_USERNAME: "{{ .Values.sharedInfra.postgres.username }}"
|
||||
MESSAGING_HOST: "{{ .Values.sharedInfra.rabbitmq.host }}"
|
||||
MESSAGING_PORT: "{{ .Values.sharedInfra.rabbitmq.port }}"
|
||||
MESSAGING_USERNAME: "{{ .Values.sharedInfra.rabbitmq.username }}"
|
||||
services__gateway__http__0: "http://gateway-service:8080"
|
||||
services__ultra__http__0: "http://{{ .Values.sharedInfra.ultra.host }}:{{ .Values.sharedInfra.ultra.port }}"
|
||||
AGENT_SERVICE_ID: "{{ $serviceId }}"
|
||||
{{- if .Values.phaseType }}
|
||||
AGENT_PHASE_TYPE: "{{ .Values.phaseType }}"
|
||||
{{- end }}
|
||||
{{- if .Values.audit.publisher.enabled }}
|
||||
AuditMqttPublisher__BrokerUrl: "{{ .Values.audit.publisher.brokerUrl }}"
|
||||
AuditMqttPublisher__Service: "{{ .Values.audit.publisher.service | default "agent" }}"
|
||||
AuditMqttPublisher__InstanceId: "{{ .Values.audit.publisher.instanceId | default $name }}"
|
||||
{{- end }}
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT: "{{ .Values.sharedInfra.otlp.endpoint }}"
|
||||
OTEL_EXPORTER_OTLP_PROTOCOL: "{{ .Values.sharedInfra.otlp.protocol }}"
|
||||
OTEL_SERVICE_NAME: "{{ $name }}"
|
||||
ASPNETCORE_FORWARDEDHEADERS_ENABLED: "true"
|
||||
{{- end -}}
|
||||
Reference in new issue
Block a user