1
0
Fork 0

hswaw/ldapweb: update to latest, add service user

Change-Id: I2cc20d35d0a141bc2ea1948942f9518c84e7ea41
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1727
Reviewed-by: informatic <informatic@hackerspace.pl>
master
radex 2023-10-13 22:11:43 +02:00
parent b17060a688
commit 401aa5e754
1 changed files with 10 additions and 3 deletions

View File

@ -8,7 +8,11 @@ local kube = import "../../kube/kube.libsonnet";
name: 'ldapweb',
namespace: 'ldapweb',
domain: 'profile.hackerspace.pl',
image: 'registry.k0.hswaw.net/radex/ldap-web:1695486391',
image: 'registry.k0.hswaw.net/radex/ldap-web:1697292240',
},
secrets:: {
admin_password: { secretKeyRef: { name: cfg.name, key: 'admin_password' } },
},
ns: kube.Namespace(cfg.namespace),
@ -22,8 +26,8 @@ local kube = import "../../kube/kube.libsonnet";
default: kube.Container("default") {
image: cfg.image,
resources: {
requests: { cpu: "25m", memory: "64Mi" },
limits: { cpu: "500m", memory: "128Mi" },
requests: { cpu: "25m", memory: "256Mi" },
limits: { cpu: "500m", memory: "512Mi" },
},
ports_: {
http: { containerPort: 8000 },
@ -31,6 +35,9 @@ local kube = import "../../kube/kube.libsonnet";
env_: {
LDAPWEB_ADMIN_GROUPS: 'ldap-admin,staff,zarzad',
LDAPWEB_ACTIVE_GROUPS: 'fatty,starving,potato',
LDAPWEB_ADMIN_DN: 'cn=ldapweb,ou=services,dc=hackerspace,dc=pl',
LDAPWEB_ADMIN_PASSWORD: top.secrets.admin_password,
LDAPWEB_AVATAR_CACHE_TIMEOUT: '1800',
}
},
},