From 54595c246b8e77793a7557178fa91d109c60be3d Mon Sep 17 00:00:00 2001 From: Ishrath Ahamed Date: Tue, 22 Apr 2025 11:19:48 +0530 Subject: [PATCH] Add KEDA ScaledObject and update kustomization.yaml for csi-ehr-ic-dashboard --- UAT/ehr/csi-ehr-ic-dashboard/hpa.yaml | 8 ++++ .../csi-ehr-ic-dashboard/kustomization.yaml | 48 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 UAT/ehr/csi-ehr-ic-dashboard/hpa.yaml create mode 100644 UAT/ehr/csi-ehr-ic-dashboard/kustomization.yaml diff --git a/UAT/ehr/csi-ehr-ic-dashboard/hpa.yaml b/UAT/ehr/csi-ehr-ic-dashboard/hpa.yaml new file mode 100644 index 0000000..f49c82c --- /dev/null +++ b/UAT/ehr/csi-ehr-ic-dashboard/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-ic-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/UAT/ehr/csi-ehr-ic-dashboard/kustomization.yaml b/UAT/ehr/csi-ehr-ic-dashboard/kustomization.yaml new file mode 100644 index 0000000..207b5cf --- /dev/null +++ b/UAT/ehr/csi-ehr-ic-dashboard/kustomization.yaml @@ -0,0 +1,48 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- https://git.cloudsolutions.com.sa/Ishrath.Ahamed/CENTRAL-BASE-REPO/ehr/ehricui +- ../../../DM-Initiator/ + +replicas: +- name: csi-ehr-ic-ui + count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/ehr-ic-ui + newName: registry.cloudsolutions.com.sa/vida-qa/ehr-ic-ui + newTag: 4.0.245.8_IR_qa + +namespace: csi-uat +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: .* + patch: |- + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-ehr-ic-dashboard" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-ic-ui + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-ic-ui