Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Created August 29, 2020 00:51
Show Gist options
  • Save bharatmicrosystems/7e316b9eb4f6bfa7e729a23bc5593c68 to your computer and use it in GitHub Desktop.
Save bharatmicrosystems/7e316b9eb4f6bfa7e729a23bc5593c68 to your computer and use it in GitHub Desktop.
cat <<EOF | kubectl apply -f -
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: hpa-ingress-nginx-controller
namespace: ingress-nginx
spec:
scaleTargetRef:
apiVersion: apps/v1beta1
kind: Deployment
name: ingress-nginx-controller
minReplicas: 2
maxReplicas: 100
targetCPUUtilizationPercentage: 70
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment