Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update autoscaling/v1 to autoscaling/v2beta2 #1071

Merged
merged 2 commits into from
Nov 13, 2020
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
18 changes: 16 additions & 2 deletions deploy/helm/sumologic/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.fluentd.logs.autoscaling.enabled}}
apiVersion: autoscaling/v1
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "sumologic.metadata.name.logs.hpa" . }}
Expand All @@ -13,5 +13,19 @@ spec:
name: {{ template "sumologic.metadata.name.logs.statefulset" . }}
minReplicas: {{ .Values.fluentd.logs.autoscaling.minReplicas }}
maxReplicas: {{ .Values.fluentd.logs.autoscaling.maxReplicas }}
targetCPUUtilizationPercentage: {{ .Values.fluentd.logs.autoscaling.targetCPUUtilizationPercentage }}
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.fluentd.logs.autoscaling.targetCPUUtilizationPercentage }}
{{- if .Values.fluentd.logs.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.fluentd.logs.autoscaling.targetMemoryUtilizationPercentage }}
{{- end -}}
{{- end -}}
18 changes: 16 additions & 2 deletions deploy/helm/sumologic/templates/metrics-hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.fluentd.metrics.autoscaling.enabled}}
apiVersion: autoscaling/v1
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "sumologic.metadata.name.metrics.hpa" . }}
Expand All @@ -13,5 +13,19 @@ spec:
name: {{ template "sumologic.metadata.name.metrics.statefulset" . }}
minReplicas: {{ .Values.fluentd.metrics.autoscaling.minReplicas }}
maxReplicas: {{ .Values.fluentd.metrics.autoscaling.maxReplicas }}
targetCPUUtilizationPercentage: {{ .Values.fluentd.metrics.autoscaling.targetCPUUtilizationPercentage }}
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.fluentd.metrics.autoscaling.targetCPUUtilizationPercentage }}
{{- if .Values.fluentd.metrics.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.fluentd.metrics.autoscaling.targetMemoryUtilizationPercentage }}
{{- end -}}
{{- end -}}
2 changes: 2 additions & 0 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ fluentd:
minReplicas: 3
maxReplicas: 10
targetCPUUtilizationPercentage: 50
pmalek-sumo marked this conversation as resolved.
Show resolved Hide resolved
# targetMemoryUtilizationPercentage: 50

## Option to specify PodDisrutionBudgets
## You can specify only one of maxUnavailable and minAvailable in a single PodDisruptionBudget
Expand Down Expand Up @@ -559,6 +560,7 @@ fluentd:
minReplicas: 3
maxReplicas: 10
targetCPUUtilizationPercentage: 50
# targetMemoryUtilizationPercentage: 50

## Option to specify PodDisrutionBudgets
## You can specify only one of maxUnavailable and minAvailable in a single PodDisruptionBudget
Expand Down