Skip to content

Instantly share code, notes, and snippets.

@miluna
Created December 2, 2021 15:02
Show Gist options
  • Save miluna/96965aa18d316f89c86b0531a2eb0630 to your computer and use it in GitHub Desktop.
Save miluna/96965aa18d316f89c86b0531a2eb0630 to your computer and use it in GitHub Desktop.
Sample Kubernetes Autoscaling yml
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: <ms-name>
namespace: default
spec:
maxReplicas: 6
minReplicas: 2
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: <ms-name>
targetCPUUtilizationPercentage: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment