File tree Expand file tree Collapse file tree 7 files changed +85
-27
lines changed Expand file tree Collapse file tree 7 files changed +85
-27
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,5 @@ maintainers:
15
15
16
16
- name : Jaehyeok Lee
17
17
18
+ - name : Changhoon Oh
19
+
Original file line number Diff line number Diff line change 55
55
secretKeyRef :
56
56
name : {{ include "querybook.fullname" . }}-secret
57
57
key : ELASTICSEARCH_HOST
58
+ {{- range $key, $value := .Values.extraEnv }}
59
+ - name : {{ $key | quote}}
60
+ value : {{ $value | quote }}
61
+ {{- end }}
58
62
resources :
59
63
{{- toYaml .Values.scheduler.resources | nindent 12 }}
60
64
restartPolicy : Always
Original file line number Diff line number Diff line change 35
35
imagePullPolicy : {{ .Values.web.image.pullPolicy }}
36
36
env :
37
37
- name : PORT
38
- value : ' 10001 '
38
+ value : " {{ .Values.web.service.containerPort }} "
39
39
- name : FLASK_SECRET_KEY
40
40
valueFrom :
41
41
secretKeyRef :
56
56
secretKeyRef :
57
57
name : {{ include "querybook.fullname" . }}-secret
58
58
key : ELASTICSEARCH_HOST
59
+ {{- range $key, $value := .Values.extraEnv }}
60
+ - name : {{ $key | quote}}
61
+ value : {{ $value | quote }}
62
+ {{- end }}
59
63
ports :
60
- - containerPort : 10001
64
+ - containerPort : {{ .Values.web.service.containerPort }}
61
65
resources :
62
66
{{- toYaml .Values.web.resources | nindent 12 }}
63
67
restartPolicy : Always
Original file line number Diff line number Diff line change
1
+ {{ if .Values.ingress.enabled -}}
2
+ apiVersion : networking.k8s.io/v1
3
+ kind : Ingress
4
+ metadata :
5
+ name : {{ .Values.web.name }}
6
+ labels :
7
+ app : {{ include "querybook.name" . }}
8
+ chart : {{ include "querybook.chart" . }}
9
+ component : {{ .Values.web.name }}
10
+ release : {{ .Release.Name }}
11
+ heritage : {{ .Release.Service }}
12
+ {{- with .Values.ingress.annotations }}
13
+ annotations :
14
+ {{- toYaml . | nindent 4 }}
15
+ {{- end }}
16
+ namespace : {{ .Release.Namespace }}
17
+ spec :
18
+ {{- if .Values.ingress.ingressClassName }}
19
+ ingressClassName : {{ .Values.ingress.ingressClassName }}
20
+ {{- end }}
21
+ {{- if .Values.ingress.tls }}
22
+ tls :
23
+ {{- range .Values.ingress.tls }}
24
+ - hosts :
25
+ {{- range .hosts }}
26
+ - {{ . }}
27
+ {{- end }}
28
+ secretName : {{ .secretName }}
29
+ {{- end }}
30
+ {{- end }}
31
+ rules :
32
+ {{- range .Values.ingress.hosts }}
33
+ - host : {{ . }}
34
+ http :
35
+ paths :
36
+ - path : {{ $.Values.ingress.path }}
37
+ pathType : {{ $.Values.ingress.pathType }}
38
+ backend :
39
+ service :
40
+ name : {{ $.Values.web.name }}
41
+ port :
42
+ name : http
43
+ {{- end }}
44
+ {{- end }}
Original file line number Diff line number Diff line change 12
12
type : {{ .Values.web.service.serviceType }}
13
13
ports :
14
14
- port : {{ .Values.web.service.servicePort }}
15
- targetPort : 10001
15
+ targetPort : {{ .Values.web.service.containerPort }}
16
16
protocol : TCP
17
17
name : http
18
18
selector :
Original file line number Diff line number Diff line change 56
56
secretKeyRef :
57
57
name : {{ include "querybook.fullname" . }}-secret
58
58
key : ELASTICSEARCH_HOST
59
+ {{- range $key, $value := .Values.extraEnv }}
60
+ - name : {{ $key | quote}}
61
+ value : {{ $value | quote }}
62
+ {{- end }}
59
63
{{- with .Values.nodeSelector }}
60
64
nodeSelector :
61
65
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change @@ -12,10 +12,6 @@ worker:
12
12
limits :
13
13
memory : 900Mi
14
14
cpu : 1
15
- nodeSelector : {}
16
- affinity : {}
17
- tolerations : []
18
- podAnnotations : {}
19
15
20
16
scheduler :
21
17
replicaCount : 1
@@ -31,10 +27,6 @@ scheduler:
31
27
limits :
32
28
memory : ' 200Mi'
33
29
cpu : ' 100m'
34
- nodeSelector : {}
35
- affinity : {}
36
- tolerations : []
37
- podAnnotations : {}
38
30
39
31
web :
40
32
replicaCount : 1
46
38
service :
47
39
serviceType : ClusterIP
48
40
servicePort : 80
41
+ containerPort : 10001
49
42
resources :
50
43
requests :
51
44
memory : 1Gi
52
45
cpu : 1
53
46
limits :
54
47
memory : 3Gi
55
48
cpu : 1
56
- nodeSelector : {}
57
- affinity : {}
58
- tolerations : []
59
- podAnnotations : {}
60
49
61
50
mysql :
62
51
enabled : true
@@ -82,10 +71,6 @@ mysql:
82
71
limits :
83
72
memory : ' 500Mi'
84
73
cpu : ' 300m'
85
- nodeSelector : {}
86
- affinity : {}
87
- tolerations : []
88
- podAnnotations : {}
89
74
90
75
redis :
91
76
enabled : true
@@ -105,10 +90,6 @@ redis:
105
90
limits :
106
91
memory : ' 1Gi'
107
92
cpu : ' 300m'
108
- nodeSelector : {}
109
- affinity : {}
110
- tolerations : []
111
- podAnnotations : {}
112
93
113
94
elasticsearch :
114
95
enabled : true
@@ -137,10 +118,29 @@ elasticsearch:
137
118
limits :
138
119
memory : ' 1Gi'
139
120
cpu : ' 200m'
140
- nodeSelector : {}
141
- affinity : {}
142
- tolerations : []
143
- podAnnotations : {}
121
+
122
+ # assigning pods to node configs. will be applied to all the querybook pods
123
+ nodeSelector : {}
124
+ affinity : {}
125
+ tolerations : []
126
+ podAnnotations : {}
127
+
128
+ ingress :
129
+ enabled : true
130
+ ingressClassName : ~
131
+ annotations : {}
132
+ path : /*
133
+ pathType : ImplementationSpecific
134
+ hosts :
135
+ - <your-querybook-app-domain>
136
+ tls : []
137
+ # - secretName: <your-querybook-tls-secret>
138
+ # hosts:
139
+ # - <your-querybook-app-domain>
140
+
141
+ extraEnv :
142
+ PUBLIC_URL : https://<your-querybook-app-domain>
143
+ # any other Querybook configuration env. variables can be injected from here
144
144
145
145
secret :
146
146
flask_secret_key : SOME_RANDOM_SECRET_KEY
You can’t perform that action at this time.
0 commit comments