diff --git a/kubernetes/autoscale/k8s/autoscale.yaml b/kubernetes/autoscale/k8s/autoscale.yaml index 6f37a7b..8e0a1f9 100644 --- a/kubernetes/autoscale/k8s/autoscale.yaml +++ b/kubernetes/autoscale/k8s/autoscale.yaml @@ -48,3 +48,17 @@ spec: ports: - port: 80 targetPort: "http" +--- +apiVersion: autoscaling/v1 +kind: HorizontalPodAutoscaler +metadata: + name: autoscale-test + namespace: default +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: autoscale-test + minReplicas: 1 + maxReplicas: 10 + targetCPUUtilizationPercentage: 50