Add KEDA ScaledObject and update kustomization.yaml for csi-ehr-ic-dashboard

main
Ishrath Ahamed 1 month ago
parent e4c57a0543
commit 54595c246b

@ -0,0 +1,8 @@
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: csi-ehr-ic-ui
namespace: moh-prod
spec:
minReplicaCount: 1
maxReplicaCount: 1

@ -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
Loading…
Cancel
Save