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
Allows specifying a certificate&key pair by file paths, as well as an
optional CA file. Enforce/allow mutual-TLS handshake behaviour too.
Signed-off-by: Joe Groocock <me@frebib.net>
varhttpDigestFile=flag.String("http_digest_file", "", "HTTP digest file for the web UI")
56
58
varhttpDigestRealm=flag.String("http_digest_realm", "localhost", "HTTP digest file for the web UI")
57
59
60
+
vartlsCertPath=flag.String("tls_cert_path", "", "TLS certificate file path to serve cadvisor HTTPS with. Must be specified along with -tls_key_path")
61
+
vartlsKeyPath=flag.String("tls_key_path", "", "TLS key file path to serve cadvisor HTTPS with. Must be specified along with -tls_cert_path")
62
+
vartlsCAPath=flag.String("tls_ca_path", "", "TLS certificate authority file path. Used to verify TLS clients connecting to cadvisor. System CA roots will be used if this is not specified.")
63
+
vartlsClientAuth=flag.String("tls_client_auth", "require", "TLS authentication mode, must be one of request, optional, requireany, require or none.")
64
+
58
65
varprometheusEndpoint=flag.String("prometheus_endpoint", "/metrics", "Endpoint to expose Prometheus metrics on")
59
66
60
67
varenableProfiling=flag.Bool("profiling", false, "Enable profiling via web interface host:port/debug/pprof/")
@@ -152,6 +159,9 @@ func main() {
152
159
klog.Fatalf("Failed to register HTTP handlers: %v", err)
153
160
}
154
161
162
+
// Generate tls.Config if it was requested by flags
0 commit comments