Commit 6dc52a4 1 parent 0ea98f8 commit 6dc52a4 Copy full SHA for 6dc52a4
File tree 4 files changed +38
-2
lines changed
4 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: xatu-server
3
3
description : Ethereum p2p monitoring tool that collects events from and controls various Xatu clients.
4
4
home : https://github.com/ethpandaops/xatu
5
5
type : application
6
- version : 0.0.2
6
+ version : 0.0.3
7
7
maintainers :
8
8
- name : samcm
9
9
Original file line number Diff line number Diff line change 1
1
2
2
# xatu-server
3
3
4
- ![ Version: 0.0.2 ] ( https://img.shields.io/badge/Version-0.0.2 -informational?style=flat-square ) ![ Type: application] ( https://img.shields.io/badge/Type-application-informational?style=flat-square )
4
+ ![ Version: 0.0.3 ] ( https://img.shields.io/badge/Version-0.0.3 -informational?style=flat-square ) ![ Type: application] ( https://img.shields.io/badge/Type-application-informational?style=flat-square )
5
5
6
6
Ethereum p2p monitoring tool that collects events from and controls various Xatu clients.
7
7
@@ -14,6 +14,10 @@ Ethereum p2p monitoring tool that collects events from and controls various Xatu
14
14
| affinity | object | ` {} ` | Affinity configuration for pods |
15
15
| annotations | object | ` {} ` | Annotations for the Deployment |
16
16
| args | list | ` [] ` | Command arguments |
17
+ | autoscaling.enabled | bool | ` false ` | Autoscaling configuration |
18
+ | autoscaling.maxReplicas | int | ` 3 ` | Maximum number of replicas |
19
+ | autoscaling.minReplicas | int | ` 2 ` | Minimum number of replicas |
20
+ | autoscaling.targetCPUUtilizationPercentage | int | ` 85 ` | Target CPU utilization percentage |
17
21
| config.addr | string | ` ":8080" ` | |
18
22
| config.logging | string | ` "info" ` | |
19
23
| config.metricsAddr | string | ` ":9090" ` | |
Original file line number Diff line number Diff line change
1
+ {{- if .Values.autoscaling.enabled -}}
2
+ apiVersion : autoscaling/v2
3
+ kind : HorizontalPodAutoscaler
4
+ metadata :
5
+ name : {{ include "xatu-server.fullname" . }}
6
+ labels :
7
+ {{- include "xatu-server.labels" . | nindent 4 }}
8
+ spec :
9
+ scaleTargetRef :
10
+ apiVersion : apps/v1
11
+ kind : Deployment
12
+ name : {{ include "xatu-server.fullname" . }}
13
+ minReplicas : {{ .Values.autoscaling.minReplicas }}
14
+ maxReplicas : {{ .Values.autoscaling.maxReplicas }}
15
+ metrics :
16
+ - type : Resource
17
+ resource :
18
+ name : cpu
19
+ target :
20
+ type : Utilization
21
+ averageUtilization : {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
22
+ {{- end }}
Original file line number Diff line number Diff line change @@ -7,6 +7,16 @@ fullnameOverride: ""
7
7
# -- Number of replicas
8
8
replicas : 1
9
9
10
+ autoscaling :
11
+ # -- Autoscaling configuration
12
+ enabled : false
13
+ # -- Minimum number of replicas
14
+ minReplicas : 2
15
+ # -- Maximum number of replicas
16
+ maxReplicas : 3
17
+ # -- Target CPU utilization percentage
18
+ targetCPUUtilizationPercentage : 85
19
+
10
20
image :
11
21
# -- xatu container image repository
12
22
repository : ethpandaops/xatu
You can’t perform that action at this time.
0 commit comments