feat(sso/ultra/edge-unit): Deployment 加 checksum/config 注解,ConfigMap 变更自动触发滚动(对齐 agent-unit f74201a 模式)

This commit is contained in:
ximenchuifeng committed 2026-08-20 13:11:57 +08:00
1 parent e7c8c665a4
commit c4527a8ec5
6 files changed
+96 -63

No files matched your search

+3 -20
View File
@@ -22,6 +22,8 @@ spec:
app.kubernetes.io/component: {{ $name }}
template:
metadata:
annotations:
checksum/config: {{ include "mixingx-sso.configData" . | sha256sum }}
labels:
app.kubernetes.io/component: {{ $name }}
spec:
@@ -84,26 +86,7 @@ kind: ConfigMap
metadata:
name: {{ $name }}-config
data:
HTTP_PORTS: "{{ $backendPort }}"
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 "sso" }}"
AuditMqttPublisher__InstanceId: "{{ .Values.audit.publisher.instanceId | default "sso" }}"
{{- 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-sso.configData" . | nindent 2 }}
---
apiVersion: v1
kind: Secret