The kubernetes integration with automatically deploy outposts on any Kubernetes Cluster.
This integration has the advantage over manual deployments of automatic updates (whenever authentik is updated, it updates the outposts), and authentik can (in a future version) automatically rotate the token that the outpost uses to communicate with the core authentik server.
This integration creates the following objects:
- Deployment for the outpost container
- Secret to store the token
- Prometheus ServiceMonitor (if the Prometheus Operator is installed in the target cluster)
- Ingress (only Proxy outposts)
- Traefik Middleware (only Proxy outposts with forward auth enabled)
The following outpost settings are used:
object_naming_template: Configures how the container is called
container_image: Optionally overwrites the standard container image (see Configuration to configure the global default)
kubernetes_replicas: Replica count for the deployment of the outpost
kubernetes_namespace: Namespace to deploy in, defaults to the same namespace authentik is deployed in (if available)
kubernetes_ingress_annotations: Any additional annotations to add to the ingress object, for example cert-manager
kubernetes_ingress_secret_name: Name of the secret that is used for TLS connections
kubernetes_service_type: Service kind created, can be set to LoadBalancer for LDAP outposts for example
kubernetes_disabled_components: Disable any components of the kubernetes integration, can be any of
- 'prometheus servicemonitor'
- 'traefik middleware'
kubernetes_image_pull_secrets: If the above docker image is in a private repository, use these secrets to pull.
NOTE: The secret must be created manually in the namespace first.
To add a remote cluster, you can simply install this helm chart in the target cluster and namespace: https://artifacthub.io/packages/helm/goauthentik/authentik-remote-cluster
After installation, the helm chart outputs an example kubeconfig file, that you can enter in authentik to connect to the cluster.