fix: use hydra-ldap and olm operator to fix example
This commit is contained in:
55
examples/authenticated-app/resources/glauth-ldap.yaml
Normal file
55
examples/authenticated-app/resources/glauth-ldap.yaml
Normal file
@ -0,0 +1,55 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: glauth-ldap
|
||||
name: glauth-ldap
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: glauth-ldap
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: glauth-ldap
|
||||
spec:
|
||||
containers:
|
||||
- image: glauth/glauth:v2.3.2
|
||||
name: glauth-ldap
|
||||
ports:
|
||||
- containerPort: 3893
|
||||
name: ldap
|
||||
- containerPort: 3894
|
||||
name: ldaps
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- name: glauth-ldap-conf
|
||||
mountPath: /app/config/config.cfg
|
||||
subPath: glauth.conf
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: glauth-ldap-conf
|
||||
configMap:
|
||||
name: glauth-ldap-conf
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: glauth-ldap
|
||||
name: glauth-ldap
|
||||
spec:
|
||||
ports:
|
||||
- name: ldap
|
||||
port: 389
|
||||
targetPort: ldap
|
||||
- name: ldaps
|
||||
port: 636
|
||||
targetPort: ldaps
|
||||
selector:
|
||||
app.kubernetes.io/name: glauth-ldap
|
||||
status:
|
||||
loadBalancer: {}
|
Reference in New Issue
Block a user