-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtorq-postgres.yaml
More file actions
43 lines (43 loc) · 996 Bytes
/
torq-postgres.yaml
File metadata and controls
43 lines (43 loc) · 996 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: torq-timescaledb-deployment
spec:
replicas: 1
selector:
matchLabels:
app: torq-timescaledb-app
template:
metadata:
labels:
app: torq-timescaledb-app
spec:
containers:
- name: torq-timescaledb
image: timescale/timescaledb:latest-pg14
imagePullPolicy: "IfNotPresent"
resources:
requests:
memory: "10G"
ports:
- containerPort: 5432
envFrom:
- configMapRef:
name: torq-timescaledb-config
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: torqtimescaledb
volumes:
- name: torqtimescaledb
persistentVolumeClaim:
claimName: torq-timescaledb-pv-claim
---
apiVersion: v1
kind: Service
metadata:
name: torq-timescaledb-service
spec:
selector:
app: torq-timescaledb-app
ports:
- port: 5432