From 02c5d8c72d7182326968fb1eff1ad1d44d3dd1fd Mon Sep 17 00:00:00 2001 From: Kimi CLI Date: Sun, 8 Mar 2026 15:21:27 +0800 Subject: [PATCH] chore: add Npgsql log level config to suppress GSSAPI warnings - Set Logging__LogLevel__Npgsql to Error in ConfigMap - Prevents libgssapi_krb5.so.2 warning spam in logs --- k8s/test/configmap.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 k8s/test/configmap.yaml diff --git a/k8s/test/configmap.yaml b/k8s/test/configmap.yaml new file mode 100644 index 0000000..5fa3017 --- /dev/null +++ b/k8s/test/configmap.yaml @@ -0,0 +1,22 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: fengling-auth-config + namespace: fengling-test +data: + ASPNETCORE_ENVIRONMENT: "Production" + ASPNETCORE_URLS: "http://0.0.0.0:8080" + + # OpenIddict 配置 + OpenIddict__IssuerUri: "http://fengling-auth-service.fengling-test.svc.cluster.local" + OpenIddict__TokenLifetime: "3600" + OpenIddict__RefreshTokenLifetime: "604800" + + # CORS 配置(允许网关和管理控制台访问) + Cors__AllowedOrigins: "http://localhost:5173,http://localhost:5174" + + # 日志级别 + Logging__LogLevel__Default: "Information" + Logging__LogLevel__Microsoft.AspNetCore: "Warning" + Logging__LogLevel__Npgsql: "Error" # 隐藏 GSSAPI 警告 + Logging__LogLevel__OpenIddict: "Information"