-
Notifications
You must be signed in to change notification settings - Fork 3
/
cachet-deployment.yaml
101 lines (100 loc) · 3.29 KB
/
cachet-deployment.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
component: cachet
name: cachet
namespace: default
spec:
replicas: 1
selector:
matchLabels:
component: cachet
template:
metadata:
creationTimestamp: null
labels:
component: cachet
spec:
containers:
- env:
- name: APP_KEY
value : base64:zkC1AQuZdj8xqqIi4IIWkKrlPiw8QlfaRQAjxm9ZN8c=
#valueFrom:
# secretKeyRef:
# name: cachet-secret
# key: APP_KEY
- name: APP_LOG
value: errorlog
- name: APP_DEBUG
value: "false"
- name: DB_DRIVER
valueFrom:
secretKeyRef:
name: cachet-secret
key: DB_DRIVER
- name: DB_HOST
valueFrom:
secretKeyRef:
name: cachet-secret
key: DB_HOST
- name: DB_DATABASE
valueFrom:
secretKeyRef:
name: cachet-secret
key: DB_DATABASE
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: cachet-secret
key: DB_USERNAME
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: cachet-secret
key: DB_PASSWORD
- name: DB_PORT
value: "5432"
- name: DB_PREFIX
value: chq_
- name: DEBUG
value: "false"
- name: SESSION_DRIVER
value: file
- name: CACHE_DRIVER
value: database
- name: QUEUE_DRIVER
value: database
image: cachethq/docker:2.3.15
#image: cachethq/docker:latest
#========================================
# https://docs.cachethq.io/docs/base-url
# kubectl exec -it cachet-6555fd57c8-njvx2 /bin/bash -n default
# cd /var/www/html
# ## php artisan key:generate
# php artisan app:install
# Get key and set APP_ENV in pod
# APP_ENV=base64:base64:zkC1AQuZdj8xqqIi4IIWkKrlPiw8QlfaRQAjxm9ZN8c=
#========================================
# php artisan down
# php artisan config:clear
# php artisan config:cache
# php artisan app:update
# php artisan up
#========================================
# If you experience any issues when running these commands, you may need to execute the following command:
# rm -rf bootstrap/cache/*
# rm -rf bootstrap/cache{,t}/*
# chmod -R 777 storage;chmod -R 777 bootstrap/;;
#========================================
#command: ['sh', '-c', 'cd /var/www/html;php artisan key:generate;chmod -R 777 storage;rm -rf bootstrap/cache/*;chmod -R 777 bootstrap/;rm -rf bootstrap/cache{,t}/*;php artisan config:cache;php artisan app:install;php artisan app:update;']
name: cachet
ports:
- containerPort: 8000
resources: {}
initContainers:
- name: init-postgres
image: busybox
command: ['sh', '-c', 'until nc -z postgres 5432; do echo waiting for postgres; sleep 2; done;']
restartPolicy: Always
status: {}