This repository was archived by the owner on Dec 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,34 @@ helm delete ego
39
39
| ` images.tag ` | Event Gateway image tag | ` 0.9.0 ` |
40
40
| ` replicaCount ` | Number of containers | ` 3 ` |
41
41
| ` service.type ` | Type of Kubernetes service | ` LoadBalancer ` |
42
+ | ` service.annotations ` | Custom annotations for the service | ` [] ` |
42
43
| ` service.config.port ` | Config API port number | ` 4001 ` |
43
44
| ` service.events.port ` | Events API port number | ` 4000 ` |
44
45
| ` resources.limits.cpu ` | CPU resource limits | ` 200m ` |
45
46
| ` resources.limits.memory ` | Memory resource limits | ` 256Mi ` |
46
47
| ` resources.requests.cpu ` | CPU resource requests | ` 200m ` |
47
48
| ` resources.requests.memory ` | Memory resource requests | ` 256Mi ` |
48
49
| ` command ` | Options to pass to ` event-gateway ` command | ` [-db-hosts=eg-etcd-cluster-client:2379, -log-level=debug] ` |
49
- | ` etcd_cluster_name ` | Name of the etcd cluster. Must be passed to the ` -db-host ` option as ` <etcd-cluster-name>-client ` | ` eg-etcd-cluster ` |
50
+ | ` etcd_cluster_name ` | Name of the etcd cluster. Passed to the ` -db-hosts ` option as ` <etcd-cluster-name>-client ` | ` eg-etcd-cluster ` |
51
+
52
+ The service annotations can be used to set any annotations required by your platform, for example, if
53
+ you update your values.yml with:
54
+
55
+ ```
56
+ - annotations: []
57
+ + annotations:
58
+ + - "service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0"
59
+ + - "foo: bar"
60
+ ```
61
+
62
+ then the service will be annotated as shown:
63
+
64
+ ```
65
+ $ helm install event-gateway --debug --dry-run | grep "kind: Service" -A5
66
+ kind: Service
67
+ metadata:
68
+ name: rafting-umbrellabird-event-gateway
69
+ annotations:
70
+ service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
71
+ foo: bar
72
+ ```
Original file line number Diff line number Diff line change 24
24
image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
25
25
imagePullPolicy : {{ .Values.image.pullPolicy }}
26
26
args :
27
+ - " -db-hosts={{ .Values.etcd_cluster_name }}-client:{{ .Values.etcd_cluster_port }}"
27
28
{{- range .Values.command }}
28
29
- {{ . }}
29
30
{{- end }}
@@ -40,6 +41,10 @@ apiVersion: v1
40
41
kind : Service
41
42
metadata :
42
43
name : {{ template "event-gateway.fullname" . }}
44
+ annotations :
45
+ {{- range .Values.service.annotations }}
46
+ {{ . }}
47
+ {{- end }}
43
48
labels :
44
49
chart : " {{ .Chart.Name }}-{{ .Chart.Version | replace " +" "_" }}"
45
50
spec :
Original file line number Diff line number Diff line change @@ -9,12 +9,14 @@ service:
9
9
port : 4001
10
10
events :
11
11
port : 4000
12
+ annotations : []
12
13
resources :
13
14
limits :
14
15
cpu : 200m
15
16
memory : 256Mi
16
17
requests :
17
18
cpu : 200m
18
19
memory : 256Mi
19
- command : ["-db-hosts=eg-etcd-cluster-client:2379", "-log-level=debug"]
20
- etcd_cluster_name : eg-etcd-cluster
20
+ command : ["-log-level=debug"]
21
+ etcd_cluster_name : eg-etcd-cluster
22
+ etcd_cluster_port : 2379
You can’t perform that action at this time.
0 commit comments