Skip to content

Instantly share code, notes, and snippets.

@SaMnCo
Created February 23, 2018 11:37
Show Gist options
  • Save SaMnCo/6fe140aa88640b1625133094210bca69 to your computer and use it in GitHub Desktop.
Save SaMnCo/6fe140aa88640b1625133094210bca69 to your computer and use it in GitHub Desktop.
: HorizontalPodAutoscaler
apiVersion: autoscaling/v2beta1
metadata:
name: electroneum
# namespace: etn2
spec:
scaleTargetRef:
kind: Deployment
name: electroneum
minReplicas: 15
maxReplicas: 150
metrics:
- type: Object
object:
target:
kind: Service
name: cluster-metrics
metricName: cpu_capacity_remaining
targetValue: 30000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment