Remove autoscaling using HPA
Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
@@ -55,10 +55,6 @@ Kubernetes: `>=1.21.0-0`
|
||||
| agent.image.version | string | `""` | |
|
||||
| agent.nodeSelector."kubernetes.io/arch" | string | `"amd64"` | |
|
||||
| agent.resources | object | `{}` | |
|
||||
| autoscaling.enabled | bool | `false` | |
|
||||
| autoscaling.maxReplicas | int | `100` | |
|
||||
| autoscaling.minReplicas | int | `1` | |
|
||||
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
|
||||
| csiDriver.image.pullPolicy | string | `"IfNotPresent"` | |
|
||||
| csiDriver.image.registry | string | `"ghcr.io"` | |
|
||||
| csiDriver.image.repository | string | `"spiffe/spiffe-csi-driver"` | |
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
{{- if .Values.autoscaling.enabled }}
|
||||
apiVersion: autoscaling/v2beta1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ include "spire.fullname" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "spire.labels" . | nindent 4 }}
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: {{ include "spire.fullname" . }}
|
||||
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
||||
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
||||
metrics:
|
||||
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
|
||||
{{- end }}
|
||||
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
||||
- type: Resource
|
||||
resource:
|
||||
name: memory
|
||||
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -7,9 +7,7 @@ metadata:
|
||||
labels:
|
||||
{{- include "spire.oidc.labels" . | nindent 4 }}
|
||||
spec:
|
||||
{{- if not .Values.autoscaling.enabled }}
|
||||
replicas: {{ .Values.oidc.replicaCount }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "spire.oidc.selectorLabels" . | nindent 6 }}
|
||||
|
||||
@@ -6,9 +6,7 @@ metadata:
|
||||
labels:
|
||||
{{- include "spire.server.labels" . | nindent 4 }}
|
||||
spec:
|
||||
{{- if not .Values.autoscaling.enabled }}
|
||||
replicas: {{ .Values.server.replicaCount }}
|
||||
{{- end }}
|
||||
serviceName: {{ include "spire.fullname" . }}-server
|
||||
selector:
|
||||
matchLabels:
|
||||
|
||||
@@ -234,13 +234,6 @@ serviceAccount:
|
||||
# If not set and create is true, a name is generated using the fullname template
|
||||
name: ""
|
||||
|
||||
autoscaling:
|
||||
enabled: false
|
||||
minReplicas: 1
|
||||
maxReplicas: 100
|
||||
targetCPUUtilizationPercentage: 80
|
||||
# targetMemoryUtilizationPercentage: 80
|
||||
|
||||
# spireSettings
|
||||
|
||||
spire:
|
||||
|
||||
Reference in New Issue
Block a user