You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a flag to control whether auth is added to the EPP metrics server (#1639)
* Adding a flag to control whether auth is added to the EPP metrics server
* Update cmd/epp/runner/runner.go
Co-authored-by: Cong Liu <conliu@google.com>
* update
* apply review's suggestion
* apply reviewer's suggestion
* rollback interval
* update
* update README.md
* revert gke
* update
---------
Co-authored-by: Cong Liu <conliu@google.com>
@@ -91,17 +92,18 @@ var flowControlConfig = flowcontrol.Config{
91
92
}
92
93
93
94
var (
94
-
grpcPort=flag.Int("grpc-port", runserver.DefaultGrpcPort, "The gRPC port used for communicating with Envoy proxy")
95
-
grpcHealthPort=flag.Int("grpc-health-port", runserver.DefaultGrpcHealthPort, "The port used for gRPC liveness and readiness probes")
96
-
metricsPort=flag.Int("metrics-port", runserver.DefaultMetricsPort, "The metrics port")
97
-
enablePprof=flag.Bool("enable-pprof", runserver.DefaultEnablePprof, "Enables pprof handlers. Defaults to true. Set to false to disable pprof handlers.")
98
-
poolName=flag.String("pool-name", runserver.DefaultPoolName, "Name of the InferencePool this Endpoint Picker is associated with.")
99
-
poolGroup=flag.String("pool-group", runserver.DefaultPoolGroup, "group of the InferencePool this Endpoint Picker is associated with.")
100
-
poolNamespace=flag.String("pool-namespace", "", "Namespace of the InferencePool this Endpoint Picker is associated with.")
101
-
logVerbosity=flag.Int("v", logging.DEFAULT, "number for the log level verbosity")
102
-
secureServing=flag.Bool("secure-serving", runserver.DefaultSecureServing, "Enables secure serving. Defaults to true.")
103
-
healthChecking=flag.Bool("health-checking", runserver.DefaultHealthChecking, "Enables health checking")
104
-
certPath=flag.String("cert-path", runserver.DefaultCertPath, "The path to the certificate for secure serving. The certificate and private key files "+
95
+
grpcPort=flag.Int("grpc-port", runserver.DefaultGrpcPort, "The gRPC port used for communicating with Envoy proxy")
96
+
grpcHealthPort=flag.Int("grpc-health-port", runserver.DefaultGrpcHealthPort, "The port used for gRPC liveness and readiness probes")
97
+
metricsPort=flag.Int("metrics-port", runserver.DefaultMetricsPort, "The metrics port")
98
+
metricsEndpointAuth=flag.Bool("metrics-endpoint-auth", true, "Enables authentication and authorization of the metrics endpoint")
99
+
enablePprof=flag.Bool("enable-pprof", runserver.DefaultEnablePprof, "Enables pprof handlers. Defaults to true. Set to false to disable pprof handlers.")
100
+
poolName=flag.String("pool-name", runserver.DefaultPoolName, "Name of the InferencePool this Endpoint Picker is associated with.")
101
+
poolGroup=flag.String("pool-group", runserver.DefaultPoolGroup, "group of the InferencePool this Endpoint Picker is associated with.")
102
+
poolNamespace=flag.String("pool-namespace", "", "Namespace of the InferencePool this Endpoint Picker is associated with.")
103
+
logVerbosity=flag.Int("v", logging.DEFAULT, "number for the log level verbosity")
104
+
secureServing=flag.Bool("secure-serving", runserver.DefaultSecureServing, "Enables secure serving. Defaults to true.")
105
+
healthChecking=flag.Bool("health-checking", runserver.DefaultHealthChecking, "Enables health checking")
106
+
certPath=flag.String("cert-path", runserver.DefaultCertPath, "The path to the certificate for secure serving. The certificate and private key files "+
105
107
"are assumed to be named tls.crt and tls.key, respectively. If not set, and secureServing is enabled, "+
0 commit comments