Skip to content

Commit 0d7b993

Browse files
authored
Merge pull request #33 from anycable/0.5.6
Release v0.5.6
2 parents 5f44575 + 8fc1130 commit 0d7b993

File tree

7 files changed

+62
-9
lines changed

7 files changed

+62
-9
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

anycable-go/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
description: A Helm chart for anycable-go websocket server.
33
name: anycable-go
4-
version: 0.5.5
5-
appVersion: 1.2.0
4+
version: 0.5.6
5+
appVersion: 1.2.4
66
home: https://anycable.io/
77
icon: https://docs.anycable.io/assets/images/logo.svg
88
keywords:
@@ -11,11 +11,11 @@ keywords:
1111
sources:
1212
- https://github.com/anycable/anycable-go
1313
maintainers:
14-
- name: gfrntz
15-
1614
- name: dragonsmith
1715
1816
- name: palkan
1917
2018
- name: envek
2119
20+
- name: nepalez
21+

anycable-go/OWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
approvers:
2-
- gfrntz
32
- dragonsmith
43
- palkan
54
- envek
5+
- nepalez
66
reviewers:
7-
- gfrntz
87
- dragonsmith
98
- palkan
109
- envek
10+
- nepalez

anycable-go/templates/deployment.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ metadata:
1313
heritage: {{ $.Release.Service | quote }}
1414
spec:
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:
@@ -35,6 +37,9 @@ spec:
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 }}
@@ -58,6 +63,9 @@ spec:
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"

anycable-go/templates/hpa.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 }}

anycable-go/templates/service.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ spec:
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 }}

anycable-go/values.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ nodeSelector: {}
22

33
replicas: 1
44

5+
hpa:
6+
enabled: false
7+
minReplicas: 1
8+
maxReplicas: 3
9+
targetCPUUtilizationPercentage: 50
10+
511
image:
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

5460
pod:
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

6174
service:
6275
annotations: {}
76+
type: ClusterIP
6377

6478
# Define names or additional secrets to overwrite env variables
6579
# from the `env-secret.yml`.

0 commit comments

Comments
 (0)