Class APIServerConfig

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<APIServerConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class APIServerConfig
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<APIServerConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.


    More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config

    See Also:
    Serialized Form
    • Constructor Detail

      • APIServerConfig

        public APIServerConfig()
        No args constructor for use in serialization
    • Method Detail

      • getAuthorization

        public Authorization getAuthorization()
        APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.


        More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config

      • setAuthorization

        public void setAuthorization​(Authorization authorization)
        APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.


        More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config

      • getBasicAuth

        public BasicAuth getBasicAuth()
        APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.


        More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config

      • setBasicAuth

        public void setBasicAuth​(BasicAuth basicAuth)
        APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.


        More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config

      • getBearerToken

        public String getBearerToken()
        *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.

      • setBearerToken

        public void setBearerToken​(String 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.

      • getBearerTokenFile

        public String getBearerTokenFile()
        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`.

      • setBearerTokenFile

        public void setBearerTokenFile​(String 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`.

      • getHost

        public String getHost()
        Kubernetes API address consisting of a hostname or IP address followed by an optional port number.
      • setHost

        public void setHost​(String host)
        Kubernetes API address consisting of a hostname or IP address followed by an optional port number.
      • getNoProxy

        public String getNoProxy()
        `noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying. IP and domain names can contain port numbers.


        It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.

      • setNoProxy

        public void setNoProxy​(String noProxy)
        `noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying. IP and domain names can contain port numbers.


        It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.

      • getProxyConnectHeader

        public Map<String,​List<io.fabric8.kubernetes.api.model.SecretKeySelector>> getProxyConnectHeader()
        ProxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.


        It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.

      • setProxyConnectHeader

        public void setProxyConnectHeader​(Map<String,​List<io.fabric8.kubernetes.api.model.SecretKeySelector>> proxyConnectHeader)
        ProxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.


        It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.

      • getProxyFromEnvironment

        public Boolean getProxyFromEnvironment()
        Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).


        It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.

      • setProxyFromEnvironment

        public void setProxyFromEnvironment​(Boolean proxyFromEnvironment)
        Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).


        It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.

      • getProxyUrl

        public String getProxyUrl()
        `proxyURL` defines the HTTP proxy server to use.
      • setProxyUrl

        public void setProxyUrl​(String proxyUrl)
        `proxyURL` defines the HTTP proxy server to use.
      • getTlsConfig

        public TLSConfig getTlsConfig()
        APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.


        More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config

      • setTlsConfig

        public void setTlsConfig​(TLSConfig tlsConfig)
        APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.


        More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)