2020-02-29 07:43:59 +07:00
---
layout: default
title: Deployment - Kubernetes
parent: Deployment
nav_order: 3
---
# Deployment on Kubernetes
< p >
2021-06-06 12:53:28 +07:00
< img src = "../images/logos/kubernetes.png" width = "100" style = "padding-right: 10px" >
2020-02-29 07:43:59 +07:00
< / p >
2021-04-11 18:25:03 +07:00
## UNDER CONSTRUCTION
The following areas are actively being worked on for Kubernetes:
1. Detailed Documentaiton
2. [Helm Chart (v3) ](https://github.com/authelia/chartrepo )
3. Kustomize Deployment
4. Manifest Examples
2021-07-30 11:19:17 +07:00
Users are welcome to reach out directly by using any of our various [contact options ](../about-us.md#contact-options ).
2020-08-14 10:30:37 +07:00
2022-04-08 11:15:35 +07:00
### Important Notes
The following section has special notes regarding utilizing Authelia with Kubernetes.
1. Authelia (and all of your other applications) may receive an invalid remote IP if the service handling traffic to
the Kubernetes Ingress of your choice doesn't have the `externalTrafficPolicy` setting configured to `local` as per
the Kubernetes [preserving the client source ip] documentation.
2. Authelia's configuration management system conflicts with the `enableServiceLinks` option when it's set to `true`
which is the default. This shoudld be changed to `false` .
2021-12-17 05:11:36 +07:00
### NGINX Ingress Controller
If you use NGINX Ingress Controller you can protect an ingress with the following annotations.
The assumptions are that your public domain where authelia is running would be https://auth.mypublicdomain.com
and there would be a service called authelia with port 80 in the default namespace.
```yaml
annotations:
nginx.ingress.kubernetes.io/auth-response-headers: Remote-User,Remote-Name,Remote-Groups,Remote-Email
nginx.ingress.kubernetes.io/auth-signin: https://auth.mypublicdomain.com
nginx.ingress.kubernetes.io/auth-snippet: |
proxy_set_header X-Forwarded-Method $request_method;
nginx.ingress.kubernetes.io/auth-url: http://authelia.default.svc.cluster.local/api/verify
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header X-Forwarded-Method $request_method;
```
2020-08-14 10:30:37 +07:00
## FAQ
### RAM usage
If using file-based authentication, the argon2id provider will by default use 1GB of RAM for password generation. This means you should allow for at least this amount in your deployment/daemonset spec and have this much available on your node, alternatively you can [tweak the providers settings ](https://www.authelia.com/docs/configuration/authentication/file.html#memory ). Otherwise, your Authelia may OOM during login. See [here ](https://github.com/authelia/authelia/issues/1234#issuecomment-663910799 ) for more info.
2022-04-08 11:15:35 +07:00
[preserving the client source ip]: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip