CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/test/kubernetes/lucee/templates/hpa.yaml
Views: 11784
1
{{- if .Values.autoscaling.enabled }}
2
apiVersion: autoscaling/v2beta1
3
kind: HorizontalPodAutoscaler
4
metadata:
5
name: {{ include "lucee.fullname" . }}
6
labels:
7
{{- include "lucee.labels" . | nindent 4 }}
8
spec:
9
scaleTargetRef:
10
apiVersion: apps/v1
11
kind: Deployment
12
name: {{ include "lucee.fullname" . }}
13
minReplicas: {{ .Values.autoscaling.minReplicas }}
14
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
15
metrics:
16
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
17
- type: Resource
18
resource:
19
name: cpu
20
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
21
{{- end }}
22
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
23
- type: Resource
24
resource:
25
name: memory
26
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
27
{{- end }}
28
{{- end }}
29
30