forked from ObjectifLibre/k8s-ldap
-
Notifications
You must be signed in to change notification settings - Fork 40
/
loginapp-deploy.yml
41 lines (41 loc) · 878 Bytes
/
loginapp-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: loginapp
namespace: auth
spec:
replicas: 1
template:
metadata:
labels:
app: loginapp
spec:
containers:
- image: objectiflibre/login-app:latest
name: loginapp
ports:
- name: http
containerPort: 5555
volumeMounts:
- name: ca
mountPath: /etc/ssl/
- name: config
mountPath: /app/
- name: tls
mountPath: /etc/loginapp/tls
volumes:
- name: ca
configMap:
name: ca
items:
- key: ca.pem
path: ca.pem
- name: config
configMap:
name: loginapp
items:
- key: config.yaml
path: config.yaml
- name: tls
secret:
secretName: login.k8s.example.org.tls