PrometheusAgent.spec.initContainers[].livenessProbe.tcpSocket.port.spec.apiserverConfig
APIServerConfig allows specifying a host and auth methods to access the Kuberntees API server. If null, Prometheus is assumed to run inside of the cluster: it will discover the API servers automatically and use the Pod's CA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/.
| Field / Type | Description |
|---|---|
Authorization section for the API server. Cannot be set at the same time as `basicAuth`, `bearerToken`, or `bearerTokenFile`. | |
BasicAuth configuration for the API server. Cannot be set at the same time as `authorization`, `bearerToken`, or `bearerTokenFile`. | |
bearerToken | *Warning: this field shouldn't be used because the token value appears in clear-text. Prefer using `authorization`.* Deprecated: this will be removed in a future release. |
bearerTokenFile | File to read bearer token for accessing apiserver. Cannot be set at the same time as `basicAuth`, `authorization`, or `bearerToken`. Deprecated: this will be removed in a future release. Prefer using `authorization`. |
host | Kubernetes API address consisting of a hostname or IP address followed by an optional port number. |
TLS Config to use for the API server. |