Skip to content

Commit

Permalink
Updating version
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredych committed Mar 9, 2023
1 parent d731c27 commit 13d7af4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/laravel/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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: 0.4.4
version: 0.4.5

# 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: 5 additions & 5 deletions charts/laravel/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ spec:
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPU }}
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPU }}
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemory }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
target:
type: AverageValue
averageValue: {{ .Values.autoscaling.targetMemory }}
type: Utilization
averageValue: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.customRules -}}
{{- toYaml .Values.autoscaling.customRules | nindent 4}}
Expand Down
4 changes: 2 additions & 2 deletions charts/laravel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 10
targetCPU: 80
targetMemory: 100Mi
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

## see https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics
customRules: []
Expand Down

0 comments on commit 13d7af4

Please sign in to comment.