48 lines
974 B
YAML
48 lines
974 B
YAML
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: nginx-ldap-auth
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- name: nginx-ldap-auth
|
|
port: 5555
|
|
protocol: TCP
|
|
targetPort: 5555
|
|
selector:
|
|
app: nginx-ldap-auth
|
|
---
|
|
kind: Deployment
|
|
apiVersion: extensions/v1beta1
|
|
metadata:
|
|
name: nginx-ldap-auth
|
|
labels:
|
|
app: nginx-ldap-auth
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nginx-ldap-auth
|
|
spec:
|
|
containers:
|
|
- image: docker.io/tpimenta/nginx-ldap-auth:v1.0.3
|
|
name: nginx-ldap-auth
|
|
command:
|
|
- "nginx-ldap-auth"
|
|
- "--config"
|
|
- "/etc/nginx-ldap-auth/config.yaml"
|
|
ports:
|
|
- name: http
|
|
containerPort: 5555
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/nginx-ldap-auth
|
|
volumes:
|
|
- name: config
|
|
secret:
|
|
secretName: nginx-ldap-auth
|
|
items:
|
|
- key: config.yaml
|
|
path: config.yaml
|