-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.yaml
More file actions
44 lines (44 loc) · 911 Bytes
/
database.yaml
File metadata and controls
44 lines (44 loc) · 911 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
44
apiVersion: apps/v1
kind: Deployment
metadata:
name: database
namespace: plugin-jam-bot
spec:
template:
metadata:
labels:
app: database
spec:
containers:
- env:
- name: POSTGRES_DB
value: db
- name: POSTGRES_PASSWORD
value: changeme
- name: POSTGRES_USER
value: postgres
image: postgres:14.2
name: database
volumeMounts:
- mountPath: "var/lib/postgresql/data"
name: postgres-data
volumes:
- name: postgres-data
persistentVolumeClaim:
claimName: postgres-data
selector:
matchLabels:
app: database
---
apiVersion: v1
kind: Service
metadata:
name: database
namespace: plugin-jam-bot
spec:
selector:
app: database
ports:
- name: postgres
protocol: TCP
port: 5432