469 lines
10 KiB
HCL
469 lines
10 KiB
HCL
kubernetes = {
|
|
screeps = {
|
|
enabled = false
|
|
name = "screeps-server"
|
|
pvc_size = "1Gi"
|
|
mount_path = "/screeps"
|
|
image = "screepers/screeps-launcher"
|
|
service_port = 21025
|
|
environment_variables = { t1est = "tset" }
|
|
requirements = {
|
|
limits-cpu = "900m"
|
|
limits-memory = "600Mi"
|
|
requests-cpu = "300m"
|
|
requests-memory = "400Mi"
|
|
}
|
|
pvc = {
|
|
first = {
|
|
name = "onitama"
|
|
pvc_size = "1Mi"
|
|
mount_path = "/code"
|
|
} }
|
|
}
|
|
|
|
onitama = {
|
|
enabled = true
|
|
namespace = "onitama"
|
|
image = "ghcr.io/jackadamson/onitama:latest"
|
|
service_port = 8080
|
|
requirements = {
|
|
limits-cpu = "50m"
|
|
limits-memory = "50Mi"
|
|
requests-cpu = "25m"
|
|
requests-memory = "25Mi"
|
|
}
|
|
pvc = {
|
|
first = {
|
|
name = "nginx"
|
|
pvc = true
|
|
pvc_size = "1Mi"
|
|
mount_path = "/code"
|
|
}
|
|
}
|
|
|
|
# secret_ref = ["secret1", "secret2"]
|
|
environment = {
|
|
PORT = {
|
|
value = "80"
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
nginx = {
|
|
enabled = false
|
|
namespace = "testnginx"
|
|
#image = "localhost:31795/django-python"
|
|
image = "nginx:latest"
|
|
database = {
|
|
# "image" = "mysql:latest"
|
|
}
|
|
#pvc_size = "10Mi"
|
|
# mount_path = "/code"
|
|
# service_port = 80
|
|
# liveness_http_get = 80
|
|
# requirements = {
|
|
# limits-cpu = "200m"
|
|
# limits-memory = "200Mi"
|
|
# requests-cpu = "50m"
|
|
# requests-memory = "50Mi"
|
|
# }
|
|
# environment_variables = [{
|
|
# "name" : "NGINX_PORT",
|
|
# "value" : "80"
|
|
# name = "NGINX-second_PORT" , value = "81"
|
|
# }]
|
|
environment_variables = { t1est = "tset", a2nother = "rehtona" }
|
|
# environment_variables = { t1est = "tset" }
|
|
# environment_variables = {
|
|
# name = "NGINX_PORT" , value = "80"
|
|
# name = "NGINX-second_PORT" , value = "81"
|
|
# }
|
|
pvc = {
|
|
first = {
|
|
name = "nginx"
|
|
pvc_size = "1Mi"
|
|
mount_path = "/code"
|
|
}
|
|
}
|
|
}
|
|
|
|
redis = {
|
|
enabled = false
|
|
image = "redis"
|
|
service_port = 6379
|
|
liveness_tcp_socket = 6379
|
|
# environment_variables = [{
|
|
# "name" : "redis_PORT",
|
|
# "value" : "6379"
|
|
# }]
|
|
}
|
|
|
|
vulcan = {
|
|
enabled = false
|
|
image = "localhost:31795/vulcan-frontend:latest"
|
|
service_port = 80
|
|
requirements = {
|
|
limits-cpu = "50m"
|
|
limits-memory = "50Mi"
|
|
requests-cpu = "50m"
|
|
requests-memory = "50Mi"
|
|
}
|
|
}
|
|
bwdownload = {
|
|
enabled = false
|
|
namespace = "backup-bitwarden"
|
|
image = "alpine"
|
|
requirements = {
|
|
limits-cpu = "50m"
|
|
limits-memory = "50Mi"
|
|
requests-cpu = "50m"
|
|
requests-memory = "50Mi"
|
|
}
|
|
}
|
|
gogs = {
|
|
enabled = false
|
|
image = "gogs/gogs"
|
|
requirements = {
|
|
limits-cpu = "50m"
|
|
limits-memory = "50Mi"
|
|
requests-cpu = "50m"
|
|
requests-memory = "50Mi"
|
|
}
|
|
service_port = 3000
|
|
pvc_size = "1Gi"
|
|
mount_path = "/data"
|
|
}
|
|
gitea = {
|
|
enabled = false
|
|
image = "gitea/gitea:1.22.3"
|
|
requirements = {
|
|
limits-cpu = "50m"
|
|
limits-memory = "50Mi"
|
|
requests-cpu = "50m"
|
|
requests-memory = "50Mi"
|
|
}
|
|
service_port = 3000
|
|
pvc_size = "1Gi"
|
|
mount_path = "/data"
|
|
}
|
|
|
|
notmuch = {
|
|
enabled = false
|
|
image = "kalbasit/notmuch"
|
|
service_port = 80
|
|
}
|
|
|
|
spider = {
|
|
enabled = false
|
|
image = "iredmail/spider:latest"
|
|
requirements = {
|
|
limits-cpu = "200m"
|
|
limits-memory = "500Mi"
|
|
requests-cpu = "50m"
|
|
requests-memory = "50Mi"
|
|
}
|
|
service_port = 8080
|
|
pvc_size = "100Mi"
|
|
mount_path = "/opt/spider"
|
|
}
|
|
|
|
piler = {
|
|
enabled = false
|
|
image = "sutoj/piler:1.4.5"
|
|
requirements = {
|
|
limits-cpu = "200m"
|
|
limits-memory = "500Mi"
|
|
requests-cpu = "50m"
|
|
requests-memory = "50Mi"
|
|
}
|
|
service_port = 80
|
|
}
|
|
|
|
nextcloud-web = {
|
|
namespace = "nextcloud-terraform"
|
|
enabled = false
|
|
image = "nextcloud:29.0.3-apache"
|
|
service_port = 80
|
|
requirements = {
|
|
limits-cpu = "1000m"
|
|
limits-memory = "500Mi"
|
|
requests-cpu = "500m"
|
|
requests-memory = "25Mi"
|
|
}
|
|
environment = {
|
|
POSTGRES_HOST = {
|
|
value = "db"
|
|
}
|
|
}
|
|
pvc = {
|
|
nextcloud-webserver = {
|
|
name = "nextcloud-webserver"
|
|
pvc_size = "2Mi"
|
|
mount_path = "/var/www/html"
|
|
}
|
|
}
|
|
}
|
|
|
|
nextcloud-db = {
|
|
namespace = "nextcloud-terraform"
|
|
enabled = false
|
|
image = "docker.io/library/postgres:14"
|
|
service_port = 5432
|
|
requirements = {
|
|
limits-cpu = "1000m"
|
|
limits-memory = "500Mi"
|
|
requests-cpu = "500m"
|
|
requests-memory = "25Mi"
|
|
}
|
|
environment = {
|
|
POSTGRES_HOST = {
|
|
value = "db"
|
|
}
|
|
}
|
|
|
|
environment = {
|
|
POSTGRES_DB = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "nextcloud-credentials"
|
|
key = "POSTGRES_DB"
|
|
}
|
|
}
|
|
}
|
|
POSTGRES_USER = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "nextcloud-credentials"
|
|
key = "POSTGRES_USER"
|
|
}
|
|
}
|
|
}
|
|
POSTGRES_PASSWORD = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "nextcloud-credentials"
|
|
key = "POSTGRES_PASSWORD"
|
|
}
|
|
}
|
|
}
|
|
PORT = {
|
|
value = "80"
|
|
}
|
|
}
|
|
|
|
pvc = {
|
|
nextcloud-database = {
|
|
name = "nextcloud-database"
|
|
pvc_size = "2Mi"
|
|
mount_path = "/var/lib/postgresql/data"
|
|
}
|
|
}
|
|
}
|
|
|
|
paper = {
|
|
enabled = true
|
|
namespace = "paper"
|
|
image = "ghcr.io/paperless-ngx/paperless-ngx:latest"
|
|
service_port = 8000
|
|
database = {
|
|
image = "docker.io/library/postgres:15" }
|
|
redis = {
|
|
image = "docker.io/library/redis:7" }
|
|
requirements = {
|
|
limits-cpu = "800Mi"
|
|
limits-memory = "800Mi"
|
|
requests-cpu = "800Mi"
|
|
requests-memory = "800Mi"
|
|
}
|
|
environment = {
|
|
POSTGRES_DB = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "mysecret"
|
|
key = "POSTGRES_DB"
|
|
}
|
|
}
|
|
}
|
|
POSTGRES_USER = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "mysecret"
|
|
key = "POSTGRES_USER"
|
|
}
|
|
}
|
|
}
|
|
POSTGRES_PASSWORD = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "mysecret"
|
|
key = "POSTGRES_PASSWORD"
|
|
}
|
|
}
|
|
}
|
|
PAPERLESS_URL = {
|
|
value = "https://paper.tryton.geeraert.eu"
|
|
}
|
|
PAPERLESS_DBHOST = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "mysecret"
|
|
key = "POSTGRES_HOST"
|
|
}
|
|
}
|
|
}
|
|
|
|
PAPERLESS_REDIS = {
|
|
value = "redis://paper-redis-svc:6379"
|
|
}
|
|
|
|
PAPERLESS_ADMIN_USER = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "mysecret"
|
|
key = "POSTGRES_USER"
|
|
}
|
|
}
|
|
}
|
|
PAPERLESS_ADMIN_PASSWORD = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "mysecret"
|
|
key = "POSTGRES_PASSWORD"
|
|
}
|
|
}
|
|
}
|
|
|
|
# PAPERLESS_ADMIN_USER = {
|
|
# value = "admin"
|
|
# }
|
|
# PAPERLESS_ADMIN_PASSWORD = {
|
|
# value = "admin"
|
|
# }
|
|
|
|
PAPERLESS_OCR_USER_ARGS = {
|
|
value = "{'invalidate_digital_signatures': true}"
|
|
}
|
|
}
|
|
pvc = {
|
|
paperless-data = {
|
|
pvc = true
|
|
name = "paperless-data"
|
|
pvc_size = "2Mi"
|
|
mount_path = "/usr/src/paperless/data"
|
|
}
|
|
media = {
|
|
pvc = false
|
|
config_map = true
|
|
name = "gitea-runner-configfile"
|
|
pvc_size = "2Mi"
|
|
mount_path = "/tmp/usr/src/paperless/media"
|
|
}
|
|
export = {
|
|
# pvc = true
|
|
host_path = "/tmp"
|
|
name = "export"
|
|
pvc_size = "2Mi"
|
|
mount_path = "/usr/src/paperless/export"
|
|
}
|
|
consume = {
|
|
pvc = true
|
|
name = "consume"
|
|
pvc_size = "2Mi"
|
|
mount_path = "/usr/src/paperless/consume"
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#}
|
|
|
|
|
|
next = {
|
|
enabled = false
|
|
namespace = "next"
|
|
image = "nextcloud:29.0.3-apache"
|
|
service_port = 80
|
|
secret = {
|
|
POSTGRES_DB = "nextcloud"
|
|
POSTGRES_PASSWORD = "nextcloud"
|
|
POSTGRES_USER = "nextcloud"
|
|
PI_USER_USERNAME = "pi"
|
|
PI_USER_PASSWORD = "test"
|
|
POSTGRES_HOST = "next-db-svc"
|
|
|
|
}
|
|
database = {
|
|
image = "docker.io/library/postgres:14" }
|
|
redis = {
|
|
image = "docker.io/library/redis:7" }
|
|
requirements = {
|
|
limits-cpu = "800Mi"
|
|
limits-memory = "800Mi"
|
|
requests-cpu = "800Mi"
|
|
requests-memory = "800Mi"
|
|
}
|
|
environment = {
|
|
POSTGRES_DB = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "nextcloud-credentials"
|
|
key = "POSTGRES_DB"
|
|
}
|
|
}
|
|
}
|
|
POSTGRES_USER = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "nextcloud-credentials"
|
|
key = "POSTGRES_USER"
|
|
}
|
|
}
|
|
}
|
|
POSTGRES_PASSWORD = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "nextcloud-credentials"
|
|
key = "POSTGRES_PASSWORD"
|
|
}
|
|
}
|
|
}
|
|
POSTGRES_HOST = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "nextcloud-credentials"
|
|
key = "POSTGRES_HOST"
|
|
}
|
|
}
|
|
}
|
|
|
|
REDIS_HOST = {
|
|
value = "redis://next-redis-svc:6379"
|
|
}
|
|
NEXTCLOUD_ADMIN_USER = {
|
|
value = "admin"
|
|
}
|
|
NEXTCLOUD_ADMIN_PASSWORD = {
|
|
value_from = {
|
|
secret_key_ref = {
|
|
name = "nextcloud-credentials"
|
|
key = "PI_USER_PASSWORD"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
pvc = {
|
|
nextcloud-webserver = {
|
|
name = "nextcloud-webserver"
|
|
pvc_size = "2Mi"
|
|
mount_path = "/var/www/html"
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|