diff --git a/chl-hpa.yml b/chl-hpa.yml deleted file mode 100644 index 16f95af..0000000 --- a/chl-hpa.yml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - name: chl-hpa - namespace: bussiness1 -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: bussiness1-chl - minReplicas: 1 - maxReplicas: 5 - metrics: - - type: Resource - resource: - name: memory - targetAverageUtilization: 80 \ No newline at end of file diff --git a/core-hpa.yml b/core-hpa.yml deleted file mode 100644 index 876f9bb..0000000 --- a/core-hpa.yml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - name: core-hpa - namespace: bussiness1 -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: bussiness1-core - minReplicas: 1 - maxReplicas: 5 - metrics: - - type: Resource - resource: - name: memory - targetAverageUtilization: 80 \ No newline at end of file diff --git a/hpa.yml b/hpa.yml new file mode 100644 index 0000000..e9e77b5 --- /dev/null +++ b/hpa.yml @@ -0,0 +1,53 @@ +apiVersion: autoscaling/v2beta1 +kind: HorizontalPodAutoscaler +metadata: + name: chl-hpa + namespace: bussiness1 +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: bussiness1-chl + minReplicas: 1 + maxReplicas: 5 + metrics: + - type: Resource + resource: + name: memory + targetAverageUtilization: 80 +--- +apiVersion: autoscaling/v2beta1 +kind: HorizontalPodAutoscaler +metadata: + name: mci-hpa + namespace: bussiness1 +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: bussiness1-mci + minReplicas: 1 + maxReplicas: 5 + metrics: + - type: Resource + resource: + name: memory + targetAverageUtilization: 80 +--- +apiVersion: autoscaling/v2beta1 +kind: HorizontalPodAutoscaler +metadata: + name: core-hpa + namespace: bussiness1 +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: bussiness1-core + minReplicas: 1 + maxReplicas: 5 + metrics: + - type: Resource + resource: + name: memory + targetAverageUtilization: 80 diff --git a/mci-hpa.yml b/mci-hpa.yml deleted file mode 100644 index ab8492a..0000000 --- a/mci-hpa.yml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - name: mci-hpa - namespace: bussiness1 -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: bussiness1-mci - minReplicas: 1 - maxReplicas: 5 - metrics: - - type: Resource - resource: - name: memory - targetAverageUtilization: 80 \ No newline at end of file