File tree Expand file tree Collapse file tree 7 files changed +62
-9
lines changed
Expand file tree Collapse file tree 7 files changed +62
-9
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,14 @@ These are the values used to configure anycable-go itself:
9898
9999| Value| Description| Default|
100100| -----| -----------| -------|
101+ | ** replicas** | Number of replicas for ` anycable-go ` deployment (ignored when HPA is enabled)| ` 1 ` |
102+ | ** hpa.enabled** | Enable HorizontalPodAutoscaler| ` false ` |
103+ | ** hpa.minReplicas** | Minimum replicas for HPA| ` 1 ` |
104+ | ** hpa.maxReplicas** | Maximum replicas for HPA| ` 3 ` |
105+ | ** hpa.targetCPUUtilizationPercentage** | Target CPU utilization for HPA| ` 50 ` |
101106| ** pod.annotations** | User-specified Pod annotations| ` {} ` |
107+ | ** pod.extraLabels** | User-specified Pod Labels| ` {} ` |
108+ | ** pod.tolerations** | User-specified Pod tolerations| ` [] ` |
102109| ** pod.serviceAccountName** | User-specified ServiceAccount for Pod identity||
103110| ** service.annotations** | User-specified Service annotations| ` {} ` |
104111
Original file line number Diff line number Diff line change 11apiVersion : v1
22description : A Helm chart for anycable-go websocket server.
33name : anycable-go
4- version : 0.5.5
5- appVersion : 1.2.0
4+ version : 0.5.6
5+ appVersion : 1.2.4
66home : https://anycable.io/
77icon : https://docs.anycable.io/assets/images/logo.svg
88keywords :
@@ -11,11 +11,11 @@ keywords:
1111sources :
1212 - https://github.com/anycable/anycable-go
1313maintainers :
14- - name : gfrntz
15- 1614 - name : dragonsmith
17151816 - name : palkan
19172018 - name : envek
211920+ - name : nepalez
21+
Original file line number Diff line number Diff line change 11approvers:
2- - gfrntz
32- dragonsmith
43- palkan
54- envek
5+ - nepalez
66reviewers:
7- - gfrntz
87- dragonsmith
98- palkan
109- envek
10+ - nepalez
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ metadata:
1313 heritage : {{ $.Release.Service | quote }}
1414spec :
1515 progressDeadlineSeconds : 600
16+ {{- if eq .hpa.enabled false }}
1617 replicas : {{ .replicas | default 2 }}
18+ {{- end }}
1719 revisionHistoryLimit : {{ .revisionHistoryLimit | default 10 }}
1820 selector :
1921 matchLabels :
3537 chart : " {{ $.Chart.Name }}-{{ $.Chart.Version | replace " +" "_" }}"
3638 release : {{ $.Release.Name | quote }}
3739 heritage : {{ $.Release.Service | quote }}
40+ {{- if (.pod | default dict).extraLabels }}
41+ {{- .pod.extraLabels | toYaml | nindent 8 }}
42+ {{- end }}
3843 annotations :
3944 checksum/config : {{ include (print $.Template.BasePath "/env-secret.yml") $ | sha256sum }}
4045 {{- if (.pod | default dict).annotations }}
5863 app : {{ template "anycableGo.name" $ }}
5964 release : {{ $.Release.Name | quote }}
6065 weight : 100
66+ {{- if (.pod | default dict).tolerations }}
67+ tolerations : {{- .pod.tolerations | toYaml | nindent 8 }}
68+ {{- end }}
6169 {{- if .image.pullSecrets.enabled }}
6270 imagePullSecrets :
6371 - name : " {{ $.Release.Name }}-docker-registry-secret"
Original file line number Diff line number Diff line change 1+ {{- $values := include "anycableGo.values" . | fromYaml }}
2+ {{- with $values.hpa }}
3+ {{- if .enabled }}
4+ {{- $apiVersion := include "anycableGo.apiVersions.hpa" $ }}
5+ ---
6+ apiVersion : {{ $apiVersion }}
7+ kind : HorizontalPodAutoscaler
8+ metadata :
9+ name : {{ template "anycableGo.fullname" $ }}
10+ labels :
11+ app : {{ template "anycableGo.name" $ }}
12+ chart : " {{ $.Chart.Name }}-{{ $.Chart.Version | replace " +" "_" }}"
13+ release : {{ $.Release.Name | quote }}
14+ heritage : {{ $.Release.Service | quote }}
15+ spec :
16+ scaleTargetRef :
17+ apiVersion : apps/v1
18+ kind : Deployment
19+ name : {{ template "anycableGo.fullname" $ }}
20+ minReplicas : {{ .minReplicas }}
21+ maxReplicas : {{ .maxReplicas }}
22+ targetCPUUtilizationPercentage : {{ .targetCPUUtilizationPercentage }}
23+ {{- end }}
24+ {{- end }}
Original file line number Diff line number Diff line change 3030 app : {{ template "anycableGo.name" $ }}
3131 component : anycable-go
3232 release : {{ $.Release.Name | quote }}
33- type : ClusterIP
33+ type : {{ $values.service.type | default " ClusterIP" }}
3434{{- end }}
Original file line number Diff line number Diff line change @@ -2,9 +2,15 @@ nodeSelector: {}
22
33replicas : 1
44
5+ hpa :
6+ enabled : false
7+ minReplicas : 1
8+ maxReplicas : 3
9+ targetCPUUtilizationPercentage : 50
10+
511image :
612 repository : anycable/anycable-go
7- tag : 1.2.0
13+ tag : 1.2.4
814 pullPolicy : IfNotPresent
915 pullSecrets :
1016 enabled : false
@@ -53,13 +59,21 @@ resources:
5359
5460pod :
5561 annotations : {}
56-
62+ extraLabels : {}
5763 # Use a different ServiceAccount
5864 # (leave blank for default)
5965 serviceAccountName : " "
66+ # Add tolerations to pods
67+ tolerations : []
68+ # - key: key1
69+ # operator: Equal
70+ # value: value1
71+ # effect: NoExecute
72+ # tolerationSeconds: 3600
6073
6174service :
6275 annotations : {}
76+ type : ClusterIP
6377
6478# Define names or additional secrets to overwrite env variables
6579# from the `env-secret.yml`.
You can’t perform that action at this time.
0 commit comments