fix(lldap): add tmp-volume for bootstrapping

This commit is contained in:
Vegard Hagen
2025-01-25 16:43:05 +01:00
parent 5ae1a6d829
commit ee741467dd
5 changed files with 25 additions and 27 deletions

View File

@@ -39,26 +39,17 @@ spec:
name: lldap-credentials
key: LLDAP_LDAP_USER_PASS
volumeMounts:
- name: users
mountPath: /bootstrap/user-configs
readOnly: true
- name: tmp
mountPath: /tmp
- name: groups
mountPath: /bootstrap/group-configs
readOnly: true
- name: users
mountPath: /bootstrap/user-configs
readOnly: true
volumes:
- name: users
projected:
sources:
- secret:
name: lldap-config
items:
- key: users.json
path: users.json
- configMap:
name: users
items:
- key: test.json
path: test.json
- name: tmp
emptyDir: { }
- name: groups
projected:
sources:
@@ -67,3 +58,11 @@ spec:
items:
- key: groups.json
path: groups.json
- name: users
projected:
sources:
- secret:
name: lldap-config
items:
- key: users.json
path: users.json

View File

@@ -31,9 +31,9 @@ spec:
# spec:
# type: LoadBalancer
storage:
size: 1G
size: 2G
pvcTemplate:
storageClassName: proxmox-csi
volumeName: pv-lldap-postgres
volumeName: pv-lldap-database
accessModes:
- ReadWriteOnce

View File

@@ -25,6 +25,12 @@ configMapGenerator:
namespace: lldap
files:
- users/test.json
- users/more-users.json
- name: custom-schemas
namespace: lldap
files:
- group-schemas/group-application.json
- user-schemas/user-details.json
resources:
- ns.yaml

View File

@@ -1,7 +0,0 @@
{
"id": "test",
"email": "test-user@stonegarden.dev",
"firstName": "Test",
"lastName": "User",
"displayName": "Test User"
}

View File

@@ -132,9 +132,9 @@ module "volumes" {
node = "euclid"
size = "1G"
}
pv-lldap-postgres = {
pv-lldap-database = {
node = "euclid"
size = "1G"
size = "2G"
}
pv-keycloak-postgres = {
node = "euclid"