envoyproxy / gateway

Manages Envoy Proxy as a Standalone or Kubernetes-based Application Gateway
https://gateway.envoyproxy.io
Apache License 2.0
1.63k stars 352 forks source link

EG loglevel error for admin and metrics module #4339

Closed qicz closed 1 month ago

qicz commented 1 month ago

Description:

What issue is being seen? Describe what should be happening instead of the bug, for example: Envoy should not crash, the expected value isn't returned, etc.

Repro steps:

set the EG logleve to warn with envoy-gateway-config but the admin and metrics can not assign the level.

apiVersion: v1
data:
  envoy-gateway.yaml: |-
    apiVersion: gateway.envoyproxy.io/v1alpha1
    kind: EnvoyGateway
    logging:
      level:
        default: warn
    gateway:
      controllerName: gateway.envoyproxy.io/gatewayclass-controller
    provider:
      type: Kubernetes
      kubernetes:
        overwriteControlPlaneCerts: true
kind: ConfigMap

Note: If there are privacy concerns, sanitize the data prior to sharing.

Environment:

Include the environment like gateway version, envoy version and so on.

Logs:

Include the access logs and the Envoy logs.

2024-09-26T14:43:44.712Z        INFO    admin   admin/server.go:37      starting admin server   {"address": "127.0.0.1:19000", "enablePprof": false}
2024-09-26T14:43:44.712Z        INFO    metrics metrics/register.go:165 initialized metrics pull endpoint       {"address": "0.0.0.0:19001", "endpoint": "/metrics"}
2024-09-26T14:43:44.713Z        INFO    metrics metrics/register.go:54  starting metrics server {"address": "0.0.0.0:19001"}