testerabc revised this gist . Go to revision
1 file changed, 66 insertions
gistfile1.yaml(file created)
@@ -0,0 +1,66 @@ | |||
1 | + | apiVersion: v1 | |
2 | + | kind: PersistentVolumeClaim | |
3 | + | metadata: | |
4 | + | name: firefly-upload | |
5 | + | namespace: time-emoji-services | |
6 | + | spec: | |
7 | + | accessModes: | |
8 | + | - ReadWriteMany | |
9 | + | resources: | |
10 | + | requests: | |
11 | + | storage: 15Gi | |
12 | + | storageClassName: main | |
13 | + | --- | |
14 | + | apiVersion: apps/v1 | |
15 | + | kind: Deployment | |
16 | + | metadata: | |
17 | + | name: firefly | |
18 | + | namespace: time-emoji-services | |
19 | + | spec: | |
20 | + | selector: | |
21 | + | matchLabels: | |
22 | + | app: firefly | |
23 | + | strategy: | |
24 | + | type: Recreate | |
25 | + | template: | |
26 | + | metadata: | |
27 | + | labels: | |
28 | + | app: firefly | |
29 | + | spec: | |
30 | + | volumes: | |
31 | + | - name: upload | |
32 | + | persistentVolumeClaim: | |
33 | + | claimName: firefly-upload | |
34 | + | containers: | |
35 | + | - image: fireflyiii/core:version-6.0.18 | |
36 | + | name: firefly-iii | |
37 | + | imagePullPolicy: Always | |
38 | + | env: | |
39 | + | - name: APP_ENV | |
40 | + | value: local | |
41 | + | - name: APP_KEY | |
42 | + | valueFrom: | |
43 | + | secretKeyRef: | |
44 | + | name: firefly-auth | |
45 | + | key: appKey | |
46 | + | - name: DB_HOST | |
47 | + | value: production-db | |
48 | + | - name: DB_CONNECTION | |
49 | + | value: pgsql | |
50 | + | - name: DB_DATABASE | |
51 | + | value: firefly | |
52 | + | - name: DB_USERNAME | |
53 | + | value: firefly | |
54 | + | - name: DB_PASSWORD | |
55 | + | valueFrom: | |
56 | + | secretKeyRef: | |
57 | + | name: firefly-auth | |
58 | + | key: dbPassword | |
59 | + | - name: TRUSTED_PROXIES | |
60 | + | value: "**" | |
61 | + | volumeMounts: | |
62 | + | - mountPath: /var/www/html/storage/upload | |
63 | + | name: upload | |
64 | + | ports: | |
65 | + | - containerPort: 8080 | |
66 | + | name: web-client |
Newer
Older