File tree 5 files changed +28
-32
lines changed
5 files changed +28
-32
lines changed Original file line number Diff line number Diff line change @@ -5,27 +5,27 @@ metadata:
5
5
labels :
6
6
{{- include "bloom.labels" . | nindent 4 }}
7
7
data :
8
- config .cfg : |
8
+ bloom .cfg : |
9
9
[server]
10
10
11
- log_level = {{ .Values.bloom.server.log_level | default "error" }}
12
- inet = {{ .Values.bloom.server.inet | default "[::1]:8080" }}
11
+ log_level = {{ .Values.bloom.server.log_level | default "error" | quote }}
12
+ inet = {{ .Values.bloom.server.inet | default "[::1]:8080" | quote }}
13
13
14
14
15
15
[control]
16
16
17
- inet = {{ .Values.bloom.control.inet | default "[::1]:8811" }}
17
+ inet = {{ .Values.bloom.control.inet | default "[::1]:8811" | quote }}
18
18
tcp_timeout = {{ .Values.bloom.control.tcp_timeout | default "300" }}
19
19
20
20
21
21
[proxy]
22
22
23
23
shard_default = {{ .Values.bloom.proxy.shard_default | default 0 }}
24
24
25
- {{ range .Values.bloom.proxy.shards | required "At least one valis list entry is required" }}
25
+ {{ range .Values.bloom.proxy.shards | required "At least one valid list entry is required" }}
26
26
[[proxy.shard]]
27
27
shard = {{ .shard }}
28
- host = {{ .host }}
28
+ host = {{ .host | quote }}
29
29
port = {{ .port }}
30
30
{{end}}
31
31
42
42
43
43
[redis]
44
44
45
- host = {{.Values.bloom.redis.host | default "redis.svc.cluster.local" }}
45
+ host = {{.Values.bloom.redis.host | default "redis.svc.cluster.local" | quote }}
46
46
port = {{.Values.bloom.redis.port | default 6379 }}
47
47
48
48
database = {{ .Values.bloom.redis.database |default 0 }}
53
53
connection_timeout_seconds = {{ .Values.bloom.redis.connection_timeout_seconds | default 1 }}
54
54
55
55
max_key_size = {{ .Values.bloom.redis.max_key_size | default 256000 }}
56
- max_key_expiration = {{ .Values.bloom.redis.max_key_expiration | default 2592000 }}
56
+ max_key_expiration = {{ .Values.bloom.redis.max_key_expiration | default 2592000 | int }}
Original file line number Diff line number Diff line change 56
56
{{- toYaml .Values.resources | nindent 12 }}
57
57
volumeMounts :
58
58
- mountPath : /etc/bloom.cfg
59
- name : config
60
59
subPath : bloom.cfg
60
+ name : config
61
61
{{- with .Values.nodeSelector }}
62
62
nodeSelector :
63
63
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change 1
1
{{- $fullName := include "bloom.fullname" . -}}
2
2
{{- $labels := include "bloom.labels" . }}
3
- {{- $svcPort := .Values.service.port -}}
3
+ {{- $svcPort := .Values.service.http. port -}}
4
4
{{- $kubeversion := .Capabilities.KubeVersion.GitVersion}}
5
5
{{ range .Values.bloom.proxy.shards }}
6
6
{{- if .ingress.enabled -}}
@@ -31,7 +31,7 @@ metadata:
31
31
32
32
spec :
33
33
{{- if and .ingress.className (semverCompare ">=1.18-0" $kubeversion) }}
34
- ingressClassName : {{ .Values. ingress.className }}
34
+ ingressClassName : {{ .ingress.className }}
35
35
{{- end }}
36
36
{{- if .ingress.tls }}
37
37
tls :
Original file line number Diff line number Diff line change 11
11
targetPort : http
12
12
protocol : TCP
13
13
name : http
14
- - port : {{ .Values.service.control.port }}
15
- targetPort : control
16
- protocol : TCP
17
- name : control
18
14
selector :
19
15
{{- include "bloom.selectorLabels" . | nindent 4 }}
Original file line number Diff line number Diff line change 8
8
repository : valeriansaliou/bloom
9
9
pullPolicy : IfNotPresent
10
10
# Overrides the image tag whose default is the chart appVersion.
11
- tag : " "
11
+ tag :
12
12
13
13
imagePullSecrets : []
14
14
nameOverride : " "
@@ -24,42 +24,42 @@ serviceAccount:
24
24
name : " "
25
25
bloom :
26
26
server :
27
- log_level : " error "
28
- inet : " [::1] :8080"
27
+ log_level : " debug "
28
+ inet : " 0.0.0.0 :8080"
29
29
control :
30
30
tcp_timeout : 300
31
- inet : " [::1] :8811"
31
+ inet : " 0.0.0.0 :8811"
32
32
proxy :
33
33
# -- sets the default shard if none is set in the request
34
34
shard_default : 0
35
35
shards :
36
36
- shard : 0
37
- host : " "
38
- port : " "
37
+ host : " someservice.namespace.svc.cluster.local "
38
+ port : someport
39
39
ingress :
40
40
enabled : true
41
- className : " "
42
- annotations : { }
41
+ className : " nginx "
42
+ annotations :
43
43
# kubernetes.io/ingress.class: nginx
44
- # kubernetes.io/tls-acme: "true"
44
+ kubernetes.io/tls-acme : " true"
45
45
hosts :
46
- - host : chart- example.local
46
+ - host : service. example.com
47
47
paths :
48
48
- path : /
49
49
pathType : ImplementationSpecific
50
- tls : [ ]
51
- # - secretName: chart-example-tls
52
- # hosts:
53
- # - chart- example.local
50
+ tls :
51
+ - secretName : chart-example-tls
52
+ hosts :
53
+ - service. example.com
54
54
cache :
55
55
ttl_default : 600
56
56
executor_pool : 64
57
57
disable_read : false
58
58
disable_write : false
59
59
compress_body : true
60
60
redis :
61
- host :
62
- port :
61
+ host : " redis.redis.svc.cluster.local "
62
+ port : 6379
63
63
database : 0
64
64
pool_size : 80
65
65
max_lifetime_seconds : 60
@@ -84,7 +84,7 @@ securityContext: {}
84
84
service :
85
85
type : ClusterIP
86
86
http :
87
- port : 80
87
+ port : 8080
88
88
control :
89
89
port : 8811
90
90
You can’t perform that action at this time.
0 commit comments