mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-10 04:49:19 -08:00
Syncing goliath configs
This commit is contained in:
parent
f1eb1f6620
commit
ba6ca38613
19 changed files with 225 additions and 94 deletions
75
cluster/authentik.tf
Normal file
75
cluster/authentik.tf
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
variable "authentik_postgresql_password" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "authentik_secret_key" {
|
||||
type = string
|
||||
}
|
||||
|
||||
resource "helm_release" "authentik" {
|
||||
depends_on = [
|
||||
helm_release.local_path_provisioner
|
||||
]
|
||||
|
||||
name = "authentik"
|
||||
repository = "https://charts.goauthentik.io"
|
||||
chart = "authentik"
|
||||
create_namespace = true
|
||||
namespace = "authentik"
|
||||
|
||||
timeout = var.helm_timeout
|
||||
cleanup_on_fail = true
|
||||
force_update = true
|
||||
|
||||
values = [
|
||||
yamlencode({
|
||||
authentik = {
|
||||
secret_key = var.authentik_secret_key
|
||||
error_reporting = {
|
||||
enabled = true
|
||||
}
|
||||
postgresql = {
|
||||
password = var.authentik_postgresql_password
|
||||
}
|
||||
}
|
||||
redis = {
|
||||
enabled = true
|
||||
master = {
|
||||
persistence = {
|
||||
enabled = true
|
||||
storageClass = "local-path"
|
||||
accessModes = [
|
||||
"ReadWriteOnce"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
postgresql = {
|
||||
enabled = true
|
||||
password = var.authentik_postgresql_password
|
||||
postgresqlPassword = var.authentik_postgresql_password
|
||||
persistence = {
|
||||
enabled = true
|
||||
storageClass = "local-path"
|
||||
accessModes = [
|
||||
"ReadWriteOnce"
|
||||
]
|
||||
}
|
||||
}
|
||||
ingress = {
|
||||
enabled = true
|
||||
hosts = [
|
||||
{
|
||||
host = "auth.inskip.me"
|
||||
paths = [
|
||||
{
|
||||
path = "/"
|
||||
pathType = "Prefix"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue