From 27627d7a16df36a0636fa152a16525ecd63b1a55 Mon Sep 17 00:00:00 2001 From: ByeonJungHun Date: Thu, 11 Apr 2024 10:36:04 +0900 Subject: [PATCH] =?UTF-8?q?hpa=20=ED=86=B5=ED=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chl-hpa.yml | 17 ----------------- core-hpa.yml | 17 ----------------- hpa.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ mci-hpa.yml | 17 ----------------- 4 files changed, 53 insertions(+), 51 deletions(-) delete mode 100644 chl-hpa.yml delete mode 100644 core-hpa.yml create mode 100644 hpa.yml delete mode 100644 mci-hpa.yml 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