Skip to content

Instantly share code, notes, and snippets.

@selcukusta
Created September 20, 2020 21:27
Show Gist options
  • Save selcukusta/f86c681d0154226adfafc9cb6ce6e8bb to your computer and use it in GitHub Desktop.
Save selcukusta/f86c681d0154226adfafc9cb6ce6e8bb to your computer and use it in GitHub Desktop.
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: get-python-hpa
namespace: kubeless-fn
labels:
function: get-python
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: get-python
minReplicas: 1
maxReplicas: 20
metrics:
- type: Pods
pods:
metricName: calls_total_per_minute
targetAverageValue: "20"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment