anchore / anchore-charts

Helm charts for Anchore tools and services
http://charts.anchore.io
Apache License 2.0
47 stars 72 forks source link

Horizontal Pod Autoscaling Support #90

Open blang9238 opened 3 years ago

blang9238 commented 3 years ago

Add support for HPA to the Chart templates for enterprise. The following snippet was created by a user for Anchore Engine in the template:

---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: {{ .Release.Name }}-hpa-analyzer
labels:
app: {{ .Release.Name }}-anchore-engine
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
maxReplicas: {{ .Values.anchoreHorizontalAutoScaler.maxReplicas }}
minReplicas: {{ .Values.anchoreHorizontalAutoScaler.minReplicas }}
targetCPUUtilizationPercentage: {{ .Values.anchoreHorizontalAutoScaler.targetCpu }}
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ .Release.Name }}-anchore-engine-analyzer
found-it commented 3 years ago

This would be a useful feature for the federal space.