feat: Added lldap
Some checks failed
kustomization/flux-system/1498c208 build failed
Some checks failed
kustomization/flux-system/1498c208 build failed
This commit is contained in:
10
apps/lldap/base/cluster.yaml
Normal file
10
apps/lldap/base/cluster.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: db
|
||||
namespace: lldap
|
||||
# TODO: Add labels?
|
||||
spec:
|
||||
storage:
|
||||
size: 8Gi
|
||||
storageClass: local-path
|
||||
70
apps/lldap/base/deployment.yaml
Normal file
70
apps/lldap/base/deployment.yaml
Normal file
@@ -0,0 +1,70 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: lldap
|
||||
namespace: lldap
|
||||
labels:
|
||||
app.kubernetes.io/name: lldap
|
||||
app.kubernetes.io/instance: lldap
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: lldap
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: lldap
|
||||
app.kubernetes.io/instance: lldap
|
||||
spec:
|
||||
topologySpreadConstraints:
|
||||
- maxSkew: 1
|
||||
topologyKey: kubernetes.io/hostname
|
||||
whenUnsatisfiable: DoNotSchedule
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: lldap
|
||||
app.kubernetes.io/instance: lldap
|
||||
containers:
|
||||
- name: lldap
|
||||
image: lldap/lldap:2025-12-12-alpine-rootless
|
||||
env:
|
||||
- name: UID
|
||||
value: "1001"
|
||||
- name: GID
|
||||
value: "1001"
|
||||
- name: LLDAP_LDAP_BASE_DN
|
||||
value: dc=huizinga,dc=dev
|
||||
- name: LLDAP_LDAP_USER_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: credentials
|
||||
key: admin-pass
|
||||
- name: LLDAP_KEY_SEED
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: credentials
|
||||
key: key-seed
|
||||
- name: LLDAP_JWT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: credentials
|
||||
key: jwt-secret
|
||||
- name: LLDAP_DATABASE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: postgres-app
|
||||
key: uri
|
||||
- name: TZ
|
||||
value: CET
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /app/lldap
|
||||
- healthcheck
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 30
|
||||
ports:
|
||||
- name: ldap
|
||||
containerPort: 3890
|
||||
- name: web
|
||||
containerPort: 17170
|
||||
6
apps/lldap/base/kustomization.yaml
Normal file
6
apps/lldap/base/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
4
apps/lldap/base/namespace.yaml
Normal file
4
apps/lldap/base/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: lldap
|
||||
19
apps/lldap/base/service.yaml
Normal file
19
apps/lldap/base/service.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: lldap
|
||||
namespace: lldap
|
||||
labels:
|
||||
app.kubernetes.io/name: lldap
|
||||
app.kubernetes.io/instance: lldap
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: lldap
|
||||
app.kubernetes.io/instance: lldap
|
||||
ports:
|
||||
- name: ldap
|
||||
port: 3890
|
||||
targetPort: ldap
|
||||
- name: web
|
||||
port: 17170
|
||||
targetPort: web
|
||||
Reference in New Issue
Block a user