Move authentik off longhorn
This commit is contained in:
parent
a0cca7f78b
commit
b52262792d
2 changed files with 35 additions and 8 deletions
|
@ -26,13 +26,42 @@
|
||||||
postgresql = {
|
postgresql = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
auth.password = "ref+sops://secrets.yml#/authentik/postgresql_password";
|
auth.password = "ref+sops://secrets.yml#/authentik/postgresql_password";
|
||||||
primary.persistence.existingClaim = "db";
|
primary = {
|
||||||
primary.extraEnvVarsSecret = "postgresql-env";
|
persistence.enabled = false;
|
||||||
|
extraEnvVarsSecret = "postgresql-env";
|
||||||
|
extraVolumes = [
|
||||||
|
{
|
||||||
|
name = "data";
|
||||||
|
|
||||||
|
hostPath = {
|
||||||
|
path = "/mnt/longhorn/persistent/volumes/authentik-db";
|
||||||
|
type = "Directory";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
redis = {
|
redis = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
master.persistence.existingClaim = "redis";
|
master = {
|
||||||
|
persistence.enabled = false;
|
||||||
|
extraVolumes = [
|
||||||
|
{
|
||||||
|
name = "authentik-redis";
|
||||||
|
hostPath = {
|
||||||
|
path = "/mnt/longhorn/persistent/volumes/authentik-redis";
|
||||||
|
type = "Directory";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
extraVolumeMounts = [
|
||||||
|
{
|
||||||
|
mountPath = "/data";
|
||||||
|
name = "authentik-redis";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -53,6 +82,9 @@
|
||||||
authentik-server.spec.template.spec.containers.server.env = env;
|
authentik-server.spec.template.spec.containers.server.env = env;
|
||||||
authentik-worker.spec.template.spec.containers.worker.env = env;
|
authentik-worker.spec.template.spec.containers.worker.env = env;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
statefulSets.authentik-postgresql.spec.template.spec.nodeName = "atlas";
|
||||||
|
statefulSets.authentik-redis-master.spec.template.spec.nodeName = "atlas";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -85,11 +85,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
lab = {
|
lab = {
|
||||||
longhorn.persistentVolume = {
|
|
||||||
authentik-db.storage = "10Gi";
|
|
||||||
authentik-redis.storage = "5Gi";
|
|
||||||
};
|
|
||||||
|
|
||||||
tailscaleIngresses.tailscale-longhorn = {
|
tailscaleIngresses.tailscale-longhorn = {
|
||||||
host = "longhorn";
|
host = "longhorn";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue