-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheventstoredb.deployment.yaml
107 lines (105 loc) · 2.45 KB
/
eventstoredb.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: v1
kind: PersistentVolumeClaim
metadata:
name: eventstore-volume-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: standard
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: eventstore-volume-logs
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: standard
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: eventstore-db
spec:
serviceName: eventstore-db
replicas: 1
selector:
matchLabels:
app: eventstore-db
template:
metadata:
labels:
app: eventstore-db
spec:
containers:
- name: eventstore-db
image: eventstore/eventstore:24.2.0-alpha-arm64v8
resources:
requests:
cpu: "5000m"
memory: "2Gi"
env:
- name: EVENTSTORE_CLUSTER_SIZE
value: "1"
- name: EVENTSTORE_RUN_PROJECTIONS
value: "All"
- name: EVENTSTORE_START_STANDARD_PROJECTIONS
value: "true"
- name: EVENTSTORE_HTTP_PORT
value: "2113"
- name: EVENTSTORE_INSECURE
value: "true"
- name: EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP
value: "true"
- name: EVENTSTORE_ALLOW_UNKNOWN_OPTIONS
value: "true"
ports:
- containerPort: 2113
name: http
protocol: TCP
- containerPort: 2112
name: gossip
protocol: TCP
- containerPort: 1113
name: grpc
protocol: TCP
volumeMounts:
- mountPath: /var/lib/eventstore
name: eventstore-volume-data
- mountPath: /var/log/eventstore
name: eventstore-volume-logs
volumes:
- name: eventstore-volume-data
persistentVolumeClaim:
claimName: eventstore-volume-data
- name: eventstore-volume-logs
persistentVolumeClaim:
claimName: eventstore-volume-logs
---
apiVersion: v1
kind: Service
metadata:
name: eventstore-db
spec:
selector:
app: eventstore-db
ports:
- protocol: TCP
name: http
port: 2113
targetPort: 2113
- protocol: TCP
name: gossip
port: 2112
targetPort: 2112
- protocol: TCP
name: grpc
port: 1113
targetPort: 1113
type: ClusterIP