-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploymenttemplate-YugabyteDB.yml
123 lines (123 loc) · 3.73 KB
/
deploymenttemplate-YugabyteDB.yml
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels: {app: bexhoma, component: sut, configuration: default, experiment: default}
name: bexhoma-storage
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
storageClassName: shared
---
apiVersion: v1
kind: Service
metadata:
labels: {app: bexhoma, component: sut, configuration: default, experiment: default}
name: bexhoma-service
spec:
ports:
- {port: 9091, protocol: TCP, name: port-dbms, targetPort: 5432}
#- {port: 9091, protocol: TCP, name: port-dbms, targetPort: 5433}
- {port: 9300, protocol: TCP, name: port-monitoring, targetPort: 9300}
selector: {app: bexhoma, component: sut, configuration: default, experiment: default}
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels: {app: bexhoma, component: sut, configuration: default, experiment: default}
name: bexhoma-deployment-yugabytedb
spec:
replicas: 1
selector:
matchLabels: {app: bexhoma, component: sut, configuration: default, experiment: default}
template:
metadata:
labels: {app: bexhoma, component: sut, configuration: default, experiment: default}
spec:
automountServiceAccountToken: false
imagePullSecrets:
- {name: dockerhub}
nodeSelector:
tolerations:
- key: "nvidia.com/gpu"
effect: "NoSchedule"
containers:
- name: dbms
#image: yugabytedb/yugabyte:2.17.1.0-b439
image: postgres:15.0
env:
- name: POSTGRES_HOST_AUTH_METHOD
value: trust
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
ports:
- {containerPort: 5432}
#- {containerPort: 5433}
#env:
#command: ["bin/yugabyted", "start"]
#ports: #-p7000:7000 -p9000:9000 -p5433:5433 -p9042:9042\
#- {containerPort: 7000}
#- {containerPort: 9000}
#- {containerPort: 5433}
#- {containerPort: 9042}
resources:
limits: {cpu: 1000m, memory: 1Gi}
requests: {cpu: 1000m, memory: 1Gi}
#, ephemeral-storage: "1536Gi"}
volumeMounts:
- {mountPath: /data, name: benchmark-data-volume}
- {mountPath: /dev/shm, name: dshm}
- {mountPath: /var/lib/postgresql/data, name: benchmark-storage-volume}
- name: cadvisor
image: gcr.io/cadvisor/cadvisor:v0.47.0
args: ["--port", "9300", "--storage_duration", "20m0s", "--docker_only", "true", "--disable_metrics", "disk,network,tcp,advtcp,udp,sched,process,hugetlb", "--application_metrics_count_limit", "30", "--housekeeping_interval", "5s"]
ports:
- containerPort: 9300
#hostPort: 9300
name: http
protocol: TCP
resources:
requests:
cpu: 150m
memory: 200Mi
volumeMounts:
- name: rootfs
mountPath: /rootfs
readOnly: true
- name: var-run
mountPath: /var/run
readOnly: true
- name: sys
mountPath: /sys
readOnly: true
- name: docker
mountPath: /var/lib/docker
readOnly: true
- name: disk
mountPath: /dev/disk
readOnly: true
volumes:
- name: benchmark-data-volume
persistentVolumeClaim: {claimName: bexhoma-data}
- name: benchmark-storage-volume
persistentVolumeClaim: {claimName: bexhoma-storage}
- name: rootfs
hostPath:
path: /
- name: var-run
hostPath:
path: /var/run
- name: sys
hostPath:
path: /sys
- name: docker
hostPath:
path: /var/lib/docker
- name: disk
hostPath:
path: /dev/disk
- name: dshm
emptyDir:
medium: Memory