-
Notifications
You must be signed in to change notification settings - Fork 11
/
redash.yaml
127 lines (124 loc) · 3.02 KB
/
redash.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
kind: "Service"
apiVersion: v1
metadata:
name: redash-svc
spec:
type: ClusterIP
selector:
app: redash
ports:
- name: http
port: 80
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: redash
spec:
replicas: 1
template:
metadata:
labels:
app: redash
spec:
containers:
- name: redash-web
image: redash/redash
resources:
requests:
memory: 1Gi
ports:
- name: redash-http
containerPort: 5000
env:
- name: REDASH_DATABASE_URL
value: "postgresql://hive:[email protected]/redash"
- name: REDASH_REDIS_URL
value: "redis://redis-svc.presto:6379/0"
- name: PYTHONUNBUFFERED
value: "0"
- name: REDASH_COOKIE_SECRET
value: "nanitsecretlongonehere"
- name: REDASH_HOST
value: ""
- name: REDASH_NAME
value: ""
- name: REDASH_MAIL_SERVER
value: ""
- name: REDASH_MAIL_PORT
value: "657"
- name: REDASH_MAIL_USERNAME
value: "test"
- name: REDASH_MAIL_PASSWORD
value: "test2"
- name: REDASH_MAIL_DEFAULT_SENDER
value: ""
args: ["server"]
- name: redash-workers
image: redash/redash
resources:
requests:
memory: 1Gi
env:
- name: REDASH_DATABASE_URL
value: "postgresql://hive:[email protected]/redash"
- name: REDASH_REDIS_URL
value: "redis://redis-svc.presto:6379/0"
- name: PYTHONUNBUFFERED
value: "0"
- name: REDASH_COOKIE_SECRET
value: "nanitsecretlongonehere"
- name: REDASH_HOST
value: ""
- name: REDASH_NAME
value: ""
- name: REDASH_MAIL_SERVER
value: ""
- name: REDASH_MAIL_PORT
value: "657"
- name: REDASH_MAIL_USERNAME
value: "test"
- name: REDASH_MAIL_PASSWORD
value: "test2"
- name: REDASH_MAIL_DEFAULT_SENDER
value: ""
args: ["scheduler"]
- name: nginx
image: nginx
ports:
- name: nginx
containerPort: 80
# - name: redis
# image: redis:3.0-alpine
# ports:
# - name: redis
# containerPort: 6379
---
apiVersion: v1
kind: Service
metadata:
name: redis-svc
spec:
ports:
- name: client
port: 6379
selector:
app: redis
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: redis
spec:
replicas: 1
template:
metadata:
labels:
app: redis
spec:
containers:
- name: redis
image: redis:3.0-alpine
ports:
- name: redis
containerPort: 6379