mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 17:49:59 +00:00
30 lines
557 B
YAML
30 lines
557 B
YAML
kind: HorizontalPodAutoscaler
|
|
apiVersion: autoscaling/v2beta2
|
|
metadata:
|
|
name: rng
|
|
spec:
|
|
scaleTargetRef:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
name: rng
|
|
minReplicas: 1
|
|
maxReplicas: 20
|
|
behavior:
|
|
scaleUp:
|
|
stabilizationWindowSeconds: 60
|
|
scaleDown:
|
|
stabilizationWindowSeconds: 180
|
|
metrics:
|
|
- type: Object
|
|
object:
|
|
describedObject:
|
|
apiVersion: v1
|
|
kind: Service
|
|
name: httplat
|
|
metric:
|
|
name: httplat_latency_seconds
|
|
target:
|
|
type: Value
|
|
value: 0.1
|
|
|