feat(sso/ultra/edge-unit): Deployment 加 checksum/config 注解,ConfigMap 变更自动触发滚动(对齐 agent-unit f74201a 模式)
This commit is contained in:
1 parent
e7c8c665a4
commit
c4527a8ec5
6 files changed
+96
-63
No files matched your search
@@ -27,6 +27,8 @@ spec:
|
||||
app.kubernetes.io/component: {{ $name }}
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: {{ include "mixingx-ultra.configData" . | sha256sum }}
|
||||
labels:
|
||||
app.kubernetes.io/component: {{ $name }}
|
||||
spec:
|
||||
@@ -89,26 +91,7 @@ kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ $name }}-config
|
||||
data:
|
||||
HTTP_PORTS: "{{ $port }}"
|
||||
REDIS_HOST: "{{ $root.Values.sharedInfra.redis.host }}"
|
||||
REDIS_PORT: "{{ $root.Values.sharedInfra.redis.port }}"
|
||||
POSTGRESQL_HOST: "{{ $pgHost }}"
|
||||
POSTGRESQL_PORT: "{{ $root.Values.sharedInfra.postgres.port }}"
|
||||
POSTGRESQL_USERNAME: "{{ $root.Values.sharedInfra.postgres.username }}"
|
||||
MESSAGING_HOST: "{{ $root.Values.sharedInfra.rabbitmq.host }}"
|
||||
MESSAGING_PORT: "{{ $root.Values.sharedInfra.rabbitmq.port }}"
|
||||
MESSAGING_USERNAME: "{{ $root.Values.sharedInfra.rabbitmq.username }}"
|
||||
services__gateway__http__0: "http://gateway-service:8080"
|
||||
{{ upper $role }}_SERVICE_ID: "{{ $serviceId }}"
|
||||
{{- if .Values.audit.publisher.enabled }}
|
||||
AuditMqttPublisher__BrokerUrl: "{{ .Values.audit.publisher.brokerUrl }}"
|
||||
AuditMqttPublisher__Service: "{{ .Values.audit.publisher.service | default "ultra" }}"
|
||||
AuditMqttPublisher__InstanceId: "{{ .Values.audit.publisher.instanceId | default "ultra" }}"
|
||||
{{- end }}
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT: "{{ $root.Values.sharedInfra.otlp.endpoint }}"
|
||||
OTEL_EXPORTER_OTLP_PROTOCOL: "{{ $root.Values.sharedInfra.otlp.protocol }}"
|
||||
OTEL_SERVICE_NAME: "{{ $name }}"
|
||||
ASPNETCORE_FORWARDEDHEADERS_ENABLED: "true"
|
||||
{{- include "mixingx-ultra.configData" . | nindent 2 }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
|
||||
Reference in new issue
Block a user