From d408467ca6e3ee14e52dee2f785d8a49d1aaab40 Mon Sep 17 00:00:00 2001 From: initsixcloud <88592055+initsixcloud@users.noreply.github.com> Date: Tue, 28 Sep 2021 01:43:21 +0530 Subject: [PATCH 1/5] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4e86dbf..b38e3aa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,7 +7,7 @@ pipeline { sh 'cp -R helm/* .' sh 'ls -ltr' sh 'pwd' - sh '/usr/local/bin/helm upgrade --install petclinic-app petclinic --set image.repository=cloudfreak.azurecr.io/cloudfreak/petclinic --set image.tag=1' + sh '/usr/local/bin/helm upgrade --install petclinic-app petclinic --set image.repository=cloudfreak.azurecr.io/cloudfreak/petclinic --set image.tag=3' } } From afab92825ae4a476faa3d8fa6473da8c7b065cdd Mon Sep 17 00:00:00 2001 From: initsixcloud <88592055+initsixcloud@users.noreply.github.com> Date: Sat, 25 Dec 2021 23:16:38 +0530 Subject: [PATCH 2/5] Update values.yaml --- helm/petclinic/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/petclinic/values.yaml b/helm/petclinic/values.yaml index 817336f..4ef58d7 100644 --- a/helm/petclinic/values.yaml +++ b/helm/petclinic/values.yaml @@ -5,7 +5,7 @@ replicaCount: 1 image: - repository: initsixcloud/petclinic + repository: cloudfreak/petclinic tag: latest pullPolicy: IfNotPresent From 887cd2f79c410010c68663fb9dca0ad97c3a6658 Mon Sep 17 00:00:00 2001 From: initsixcloud <88592055+initsixcloud@users.noreply.github.com> Date: Sat, 25 Dec 2021 23:35:19 +0530 Subject: [PATCH 3/5] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b38e3aa..9d9cb09 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,7 +7,7 @@ pipeline { sh 'cp -R helm/* .' sh 'ls -ltr' sh 'pwd' - sh '/usr/local/bin/helm upgrade --install petclinic-app petclinic --set image.repository=cloudfreak.azurecr.io/cloudfreak/petclinic --set image.tag=3' + sh '/usr/local/bin/helm upgrade --install petclinic-app petclinic --set image.repository=cloudfreak1.azurecr.io/cloudfreak1/petclinic --set image.tag=1' } } From 346e9aec4280fa1f4bab79f54b924baf959d91bd Mon Sep 17 00:00:00 2001 From: initsixcloud <88592055+initsixcloud@users.noreply.github.com> Date: Sun, 26 Dec 2021 01:51:42 +0530 Subject: [PATCH 4/5] Update service.yaml --- helm/petclinic/templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/petclinic/templates/service.yaml b/helm/petclinic/templates/service.yaml index 3ebd5b3..87c67c0 100644 --- a/helm/petclinic/templates/service.yaml +++ b/helm/petclinic/templates/service.yaml @@ -11,6 +11,6 @@ spec: app: petclinic-app type: LoadBalancer ports: - - nodePort: 32751 + - nodePort: 32750 port: 8080 targetPort: 8080 From e590fa74e9b97e337aa525de255118dbfe7b214b Mon Sep 17 00:00:00 2001 From: initsixcloud <88592055+initsixcloud@users.noreply.github.com> Date: Sun, 26 Dec 2021 16:03:44 +0530 Subject: [PATCH 5/5] Update and rename petclinic-mem-hpa.yaml to petclinic-cpu-hpa.yaml --- helm/petclinic/templates/petclinic-cpu-hpa.yaml | 12 ++++++++++++ helm/petclinic/templates/petclinic-mem-hpa.yaml | 16 ---------------- 2 files changed, 12 insertions(+), 16 deletions(-) create mode 100644 helm/petclinic/templates/petclinic-cpu-hpa.yaml delete mode 100644 helm/petclinic/templates/petclinic-mem-hpa.yaml diff --git a/helm/petclinic/templates/petclinic-cpu-hpa.yaml b/helm/petclinic/templates/petclinic-cpu-hpa.yaml new file mode 100644 index 0000000..b922c27 --- /dev/null +++ b/helm/petclinic/templates/petclinic-cpu-hpa.yaml @@ -0,0 +1,12 @@ + apiVersion: autoscaling/v1 +kind: HorizontalPodAutoscaler +metadata: + name: petclicnic-hpa +spec: + maxReplicas: 5 + minReplicas: 1 + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: petclinic-deployment + targetCPUUtilizationPercentage: 50 diff --git a/helm/petclinic/templates/petclinic-mem-hpa.yaml b/helm/petclinic/templates/petclinic-mem-hpa.yaml deleted file mode 100644 index 445847e..0000000 --- a/helm/petclinic/templates/petclinic-mem-hpa.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - name: petclinic-mem-hpa -spec: - maxReplicas: 5 - minReplicas: 1 - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: petclinic-deployment - metrics: - - type: Resource - resource: - name: memory - targetAverageUtilization: 50