56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
|
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: {}
|