apiVersion: "autoscaling/v1"
kind: "HorizontalPodAutoscaler"
metadata:
  name: "logrotate-hpa"
  namespace: "default"
  labels:
    app: "logrotate"
spec:
  scaleTargetRef:
    kind: "Deployment"
    name: "logrotate"
    apiVersion: "apps/v1beta1"
  minReplicas: 1
  maxReplicas: 5
  targetCPUUtilizationPercentage: 80
