-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmattermost_pg.yaml
49 lines (49 loc) · 1.2 KB
/
mattermost_pg.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: mattermost-pg
namespace: mattermost
spec:
replicas: 1
selector:
matchLabels:
app: mattermost-pg
template:
metadata:
labels:
app: mattermost-pg
spec:
containers:
- name: postgres
image: mattermost/mattermost-prod-db:3
imagePullPolicy: Always
volumeMounts:
- name: localtime
mountPath: /etc/localtime
# Uncomment this for production use
# - name: postgres
# mountPath: /var/lib/postgresql/data
ports:
- containerPort: 5432
protocol: TCP
env:
- name: MM_USERNAME
valueFrom:
secretKeyRef:
name: postgres-creds
key: username
- name: MM_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-creds
key: password
volumes:
- name: localtime
hostPath:
path: /etc/localtime
# Google Cloud Platform Persistent Volume Disk
# - name: postgres
# gcePersistentDisk:
# pdName: mattermost-postgres
# fsType: "ext4"
restartPolicy: Always