2020-11-15 21:42:02 +00:00
---
title: Kubernetes installation
---
2021-06-13 12:30:44 +00:00
authentik is installed using a helm-chart.
2020-11-15 21:42:02 +00:00
2022-02-08 11:24:29 +00:00
To install authentik using the helm chart, generate a password for the database and the cache, using `pwgen -s 50 1` or `openssl rand -base64 36` .
2021-04-17 09:06:21 +00:00
Create a values.yaml file with a minimum of these settings:
```yaml
2021-05-21 17:02:05 +00:00
authentik:
2022-05-09 19:22:41 +00:00
secret_key: "PleaseGenerateA50CharKey"
# This sends anonymous usage-data, stack traces on errors and
# performance data to sentry.beryju.org, and is fully opt-in
error_reporting:
enabled: true
postgresql:
password: "ThisIsNotASecurePassword"
2021-05-21 17:02:05 +00:00
ingress:
2022-05-09 19:22:41 +00:00
enabled: true
hosts:
- host: authentik.domain.tld
paths:
- path: "/"
pathType: Prefix
2021-05-21 17:02:05 +00:00
2021-04-17 09:06:21 +00:00
postgresql:
2022-05-09 19:22:41 +00:00
enabled: true
postgresqlPassword: "ThisIsNotASecurePassword"
2021-04-17 09:06:21 +00:00
redis:
2022-05-09 19:22:41 +00:00
enabled: true
2021-04-17 09:06:21 +00:00
```
2021-05-08 14:25:11 +00:00
See all configurable values on [artifacthub ](https://artifacthub.io/packages/helm/goauthentik/authentik ).
2021-04-17 09:06:21 +00:00
Afterwards, run these commands to install authentik:
2020-11-23 19:50:19 +00:00
```
2021-05-09 15:32:14 +00:00
helm repo add authentik https://charts.goauthentik.io
2020-11-23 19:50:19 +00:00
helm repo update
2022-02-04 21:36:34 +00:00
helm upgrade --install authentik authentik/authentik -f values.yaml
2020-11-23 19:50:19 +00:00
```
2021-04-06 18:25:22 +00:00
This installation automatically applies database migrations on startup. After the installation is done, navigate to the `https://<ingress you've specified>/if/flow/initial-setup/` , to set a password for the akadmin user.
2020-11-15 21:42:02 +00:00
2021-12-13 17:57:13 +00:00
It is also recommended to configure global email credentials. These are used by authentik to notify you about alerts, configuration issues. They can also be used by [Email stages ](../flow/stages/email/ ) to send verification/recovery emails.