# -*- mode: snippet -*-
# name: horizontalpodautoscaler
# key: hpas
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region nil))
# --
---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
  name: {1:name}
  namespace: {2:default}
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: {3:target-name}
  minReplicas: 1
  maxReplicas: 10
  targetCPUUtilizationPercentage: 50