-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathphpldapadmin.yaml
42 lines (42 loc) · 1.02 KB
/
phpldapadmin.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
apiVersion: v1
kind: Service
metadata:
name: {{.Release.Name}}-admin
spec:
{{- if .Values.PhpLdapAdmin.NodePort }}
type: NodePort
{{- end }}
ports:
- port: 80
targetPort: 80
{{- if .Values.PhpLdapAdmin.NodePort }}
nodePort: 31080
{{- end }}
selector:
app: {{.Release.Name}}-admin
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{.Release.Name}}-admin
spec:
replicas: {{.Values.OpenLdap.Replicas}}
selector:
matchLabels:
app: {{.Release.Name}}-admin
template:
metadata:
labels:
app: {{.Release.Name}}-admin
spec:
containers:
- name: {{.Release.Name}}-admin
image: {{.Values.PhpLdapAdmin.Image}}:{{.Values.PhpLdapAdmin.ImageTag}}
imagePullPolicy: {{.Values.PhpLdapAdmin.ImagePullPolicy}}
ports:
- containerPort: 80
env:
- name: PHPLDAPADMIN_HTTPS
value: "{{.Values.OpenLdap.Https}}"
- name: PHPLDAPADMIN_LDAP_HOSTS
value: "{{.Values.PhpLdapAdmin.LdapEndpoint | default .Release.Name}}"