Compare languages | The upmeter module: configuration

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.

По умолчанию используется модуль user-authn. Также можно настроить аутентификацию через externalAuthentication (см. ниже). Если эти варианты отключены, то модуль включит basic auth со сгенерированным паролем.

Use kubectl to see password:

Посмотреть сгенерированный пароль можно командой:

shell kubectl -n d8-system exec deploy/deckhouse – deckhouse-controller module values upmeter -o json | jq ‘.upmeter.internal.auth.webui.password’

shell kubectl -n d8-system exec deploy/deckhouse – deckhouse-controller module values upmeter -o json | jq ‘.upmeter.internal.auth.webui.password’

Delete the Secret to re-generate password:

Чтобы сгенерировать новый пароль, нужно удалить Secret:

shell kubectl -n d8-upmeter delete secret/basic-auth-webui

shell kubectl -n d8-upmeter delete secret/basic-auth-webui

Use kubectl to see password for status page:

Посмотреть сгенерированный пароль для страницы статуса можно командой:

shell kubectl -n d8-system exec deploy/deckhouse – deckhouse-controller module values upmeter -o json | jq ‘.upmeter.internal.auth.status.password’

shell kubectl -n d8-system exec deploy/deckhouse – deckhouse-controller module values upmeter -o json | jq ‘.upmeter.internal.auth.status.password’

Delete the Secret to re-generate password for status page:

Чтобы сгенерировать новый пароль для страницы статуса, нужно удалить секрет:

shell kubectl -n d8-upmeter delete secret/basic-auth-status

shell kubectl -n d8-upmeter delete secret/basic-auth-status

Note! The auth.status.password and auth.webui.password parameters are deprecated.

Внимание! Параметры auth.status.password и auth.webui.password больше не поддерживаются.