Skip to content

Commit bfb6c49

Browse files
author
Kai Aihara
committed
Docuemntation with k8s-prometheus-adapter
1 parent dce7df3 commit bfb6c49

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,30 @@ spec:
9191
value: bar
9292
```
9393

94+
Therefore, when combined with [DirectXMan12/k8s-prometheus-adapter](https://github.com/DirectXMan12/k8s-prometheus-adapter), it is possible to scale according to runner metrics using by HPA.
95+
96+
```shell
97+
apiVersion: autoscaling/v2beta2
98+
kind: HorizontalPodAutoscaler
99+
metadata:
100+
name: example-runner
101+
spec:
102+
maxReplicas: 5
103+
minReplicas: 1
104+
scaleTargetRef:
105+
apiVersion: apps/v1
106+
kind: Deployment
107+
name: example
108+
metrics:
109+
- type: Pods
110+
pods:
111+
metric:
112+
name: github_actions_runs_queued
113+
target:
114+
type: AverageValue
115+
averageValue: 3
116+
```
117+
94118
## How to develop
95119

96120
### `skaffold dev`

0 commit comments

Comments
 (0)