-
Notifications
You must be signed in to change notification settings - Fork 2
/
statefulset.yaml
46 lines (46 loc) · 1.08 KB
/
statefulset.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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: geonetwork
spec:
selector:
matchLabels:
app: geonetwork
serviceName: "geonetwork"
replicas: 1
template:
metadata:
labels:
app: geonetwork
spec:
terminationGracePeriodSeconds: 10
containers:
- name: geonetwork
image: geonetwork:4.2.2
env:
- name: 'ES_HOST'
value: 'geonetwork-es-http.geonetwork.svc.cluster.local'
- name: 'ES_PROTOCOL'
value: 'http'
- name: 'ES_USERNAME'
value: 'elastic'
- name: 'ES_PASSWORD'
valueFrom:
secretKeyRef:
name: geonetwork-es-elastic-user
key: elastic
ports:
- containerPort: 8080
name: geonetwork
volumeMounts:
- name: geonetwork-data
mountPath: /var/lib/geonetwork_data
volumeClaimTemplates:
- metadata:
name: geonetwork-data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "local-path"
resources:
requests:
storage: 5Gi