-
Notifications
You must be signed in to change notification settings - Fork 4
/
deployment.yaml
107 lines (107 loc) · 2.47 KB
/
deployment.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: apacheds
name: apacheds
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: apacheds
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: apacheds
spec:
containers:
- env:
- name: JAVA_OPTS
value: -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom
- name: fortriggerupdates
value: changeme
- name: APACHEDS_ROOT_PASSWORD
value: start123
- name: APACHEDS_TLS_KS_PWD
value: start123
- name: DN
value: dc=domain,dc=com
- name: OBJECT_CLASS
value: domain
- name: LDIF_FILE
value: /etc/apacheds/data.ldif
image: tremolosecurity/apacheds:latest
imagePullPolicy: Always
livenessProbe:
tcpSocket:
port: 10389
failureThreshold: 10
initialDelaySeconds: 120
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
name: apacheds
ports:
- containerPort: 10389
name: ldap
protocol: TCP
- containerPort: 10636
name: ldaps
protocol: TCP
readinessProbe:
tcpSocket:
port: 10389
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/apacheds
name: secret-volume
readOnly: true
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: secret-volume
secret:
defaultMode: 420
secretName: apacheds-secret
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: "2019-03-28T00:28:04Z"
labels:
app: apacheds
name: apacheds
spec:
ports:
- name: apacheds-ldap
port: 389
protocol: TCP
targetPort: 10389
- name: apacheds-ldaps
port: 636
protocol: TCP
targetPort: 10636
selector:
app: apacheds
type: NodePort
status:
loadBalancer: {}