Back to Dashboard

Dashboard arguments

docs/common/arguments.md

2.7.018.7 KB
Original Source

Dashboard arguments

Dashboard containers accept multiple arguments that can be used to customize them.

API module arguments

Argument nameDefault valueDescription
disable-csrf-protectionfalseAllows disabling CSRF protection.
act-as-proxyfalseForces dashboard to work in full proxy mode, meaning that any internal in-cluster client calls are disabled.
openapi-enabledfalseEnables OpenAPI v2 endpoint user '/apidocs.json'. Used to autogenerate OpenAPI/GraphQL schema.
profilerfalseEnables pprof handler. By default it will be exposed on localhost:8070 under '/debug/pprof'.
prometheus-enabledfalseEnables prometheus metrics handler. By default it will be exposed on localhost:8080 under '/metrics'.
apiserver-skip-tls-verifyfalseEnable if connection with remote Kubernetes API should skip TLS verify.
auto-generate-certificatesfalseWhen set to true, Dashboard will automatically generate certificates used to serve HTTPS.
cache-enabledtrueWhether the client cache should be enabled or not.
cluster-context-enabledfalseWhether multi-cluster cache context support should be enabled or not.
cache-size1000Max number of cache entries to hold at once.
cache-ttl10mTime to live of each cache entry.
cache-refresh-debounce5sMinimal time between cache refreshes in background.
insecure-port8000The port to listen to for incoming HTTP requests.
port8001The secure port to listen to for incoming HTTPS requests.
metric-client-check-period30Time in seconds that defines how often configured metric client health check should be run.
insecure-bind-address127.0.0.1The IP address on which to serve the --insecure-port (set to 127.0.0.1 for loopback only).
bind-address0.0.0.0The IP address on which to serve the --port (set to 0.0.0.0 for all interfaces).
token-exchange-endpoint-Endpoint used when --cluster-context-enabled=true to exchange auth token for the unique context identifier.
default-cert-dir/certsDirectory path containing --tls-cert-file and --tls-key-file files. Used also when auto-generating certificates flag is set. Relative to the container, not the host.
apiserver-ca-bundle-File containing the x509 certificates used for HTTPS connection to the API Server. Relative to the container, not the host.
tls-cert-file-File containing the default x509 Certificate for HTTPS.
tls-key-file-File containing the default x509 private key matching --tls-cert-file.
apiserver-host-The address of the Kubernetes Apiserver to connect to in the format of protocol://address:port, e.g., http://localhost:8080. If not specified, the assumption is that the binary runs inside a Kubernetes cluster and local discovery is attempted.
metrics-providersidecarSelect provider type for metrics. 'none' will not check metrics.
sidecar-host-The address of the Sidecar Apiserver to connect to in the format of protocol://address:port, e.g., http://localhost:8000. If not specified, the assumption is that the binary runs inside a Kubernetes cluster and service proxy will be used.
kubeconfig-Path to kubeconfig file with control plane location information.
namespacekubernetes-dashboardNamespace to use when accessing Dashboard specific resources, i.e. metrics scraper service.
metrics-scraper-service-namekubernetes-dashboard-metrics-scraperName of the dashboard metrics scraper service.
csrf-key-Base64 encoded random 256 bytes key. Can be loaded from 'CSRF_KEY' environment variable.
v1Number for the log level verbosity (default 1)

Auth module arguments

Argument nameDefault valueDescription
apiserver-skip-tls-verifyfalseEnable if connection with remote Kubernetes API should skip TLS verify.
apiserver-ca-bundle-File containing the x509 certificates used for HTTPS connection to the API Server. Relative to the container, not the host.
port8000The secure port to listen to for incoming HTTPS requests.
address0.0.0.0The IP address on which to serve the --port (set to 0.0.0.0 for all interfaces).
kubeconfig-Path to kubeconfig file.
apiserver-host-The address of the Kubernetes Apiserver to connect to in the format of protocol://address:port, e.g., http://localhost:8080. If not specified, the assumption is that the binary runs inside a Kubernetes cluster and local discovery is attempted.
csrf-key-Base64 encoded random 256 bytes key. Can be loaded from 'CSRF_KEY' environment variable.
v1Number for the log level verbosity (default 1)

Metrics scraper module arguments

Argument nameDefault valueDescription
metric-resolution1mThe resolution at which dashboard-metrics-scraper will poll metrics.
metric-duration15mThe duration after which metrics are purged from the database.
kubeconfig-Path to kubeconfig file.
db-file/tmp/metrics.dbWhat file to use as a SQLite3 database.
namespaces-Namespaces to use for all metric calls. When provided, skip node metrics.
v1Number for the log level verbosity (default 1)

Web module arguments

Argument nameDefault valueDescription
auto-generate-certificatesfalseWhen set to true, Dashboard will automatically generate certificates used to serve HTTPS.
insecure-port8000The port to listen to for incoming HTTP requests.
port8001The secure port to listen to for incoming HTTPS requests.
insecure-bind-address127.0.0.1The IP address on which to serve the --insecure-port (set to 127.0.0.1 for loopback only).
bind-address0.0.0.0The IP address on which to serve the --port (set to 0.0.0.0 for all interfaces).
namespacekube-systemNamespace to use when creating Dashboard specific resources, i.e. settings config map.
default-cert-dir/certsDirectory path containing --tls-cert-file and --tls-key-file files. Used also when auto-generating certificates flag is set. Relative to the container, not the host.
tls-cert-file-File containing the default x509 Certificate for HTTPS.
tls-key-file-File containing the default x509 private key matching --tls-cert-file.
settings-config-map-namekubernetes-dashboard-settingsName of a config map, that stores settings.
system-banner-When non-empty displays message to Dashboard users. Accepts simple HTML tags.
system-banner-severityINFOSeverity of system banner. Should be one of INFO|WARNING|ERROR.
locale-config./locale_conf.jsonFile containing the configuration of locales.
kubeconfig-Path to kubeconfig file.
v1Number for the log level verbosity (default 1)

Copyright 2019 The Kubernetes Dashboard Authors