Skip to content

Instantly share code, notes, and snippets.

@pingles
Last active June 28, 2017 10:03
Show Gist options
  • Save pingles/68ec63633a77c92b53b710c1025a48c5 to your computer and use it in GitHub Desktop.
Save pingles/68ec63633a77c92b53b710c1025a48c5 to your computer and use it in GitHub Desktop.
$ kn describe hpa autoscale-demo
Name: autoscale-demo
Namespace: cloud
Reference: Deployment/autoscale-demo
Metrics: ( current / target )
"qps" on pods: <unknown> / 1
Min replicas: 1
Max replicas: 5
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
4m 14s 9 horizontal-pod-autoscaler Warning FailedGetPodsMetric did not recieve metrics for any ready pods
4m 14s 9 horizontal-pod-autoscaler Warning FailedComputeMetricsReplicas failed to get pods metric value: did not recieve metrics for any ready pods
---
apiVersion: autoscaling/v2alpha1
kind: HorizontalPodAutoscaler
metadata:
name: autoscale-demo
namespace: cloud
spec:
maxReplicas: 5
minReplicas: 1
metrics:
- type: Pods
pods:
metricName: qps
targetAverageValue: 1
scaleTargetRef:
apiVersion: extensions/v1beta1
kind: Deployment
name: autoscale-demo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment