-
Notifications
You must be signed in to change notification settings - Fork 801
Expand file tree
/
Copy pathhpa.yaml
More file actions
76 lines (76 loc) · 1.97 KB
/
Copy pathhpa.yaml
File metadata and controls
76 lines (76 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
# Source: opentelemetry-collector/templates/hpa.yaml
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.173.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.159.0"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: opentelemetry-collector
app.kubernetes.io/component: standalone-collector
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: example-opentelemetry-collector
minReplicas: 1
maxReplicas: 10
behavior:
scaleDown:
policies:
- periodSeconds: 60
type: Percent
value: 100
stabilizationWindowSeconds: 60
scaleUp:
policies:
- periodSeconds: 60
type: Percent
value: 100
stabilizationWindowSeconds: 60
metrics:
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 70
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 80
- pods:
metric:
name: otelcol_k8s_collector_scrape_duration_seconds
target:
averageValue: "1"
type: AverageValue
type: Pods
- object:
describedObject:
apiVersion: apps/v1
kind: Deployment
name: example-opentelemetry-collector
metric:
name: otelcol_k8s_collector_scrape_duration_seconds
target:
averageValue: "1"
type: AverageValue
type: Object
- external:
metric:
name: otelcol_k8s_collector_scrape_duration_seconds
selector:
matchLabels:
app.kubernetes.io/component: standalone-collector
target:
averageValue: "1"
type: AverageValue
type: External