Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/whatsapp-proxy-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.1.0
version: 1.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
10 changes: 10 additions & 0 deletions charts/whatsapp-proxy-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ spec:
containerPort: 5222
protocol: TCP
{{- end}}
{{- if .Values.service.media_port }}
- name: media
containerPort: 587
protocol: TCP
{{- end}}
{{- if .Values.service.media_proxy_port}}
- name: media-proxy
containerPort: 7777
protocol: TCP
{{- end}}
{{- if .Values.service.stats_port }}
- name: stats
containerPort: 8199
Expand Down
10 changes: 7 additions & 3 deletions charts/whatsapp-proxy-chart/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# License found in the LICENSE file in the root directory
# of this source tree.
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "whatsapp-proxy-chart.fullname" . }}
Expand All @@ -21,12 +21,16 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
1 change: 0 additions & 1 deletion charts/whatsapp-proxy-chart/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ spec:
protocol: TCP
name: media
{{- end}}

{{- if .Values.service.media_proxy_port }}
- port: {{ .Values.service.media_proxy_port }}
targetPort: 7777

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HOOOOOOLA PITO PA TO2

Expand Down
Loading