Class APIServerConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.APIServerConfig
-
- All Implemented Interfaces:
Editable<APIServerConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class APIServerConfig extends Object implements Editable<APIServerConfigBuilder>, 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 Summary
Constructors Constructor Description APIServerConfig()No args constructor for use in serializationAPIServerConfig(Authorization authorization, BasicAuth basicAuth, String bearerToken, String bearerTokenFile, String host, String noProxy, Map<String,List<SecretKeySelector>> proxyConnectHeader, Boolean proxyFromEnvironment, String proxyUrl, TLSConfig tlsConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description APIServerConfigBuilderedit()Map<String,Object>getAdditionalProperties()AuthorizationgetAuthorization()APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.BasicAuthgetBasicAuth()APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.StringgetBearerToken()bearerToken is deprecated: this will be removed in a future release.StringgetBearerTokenFile()bearerTokenFile defines the file to read bearer token for accessing apiserver.StringgetHost()host defines the Kubernetes API address consisting of a hostname or IP address followed by an optional port number.StringgetNoProxy()noProxy defines a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying.Map<String,List<SecretKeySelector>>getProxyConnectHeader()proxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.BooleangetProxyFromEnvironment()proxyFromEnvironment defines whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).StringgetProxyUrl()proxyUrl defines the HTTP proxy server to use.TLSConfiggetTlsConfig()APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAuthorization(Authorization authorization)APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.voidsetBasicAuth(BasicAuth basicAuth)APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.voidsetBearerToken(String bearerToken)bearerToken is deprecated: this will be removed in a future release.voidsetBearerTokenFile(String bearerTokenFile)bearerTokenFile defines the file to read bearer token for accessing apiserver.voidsetHost(String host)host defines the Kubernetes API address consisting of a hostname or IP address followed by an optional port number.voidsetNoProxy(String noProxy)noProxy defines a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying.voidsetProxyConnectHeader(Map<String,List<SecretKeySelector>> proxyConnectHeader)proxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.voidsetProxyFromEnvironment(Boolean proxyFromEnvironment)proxyFromEnvironment defines whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).voidsetProxyUrl(String proxyUrl)proxyUrl defines the HTTP proxy server to use.voidsetTlsConfig(TLSConfig tlsConfig)APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.APIServerConfigBuildertoBuilder()
-
-
-
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()
bearerToken is deprecated: this will be removed in a future release.*Warning: this field shouldn't be used because the token value appears
in clear-text. Prefer using `authorization`.*
-
setBearerToken
public void setBearerToken(String bearerToken)
bearerToken is deprecated: this will be removed in a future release.*Warning: this field shouldn't be used because the token value appears
in clear-text. Prefer using `authorization`.*
-
getBearerTokenFile
public String getBearerTokenFile()
bearerTokenFile defines the 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)
bearerTokenFile defines the 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()
host defines the Kubernetes API address consisting of a hostname or IP address followed by an optional port number.
-
setHost
public void setHost(String host)
host defines the Kubernetes API address consisting of a hostname or IP address followed by an optional port number.
-
getNoProxy
public String getNoProxy()
noProxy defines 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 defines 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<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<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()
proxyFromEnvironment defines 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)
proxyFromEnvironment defines 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
-
edit
public APIServerConfigBuilder edit()
- Specified by:
editin interfaceEditable<APIServerConfigBuilder>
-
toBuilder
public APIServerConfigBuilder toBuilder()
-
-