mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
21 lines
927 B
YAML
21 lines
927 B
YAML
apiVersion: autoscaling/v1
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
annotations:
|
|
autoscaling.alpha.kubernetes.io/conditions: '[{"type":"AbleToScale","status":"True","lastTransitionTime":"2020-11-23T19:38:38Z","reason":"SucceededRescale","message":"the HPA controller was able to update the target scale to 1"},{"type":"ScalingActive","status":"False","lastTransitionTime":"2020-11-23T19:38:38Z","reason":"FailedGetResourceMetric","message":"the
|
|
HPA was unable to compute the replica count: unable to get metrics for resource
|
|
cpu: unable to fetch metrics from resource metrics API: the server is currently
|
|
unable to handle the request (get pods.metrics.k8s.io)"}]'
|
|
name: sample
|
|
namespace: argocd
|
|
spec:
|
|
maxReplicas: 2
|
|
minReplicas: 1
|
|
scaleTargetRef:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
name: sample
|
|
targetCPUUtilizationPercentage: 2
|
|
status:
|
|
currentReplicas: 1
|
|
desiredReplicas: 1 |