71 lines
1.3 KiB
YAML
71 lines
1.3 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ldap-auth
|
|
labels:
|
|
app: ldap-auth
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ldap-auth
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ldap-auth
|
|
name: ldap-auth
|
|
spec:
|
|
containers:
|
|
- name: ldap-auth
|
|
image: linuxserver/ldap-auth
|
|
imagePullPolicy: Always
|
|
---
|
|
#https://stackoverflow.com/questions/51149921/how-to-authenticate-nginx-with-ldap
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: ldap-auth
|
|
spec:
|
|
selector:
|
|
app: ldap-auth
|
|
ports:
|
|
- port: 80
|
|
targetPort: 9000
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: ldap-auth-internal
|
|
spec:
|
|
selector:
|
|
app: ldap-auth
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8888
|
|
---
|
|
# apiVersion: networking.k8s.io/v1
|
|
# kind: Ingress
|
|
# metadata:
|
|
# name: ldap-auth-ingress
|
|
# annotations:
|
|
# spec:
|
|
# ingressClassName: {{ .Values.homey.ingress_class }}
|
|
# tls:
|
|
# - hosts:
|
|
# - auth.{{ .Values.homey.url }}
|
|
# secretName: {{ .Values.homey.certname }}
|
|
# rules:
|
|
# - host: auth.{{ .Values.homey.url }}
|
|
# http:
|
|
# paths:
|
|
# - path: /
|
|
# pathType: Prefix
|
|
# backend:
|
|
# service:
|
|
# name: ldap-auth
|
|
# port:
|
|
# number: 80
|
|
# ---
|
|
|