forked from zachary-russell/mautic-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mautic.yml
55 lines (53 loc) · 1.17 KB
/
mautic.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
namespace: mautic
name: mautic
labels:
app: mautic
spec:
replicas: 1
selector:
matchLabels:
app: mautic
template:
metadata:
labels:
app: mautic
spec:
containers:
- image: us.gcr.io/gigalixir-152404/mautic
name: mautic
env:
- name: MAUTIC_RUN_CRON_JOBS
value: "true"
- name: MAUTIC_DB_HOST
value: mysql:3306
- name: MAUTIC_DB_PASSWORD
valueFrom:
secretKeyRef:
name: mysql
key: password
ports:
- containerPort: 80
name: mautic
volumeMounts:
- name: mautic-persistent-storage
mountPath: /var/www/html
volumes:
- name: mautic-persistent-storage
persistentVolumeClaim:
claimName: mautic-pv-claim
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mautic-pv-claim
namespace: mautic
spec:
# storageClassName: us-central-1a # see storage_class.yaml
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi