This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathorientdb.yaml
76 lines (76 loc) · 1.54 KB
/
orientdb.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
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: orientdb-pv-claim
labels:
service: orientdb
type: pv-claim
annotations:
volume.beta.kubernetes.io/storage-class: ""
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: orientdbservice
labels:
service: orientdb
spec:
replicas: 1
template:
metadata:
name: orientdbservice
labels:
service: orientdb
type: container-deployment
spec:
containers:
- name: orientdbservice
image: orientdb:2.2.26
env:
- name: ORIENTDB_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: orientdb-pass
key: password.txt
ports:
- containerPort: 2424
name: port-binary
- containerPort: 2480
name: port-http
volumeMounts:
- mountPath: /orientdb/databases
name: orientdb-data
subPath: databases
- mountPath: /orientdb/backup
name: orientdb-data
subPath: backup
volumes:
- name: orientdb-data
persistentVolumeClaim:
claimName: orientdb-pv-claim
---
kind: Service
apiVersion: v1
metadata:
name: orientdbservice
labels:
service: orientdb
type: nodeport-service
spec:
type: NodePort
selector:
service: orientdb
type: container-deployment
ports:
- protocol: TCP
port: 2424
name: binary
- protocol: TCP
port: 2480
name: http