infra/helm/platform/templates/hpa.yaml
Metadata
- Purpose: Kubernetes Helm chart template or values configuration.
- Domain:
infrastructure - Language:
yaml - Bytes: 2704
- Lines: 92
- Content hash (short):
f5ad7845 - Source (start): infra/helm/platform/templates/hpa.yaml:1
- Source (end): infra/helm/platform/templates/hpa.yaml:92
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