The module has 14 alerts.
The module is enabled by default in the following bundles: Default, Managed.
The module is disabled by default in the Minimal bundle.
The module is configured using the ModuleConfig custom resource named upmeter (learn more about setting up Deckhouse…).
Example of the ModuleConfig/upmeter resource for configuring the module:
apiVersion: deckhouse.io/v1alpha1
kind: ModuleConfig
metadata:
name: upmeter
spec:
version: 2
enabled: true
settings: # <-- Module parameters from the "Parameters" section below.
Parameters
Schema version: 2
- objectauth
Required value
Configuration of authentication for Upmeter frontends.
- objectauth.status
Required value
Authentication configuration.
- array of stringsauth.status.allowedUserGroups
An array of user groups that can access Grafana & Prometheus.
This parameter is used if the
user-authnmodule is enabled or theexternalAuthenticationparameter is set.Caution! Note that you must add those groups to the appropriate field in the DexProvider config if this module is used together with the user-authn one.
- objectauth.status.externalAuthentication
Parameters to enable external authentication based on the NGINX Ingress external-auth mechanism that uses the NGINX auth_request module.
External authentication is enabled automatically if the user-authn module is enabled.
- stringauth.status.externalAuthentication.authSignInURL
URL to redirect the user for authentication (if the authentication service returned a non-200 HTTP response code).
- stringauth.status.externalAuthentication.authURL
URL of the authentication service. If the user is authenticated, the service should return an HTTP 200 response code.
- array of stringsauth.status.whitelistSourceRanges
An array if CIDRs that are allowed to authenticate.
Example:
whitelistSourceRanges: - 1.1.1.1/32
- objectauth.webui
Required value
Authentication configuration.
- array of stringsauth.webui.allowedUserGroups
An array of user groups that can access Grafana & Prometheus.
This parameter is used if the
user-authnmodule is enabled or theexternalAuthenticationparameter is set.Caution! Note that you must add those groups to the appropriate field in the DexProvider config if this module is used together with the user-authn one.
- objectauth.webui.externalAuthentication
Parameters to enable external authentication. Uses NGINX Ingress external-auth mechanism which is based on the the NGINX auth_request module.
- stringauth.webui.externalAuthentication.authSignInURL
URL to redirect the user for authentication (if the authentication service returned a non-200 HTTP response code).
- stringauth.webui.externalAuthentication.authURL
URL of the authentication service. If the user is authenticated, the service should return an HTTP 200 response code.
- stringauth.webui.password
Password for http authorization of the
adminuser. It is generated automatically, but you can change it.This parameter is used if the
externalAuthenticationis not enabled. - array of stringsauth.webui.whitelistSourceRanges
An array if CIDRs that are allowed to authenticate.
Example:
whitelistSourceRanges: - 1.1.1.1/32
- array of stringsdisabledProbes
Group names or specific probes from a group. You can view the names in the web UI.
For example:
disabledProbes: - "synthetic/api" # disable a specific probe - "synthetic/" # disable a group of probes - control-plane # / can be omittedDefault:
[] - objecthttps
What certificate type to use with webui and status apps.
This parameter completely overrides the
global.modules.httpssettings.Examples:
https: mode: CustomCertificate customCertificate: secretName: foobarhttps: mode: CertManager certManager: clusterIssuerName: letsencrypt- objecthttps.certManager
- stringhttps.certManager.clusterIssuerName
What ClusterIssuer to use for webui/status.
Currently,
letsencrypt,letsencrypt-staging,selfsignedare available. Also, you can define your own.Default:
"letsencrypt"
- objecthttps.customCertificate
- stringhttps.customCertificate.secretName
The name of the secret in the
d8-systemnamespace to use with webui/status.This secret must have the kubernetes.io/tls format.
Default:
"false"
- stringhttps.mode
The HTTPS usage mode:
Disabled— webui/status will work over HTTP only;CertManager— webui/status will use HTTPS and get a certificate from the clusterissuer defined in thecertManager.clusterIssuerNameparameter.CustomCertificate— webui/status will use HTTPS using the certificate from thed8-systemnamespace.OnlyInURI— webui/status will work over HTTP (thinking that there is an external HTTPS load balancer in front that terminates HTTPS traffic). All the links in theuser-authnwill be generated using the HTTPS scheme. Load balancer should provide a redirect from HTTP to HTTPS.
Default:
"Disabled"Allowed values:
Disabled,CertManager,CustomCertificate,OnlyInURI
- objectnodeSelector
Node selector for Upmeter server. The same as in the Pods’
spec.nodeSelectorparameter in Kubernetes.If the parameter is omitted or
false, it will be determined automatically.Example:
nodeSelector: disktype: ssd - objectsmokeMini
Configuration of authentication for smoke-mini.
- objectsmokeMini.auth
Required value
Authentication configuration.
- array of stringssmokeMini.auth.allowedUserGroups
An array of user groups that can access Grafana & Prometheus.
This parameter is used if the
user-authnmodule is enabled or theexternalAuthenticationparameter is set.Caution! Note that you must add those groups to the appropriate field in the DexProvider config if this module is used together with the user-authn one.
- objectsmokeMini.auth.externalAuthentication
Parameters to enable external authentication. Uses NGINX Ingress external-auth mechanism which is based on the the NGINX auth_request module.
- stringsmokeMini.auth.externalAuthentication.authSignInURL
URL to redirect the user for authentication (if the authentication service returned a non-200 HTTP response code).
- stringsmokeMini.auth.externalAuthentication.authURL
URL of the authentication service. If the user is authenticated, the service should return an HTTP 200 response code.
- stringsmokeMini.auth.password
Password for http authorization of the
adminuser. It is generated automatically, but you can change it.This parameter is used if the
externalAuthenticationis not enabled. - array of stringssmokeMini.auth.whitelistSourceRanges
An array if CIDRs that are allowed to authenticate.
Example:
whitelistSourceRanges: - 1.1.1.1/32
- objectsmokeMini.https
What certificate type to use with smoke-mini.
This parameter completely overrides the
global.modules.httpssettings.Examples:
https: mode: CustomCertificate customCertificate: secretName: foobarhttps: mode: CertManager certManager: clusterIssuerName: letsencrypt- objectsmokeMini.https.certManager
- stringsmokeMini.https.certManager.clusterIssuerName
What ClusterIssuer to use for smoke-mini.
Currently,
letsencrypt,letsencrypt-staging,selfsignedare available. Also, you can define your own.Default:
"letsencrypt"
- objectsmokeMini.https.customCertificate
- stringsmokeMini.https.customCertificate.secretName
The name of the secret in the
d8-systemnamespace to use with smoke-mini.This secret must have the kubernetes.io/tls format.
Default:
"false"
- stringsmokeMini.https.mode
The HTTPS usage mode:
Disabled— smoke-mini will work over HTTP only;CertManager— smoke-mini will use HTTPS and get a certificate from the clusterissuer defined in thecertManager.clusterIssuerNameparameter.CustomCertificate— smoke-mini will use HTTPS using the certificate from thed8-systemnamespace.OnlyInURI— smoke-mini will work over HTTP (thinking that there is an external HTTPS load balancer in front that terminates HTTPS traffic). All the links in theuser-authnwill be generated using the HTTPS scheme. Load balancer should provide a redirect from HTTP to HTTPS.
Default:
"Disabled"Allowed values:
Disabled,CertManager,CustomCertificate,OnlyInURI
- stringsmokeMini.ingressClass
The class of the Ingress controller used for the smoke-mini.
Optional. By default, the
modules.ingressClassglobal value is usedPattern:
^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ - smokeMini.storageClass
A StorageClass to use when checking the health of disks.
If omitted, the StorageClass of the existing PVC is used. If there is no PVC yet, either the global StorageClass or
global.discovery.defaultStorageClassis used, and if those are undefined, the emptyDir volume is used to store the data.global.discovery.defaultStorageClassis applied during module activation, changing default StorageClass in cluster won’t result in disk re-provisioning.Setting it to
falseforces the use of an emptyDir volume.Default:
falseExamples:
storageClass: falsestorageClass: default
- booleansmokeMiniDisabled
Disables smokeMini.
Disables “synthetic” probe group in Upmeter as well.
Default:
false - booleanstatusPageAuthDisabled
Disables authorization for the status domain.
Default:
false - storageClass
The name of the StorageClass to use. If omitted, the StorageClass of the existing PVC is used. If there is no PVC yet, either the global StorageClass or
global.discovery.defaultStorageClassis used, and if those are undefined, the emptyDir volume is used to store the data.global.discovery.defaultStorageClassis applied during module activation, changing default StorageClass in cluster won’t result in disk re-provisioning.CAUTION! Setting this value to one that differs from the current one (in the existing PVC) will result in disk re-provisioning and data loss.
Setting it to
falseforces the use of an emptyDir volume.Examples:
storageClass: falsestorageClass: default - array of objectstolerations
Node tolerations for Upmeter server. The same as in the Pods’
spec.tolerationsparameter in Kubernetes;If the parameter is omitted or
false, it will be determined automatically.Example:
tolerations: - key: key1 operator: Equal value: value1 effect: NoSchedule- stringtolerations.effect
- stringtolerations.key
- stringtolerations.operator
- integertolerations.tolerationSeconds
- stringtolerations.value
Authentication
user-authn module provides authentication by default. Also, externalAuthentication can be configured (see below). If these options are disabled, the module will use basic auth with the auto-generated password.
Use kubectl to see password:
kubectl -n d8-system exec svc/deckhouse-leader -c deckhouse -- deckhouse-controller module values upmeter -o json | jq '.upmeter.internal.auth.webui.password'
Delete the Secret to re-generate password:
kubectl -n d8-upmeter delete secret/basic-auth-webui
Use kubectl to see password for status page:
kubectl -n d8-system exec svc/deckhouse-leader -c deckhouse -- deckhouse-controller module values upmeter -o json | jq '.upmeter.internal.auth.status.password'
Delete the Secret to re-generate password for status page:
kubectl -n d8-upmeter delete secret/basic-auth-status
Note! The
auth.status.passwordandauth.webui.passwordparameters are deprecated.