Skip to main content

infra/helm/platform/templates/hpa.yaml

Metadata

Indexed Symbols

No indexed functions/methods detected in this file.

Markdown Headings (if applicable)

No markdown headings detected.

Source Preview

{{- if and .Values.web.enabled .Values.web.autoscaling.enabled }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: anchor-web
namespace: {{ .Values.namespace.name }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: anchor-web
minReplicas: {{ .Values.web.autoscaling.minReplicas }}
maxReplicas: {{ .Values.web.autoscaling.maxReplicas }}
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.web.autoscaling.targetCpuUtilizationPercentage }}
---
{{- end }}
{{- if and .Values.outboxWorker.enabled .Values.outboxWorker.autoscaling.enabled }}
---
apiVersion: autoscaling/v2