commit 82bb1c1ded2a8c9cf0ce01cdf5369dbf4cd77cff Author: Thilini Abeywickrama Date: Fri Mar 21 13:49:08 2025 +0530 Copied files from CSI_DEV_CS to CSI_UAT diff --git a/DEV/api-gateway/apigateway/kustomization.yaml b/DEV/api-gateway/apigateway/kustomization.yaml new file mode 100644 index 0000000..640bcd7 --- /dev/null +++ b/DEV/api-gateway/apigateway/kustomization.yaml @@ -0,0 +1,19 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/apigateway/api-gateway + +patchesStrategicMerge: +- patch-hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-token-filter + newName: registry.cloudsolutions.com.sa/vida-qa/csi-token-filter + newTag: 4.0.3.0-b2 + +- name: harbor.moh.gov.sa/vidamoh/api-gateway + newName: registry.cloudsolutions.com.sa/vida-qa/api-gateway + newTag: 4.0.2.0 + + +namespace: csi-dev diff --git a/DEV/api-gateway/apigateway/patch-hpa.yaml b/DEV/api-gateway/apigateway/patch-hpa.yaml new file mode 100644 index 0000000..634b4ee --- /dev/null +++ b/DEV/api-gateway/apigateway/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: api-gateway + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/base/base-utility-service-java-sev/kustomization.yaml b/DEV/base/base-utility-service-java-sev/kustomization.yaml new file mode 100644 index 0000000..4ca422b --- /dev/null +++ b/DEV/base/base-utility-service-java-sev/kustomization.yaml @@ -0,0 +1,51 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/base/baseutilityservicejava + +resources: +- ../../../DM-Sync/ + +patchesStrategicMerge: +- patch-hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/base-utility-service-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/base-utility-service-java-sev + newTag: 4.1.26.2_dev #4.1.26.1_dev #4.1.26.0_qa #4.1.28.0_qa #4.3.0.5_prod #4.3.0.0 #4.2.0.0 #4.1.10.0 + +namespace: csi-dev + +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: "base-utility-service-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-base-utility-service-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-base-utility-service-java-sev + diff --git a/DEV/base/base-utility-service-java-sev/patch-hpa.yaml b/DEV/base/base-utility-service-java-sev/patch-hpa.yaml new file mode 100644 index 0000000..9f5332d --- /dev/null +++ b/DEV/base/base-utility-service-java-sev/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-base-utility + namespace: moh-prod +spec: + minReplicaCount: 2 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/base/csi-patient-snapshot-java-sev/kustomization.yaml b/DEV/base/csi-patient-snapshot-java-sev/kustomization.yaml new file mode 100644 index 0000000..ad4c3b8 --- /dev/null +++ b/DEV/base/csi-patient-snapshot-java-sev/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/base/facadpatientsnapshot + +patchesStrategicMerge: +- patch-hpa.yaml + +# replicas: +# - name: csi-patient-snapshot-java-sev +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-patient-snapshot-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-patient-snapshot-java-sev + newTag: V1.0.1_PERF + +namespace: csi-dev diff --git a/DEV/base/csi-patient-snapshot-java-sev/patch-hpa.yaml b/DEV/base/csi-patient-snapshot-java-sev/patch-hpa.yaml new file mode 100644 index 0000000..1cabba8 --- /dev/null +++ b/DEV/base/csi-patient-snapshot-java-sev/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-patient-snapshot-java-sev + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/base/csi-personalization-service-java-sev/kustomization.yaml b/DEV/base/csi-personalization-service-java-sev/kustomization.yaml new file mode 100644 index 0000000..e3052c8 --- /dev/null +++ b/DEV/base/csi-personalization-service-java-sev/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/base/personalizationjava + +patchesStrategicMerge: +- patch-hpa.yaml + +# replicas: +# - name: csi-personalization +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-personalization-service-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-personalization-service-java-sev + newTag: 4.0.264.0-beta.3_qa #4.0.263.0-alpha.9_dev #4.0.264.0_prod #4.0.263.0-alpha.9_dev #4.0.263.0-beta.10_qa + +namespace: csi-dev diff --git a/DEV/base/csi-personalization-service-java-sev/patch-hpa.yaml b/DEV/base/csi-personalization-service-java-sev/patch-hpa.yaml new file mode 100644 index 0000000..3d6ce80 --- /dev/null +++ b/DEV/base/csi-personalization-service-java-sev/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-personalization + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/base/csi.uif.admin.ui/hpa.yaml b/DEV/base/csi.uif.admin.ui/hpa.yaml new file mode 100644 index 0000000..a89d612 --- /dev/null +++ b/DEV/base/csi.uif.admin.ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-form-builder-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/base/csi.uif.admin.ui/kustomization.yaml b/DEV/base/csi.uif.admin.ui/kustomization.yaml new file mode 100644 index 0000000..1000d6f --- /dev/null +++ b/DEV/base/csi.uif.admin.ui/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/base/formbuilderui + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: csi-form-builder-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/form-builder-ui + newName: registry.cloudsolutions.com.sa/vida-qa/csi.uif.admin.ui + newTag: 4.1.331.0-alpha.8 #4.1.331.0-alpha.7 #4.1.332.0_prod #4.1.331.0-alpha.7 #4.1.331.0-beta.23_qa #4.1.331.0-alpha.7 + +namespace: csi-dev diff --git a/DEV/base/csi.uif.admin.ui/patch-pod.yaml b/DEV/base/csi.uif.admin.ui/patch-pod.yaml new file mode 100644 index 0000000..b98909b --- /dev/null +++ b/DEV/base/csi.uif.admin.ui/patch-pod.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Pod +metadata: + name: csi-form-builder-ui +spec: + containers: + - name: csi-form-builder-ui + resources: + limits: + memory: 100Mi + requests: + cpu: 2m + memory: 25Mi \ No newline at end of file diff --git a/DEV/base/csi.uif.settings/hpa.yaml b/DEV/base/csi.uif.settings/hpa.yaml new file mode 100644 index 0000000..ed67a0d --- /dev/null +++ b/DEV/base/csi.uif.settings/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: cpu-csi-config-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/base/csi.uif.settings/kustomization.yaml b/DEV/base/csi.uif.settings/kustomization.yaml new file mode 100644 index 0000000..b096e76 --- /dev/null +++ b/DEV/base/csi.uif.settings/kustomization.yaml @@ -0,0 +1,49 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/base/configui + +resources: +- ../../../DM-Sync/ + +replicas: +- name: csi-config-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/base-ui + newName: registry.cloudsolutions.com.sa/vida-qa/csi.uif.settings + newTag: 4.0.246.0_qa #4.0.237.0_qa #4.0.232.0 #4.0.231.0_qa +namespace: csi-dev +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.uif.settings" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi.uif.settings + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi.uif.settings diff --git a/DEV/base/document-generator-core/hpa.yaml b/DEV/base/document-generator-core/hpa.yaml new file mode 100644 index 0000000..1d09bcb --- /dev/null +++ b/DEV/base/document-generator-core/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: document-generator-core + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/base/document-generator-core/kustomization.yaml b/DEV/base/document-generator-core/kustomization.yaml new file mode 100644 index 0000000..b19e5a6 --- /dev/null +++ b/DEV/base/document-generator-core/kustomization.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/base/document-generator-core + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: registry.cloudsolutions.com.sa/vida-qa/document-generator-core + newName: registry.cloudsolutions.com.sa/vida-qa/document-generator-core + newTag: 4.0.11.16 #4.0.9.0 #4.0.8.0 #4.0.7.0 #4.0.6.0 #4.0.5.0 #4.0.3.0 #4.0.2.0 #4.0.3.0 #4.0.2.0 #4.0.0.1-b6 #4.0.0.1-b2 #4.0.0.1-b4 #4.0.0.1-b1 #4.0.0.0-b4 #4.0.0.0-b3 + +namespace: csi-dev diff --git a/DEV/billing/csi-bm-approval-java-service/hpa.yaml b/DEV/billing/csi-bm-approval-java-service/hpa.yaml new file mode 100644 index 0000000..cab5368 --- /dev/null +++ b/DEV/billing/csi-bm-approval-java-service/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-bm-approval-java-serviceg + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/billing/csi-bm-approval-java-service/kustomization.yaml b/DEV/billing/csi-bm-approval-java-service/kustomization.yaml new file mode 100644 index 0000000..a4bdefa --- /dev/null +++ b/DEV/billing/csi-bm-approval-java-service/kustomization.yaml @@ -0,0 +1,66 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/billing/bmbillingapprovaljava + +resources: +- ../../../DM-Sync/ +- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +#replicas: +# - name: csi-bm-approval-java-serviceg +# count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-bm-approval-java-service + newName: registry.cloudsolutions.com.sa/vida-qa/csi-bm-approval-java-service + newTag: 4.3.660.0_qa #4.2412_1_D9_dev #4.2412_1_D2_dev #4.2411_1_D4-b15_dev #4.2411_1_D4-b11_dev #4.2411_1_D4-b10_dev #4.2411_1_D8-b1 #4.2411_1_D8_dev #4.2411_1_D7_dev + +namespace: csi-dev + +# 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-bm-approval-java-service" + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: sync-presync +# patch: |- +# - op: replace +# path: /metadata/name +# value: before-csi-bm-approval-java-service + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: sync-postsync +# patch: |- +# - op: replace +# path: /metadata/name +# value: after-csi-bm-approval-java-service + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: sync-postsync +# patch: |- +# - op: replace +# path: /metadata/name +# value: after-csi-bm-approval-java-service diff --git a/DEV/billing/csi-bm-approval-java-service/patch-pod.yaml b/DEV/billing/csi-bm-approval-java-service/patch-pod.yaml new file mode 100644 index 0000000..94ca55a --- /dev/null +++ b/DEV/billing/csi-bm-approval-java-service/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-bm-approval-java-serviceg + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-bm-approval-java-serviceg + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 250mi \ No newline at end of file diff --git a/DEV/billing/csi-bm-approval-java-service/post-sync.yaml b/DEV/billing/csi-bm-approval-java-service/post-sync.yaml new file mode 100644 index 0000000..ae3c20e --- /dev/null +++ b/DEV/billing/csi-bm-approval-java-service/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=billing_api_automation&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/billing/csi-bm-approval-ui/hpa.yaml b/DEV/billing/csi-bm-approval-ui/hpa.yaml new file mode 100644 index 0000000..34a6f3b --- /dev/null +++ b/DEV/billing/csi-bm-approval-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-approval-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/billing/csi-bm-approval-ui/kustomization.yaml b/DEV/billing/csi-bm-approval-ui/kustomization.yaml new file mode 100644 index 0000000..9e22863 --- /dev/null +++ b/DEV/billing/csi-bm-approval-ui/kustomization.yaml @@ -0,0 +1,52 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/billing/bmapprovalui + +resources: +- ../../../DM-Sync/ + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: csi-approval-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/approval-ui + newName: registry.cloudsolutions.com.sa/vida-qa/approval-ui + newTag: 4.4.44.0_qa #4.3.2.65_qa + +namespace: csi-dev +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-bm-approval-ui" +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: | + - op: replace + path: /metadata/name + value: before-csi-bm-approval-ui + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-bm-approval-ui diff --git a/DEV/billing/csi-bm-approval-ui/patch-pod.yaml b/DEV/billing/csi-bm-approval-ui/patch-pod.yaml new file mode 100644 index 0000000..03ec38e --- /dev/null +++ b/DEV/billing/csi-bm-approval-ui/patch-pod.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Pod +metadata: + name: csi-approval-ui +spec: + containers: + - name: csi-approval-ui + resources: + limits: + memory: 100Mi + requests: + cpu: 2m + memory: 25Mi \ No newline at end of file diff --git a/DEV/billing/csi-bm-billing-java-service/hpa.yaml b/DEV/billing/csi-bm-billing-java-service/hpa.yaml new file mode 100644 index 0000000..7e44bb3 --- /dev/null +++ b/DEV/billing/csi-bm-billing-java-service/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-bm-billing-java-service + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/billing/csi-bm-billing-java-service/kustomization.yaml b/DEV/billing/csi-bm-billing-java-service/kustomization.yaml new file mode 100644 index 0000000..50e360c --- /dev/null +++ b/DEV/billing/csi-bm-billing-java-service/kustomization.yaml @@ -0,0 +1,95 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/billing/bmbillingjava + +resources: +- ../../../Sync-new/ + +patchesStrategicMerge: +- hpa.yaml + +#replicas: +# - name: csi-bm-billing-java-service +# count: 0 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-bm-billing-java-service + newName: registry.cloudsolutions.com.sa/vida-qa/csi-bm-billing-java-service + newTag: 4.2503.1_D6_dev #4.8.96.0_qa #4.2503.1_D5_dev #4.2503.1_D4-b1_dev + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: .* + patch: |- + - op: replace + path: /metadata/name + value: before-csi-bm-billing-java-service + namespace: moh-uat + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "csi-bm-billing-java-service" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-bm-billing-java-service" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-bm-billing-java-service" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "billing" +# - 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-bm-billing-java-service" + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: sync-presync +# patch: |- +# - op: replace +# path: /metadata/name +# value: before-csi-bm-billing-java-service + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: sync-postsync +# patch: |- +# - op: replace +# path: /metadata/name +# value: after-csi-bm-billing-java-service + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: post +# patch: |- +# - op: replace +# path: /metadata/name +# value: post-bmbillingjava +# namespace: moh-uat diff --git a/DEV/billing/csi-bm-billing-java-service/post-sync.yaml b/DEV/billing/csi-bm-billing-java-service/post-sync.yaml new file mode 100644 index 0000000..ae3c20e --- /dev/null +++ b/DEV/billing/csi-bm-billing-java-service/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=billing_api_automation&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/billing/csi-bm-billing-ui/hpa.yaml b/DEV/billing/csi-bm-billing-ui/hpa.yaml new file mode 100644 index 0000000..9a07b28 --- /dev/null +++ b/DEV/billing/csi-bm-billing-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-billing-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/billing/csi-bm-billing-ui/kustomization.yaml b/DEV/billing/csi-bm-billing-ui/kustomization.yaml new file mode 100644 index 0000000..07e2867 --- /dev/null +++ b/DEV/billing/csi-bm-billing-ui/kustomization.yaml @@ -0,0 +1,87 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/billing/billingmasterui + +resources: +# - ../../../DM-Sync/ +- ../../../Sync-new/ + +#patchesStrategicMerge: +#- hpa.yaml + +replicas: +- name: csi-billing-ui + count: 2 + +images: +# - name: harbor.moh.gov.sa/vidamoh/csi-database-initiator +# newName: registry.cloudsolutions.com.sa/vida-qa/csi-database-initiator +# newTag: V1.0.0.178 #V1.0.0.150 #V1.0.0.66 #V1.0.0.58 #Dont change this value# +- name: harbor.moh.gov.sa/vidamoh/billing-ui + newName: registry.cloudsolutions.com.sa/vida-qa/billing-ui + newTag: 4.7.103.0_qa # Deployed this QA tag due to build issue in 4.2503_1_D8_dev #4.2503_1_D7_dev #4.2503_1_D6_dev + +namespace: csi-dev +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: .* + patch: |- + - op: replace + path: /metadata/name + value: before-csi-bm-billing-ui + namespace: moh-uat + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "csi-bm-billing-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-bm-billing-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-bm-billing-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "billing" +# - 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-bm-billing-ui" + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: sync-presync +# patch: |- +# - op: replace +# path: /metadata/name +# value: before-csi-bm-billing-ui + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: sync-postsync +# patch: |- +# - op: replace +# path: /metadata/name +# value: after-csi-bm-billing-ui diff --git a/DEV/billing/csi-bm-inte-bridge-java-service/hpa.yaml b/DEV/billing/csi-bm-inte-bridge-java-service/hpa.yaml new file mode 100644 index 0000000..84abc04 --- /dev/null +++ b/DEV/billing/csi-bm-inte-bridge-java-service/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-bm-inte-bridge-java-service + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/billing/csi-bm-inte-bridge-java-service/kustomization.yaml b/DEV/billing/csi-bm-inte-bridge-java-service/kustomization.yaml new file mode 100644 index 0000000..a5746ab --- /dev/null +++ b/DEV/billing/csi-bm-inte-bridge-java-service/kustomization.yaml @@ -0,0 +1,65 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/billing/csi-bm-inte-bridge-java-service + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-bm-inte-bridge-java-service + newName: registry.cloudsolutions.com.sa/vida-qa/csi-bm-inte-bridge-java-service + newTag: 4.2.16.0_qa + +# replicas: +# - name: csi-bm-inte-bridge-java-service +# count: 2 + +namespace: csi-dev +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-bm-inte-bridge-java-service" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-bm-inte-bridge-java-service + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-bm-inte-bridge-java-service + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-csi-bm-inte-bridge-java-service + namespace: moh-uat diff --git a/DEV/billing/csi-bm-inte-bridge-java-service/patch-pod.yaml b/DEV/billing/csi-bm-inte-bridge-java-service/patch-pod.yaml new file mode 100644 index 0000000..47fd718 --- /dev/null +++ b/DEV/billing/csi-bm-inte-bridge-java-service/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-bm-inte-bridge-java-service + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-bm-inte-bridge-java-service + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 250mi \ No newline at end of file diff --git a/DEV/billing/csi-bm-inte-bridge-java-service/post-sync.yaml b/DEV/billing/csi-bm-inte-bridge-java-service/post-sync.yaml new file mode 100644 index 0000000..ae3c20e --- /dev/null +++ b/DEV/billing/csi-bm-inte-bridge-java-service/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=billing_api_automation&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/billing/csi-bm-invoice-java-service/hpa.yaml b/DEV/billing/csi-bm-invoice-java-service/hpa.yaml new file mode 100644 index 0000000..a911914 --- /dev/null +++ b/DEV/billing/csi-bm-invoice-java-service/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-bm-invoice-java-service + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/billing/csi-bm-invoice-java-service/kustomization.yaml b/DEV/billing/csi-bm-invoice-java-service/kustomization.yaml new file mode 100644 index 0000000..5d47a9f --- /dev/null +++ b/DEV/billing/csi-bm-invoice-java-service/kustomization.yaml @@ -0,0 +1,115 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/billing/bmbillinginvoicejava + +resources: +- ../../../Sync-new/ + + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +#replicas: +# - name: csi-bm-invoice-java-service +# count: 0 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-bm-invoice-java-service + newName: registry.cloudsolutions.com.sa/vida-qa/csi-bm-invoice-java-service + newTag: 4.0225.1.D28_dev #4.0225.1.D27_dev #4.0225.1.D26-b2_dev + +namespace: csi-dev +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: .* + patch: |- + - op: replace + path: /metadata/name + value: before-csi-bm-invoice-java-service + namespace: moh-uat + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "csi-bm-invoice-java-service" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_DATA_VERSION + value: "AMD-11685" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-bm-invoice-java-service" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-bm-invoice-java-service" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "billing" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-bm-invoice-java-service + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-bm-invoice-java-service + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-bmbillinginvoicejava + namespace: moh-uat + +- target: + group: apps + version: v1 + kind: Deployment + name: csi-bm-invoice-java-service + patch: |- + - op: add + path: /spec/template/spec/containers/0/lifecycle + value: + preStop: + exec: + command: + - /bin/sh + - -c + - sleep 60 + - op: replace + path: /spec/template/spec/containers/0/resources/limits/memory + value: 2Gi + - op: replace + path: /spec/template/spec/containers/0/resources/requests/cpu + value: 50m + - op: replace + path: /spec/template/spec/containers/0/resources/requests/memory + value: 256Mi diff --git a/DEV/billing/csi-bm-invoice-java-service/patch-pod.yaml b/DEV/billing/csi-bm-invoice-java-service/patch-pod.yaml new file mode 100644 index 0000000..845354b --- /dev/null +++ b/DEV/billing/csi-bm-invoice-java-service/patch-pod.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Pod +metadata: + name: csi-bm-invoice-java-service +spec: + containers: + - name: csi-bm-invoice-java-service + resources: + limits: + memory: 3Gi + requests: + cpu: 50m + memory: 1Gi \ No newline at end of file diff --git a/DEV/billing/csi-bm-invoice-java-service/post-sync.yaml b/DEV/billing/csi-bm-invoice-java-service/post-sync.yaml new file mode 100644 index 0000000..ae3c20e --- /dev/null +++ b/DEV/billing/csi-bm-invoice-java-service/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=billing_api_automation&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/billing/csi-bm-invoice-ui/hpa.yaml b/DEV/billing/csi-bm-invoice-ui/hpa.yaml new file mode 100644 index 0000000..232e550 --- /dev/null +++ b/DEV/billing/csi-bm-invoice-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-bm-invoice-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/billing/csi-bm-invoice-ui/kustomization.yaml b/DEV/billing/csi-bm-invoice-ui/kustomization.yaml new file mode 100644 index 0000000..c2ce0ad --- /dev/null +++ b/DEV/billing/csi-bm-invoice-ui/kustomization.yaml @@ -0,0 +1,63 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/billing/bminvoiceui + +resources: +- ../../../Sync-new/ + +#patchesStrategicMerge: +##- patch-pod.yaml + +replicas: +- name: csi-bm-invoice-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/bm-invoice-ui + newName: registry.cloudsolutions.com.sa/vida-qa/bm-invoice-ui + newTag: 4.2503.1_D5_dev #4.2503.1_D4_dev #4.2503.1_D2_dev #4.2503.1_D1_dev #4.3.239.0_qa #4.2502.1_D3_dev #4.3.232.0_qa #4.3.213.0_qa # 4.2411.1_D24-B1 #4.3.205.0_qa #4.2411.1_D17_dev #4.2411.1_D13_dev + +namespace: csi-dev +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-bm-invoice-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "billing" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-bm-invoice-ui" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-bm-invoice-ui + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-bm-invoice-ui diff --git a/DEV/billing/csi-bm-invoice-ui/patch-pod.yaml b/DEV/billing/csi-bm-invoice-ui/patch-pod.yaml new file mode 100644 index 0000000..48ef788 --- /dev/null +++ b/DEV/billing/csi-bm-invoice-ui/patch-pod.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Pod +metadata: + name: csi-bm-invoice-ui +spec: + containers: + - name: csi-bm-invoice-ui + resources: + limits: + memory: 100Mi + requests: + cpu: 2m + memory: 25Mi \ No newline at end of file diff --git a/DEV/billing/csi-bm-promotion-java-service/hpa.yaml b/DEV/billing/csi-bm-promotion-java-service/hpa.yaml new file mode 100644 index 0000000..7e44bb3 --- /dev/null +++ b/DEV/billing/csi-bm-promotion-java-service/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-bm-billing-java-service + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/billing/csi-bm-promotion-java-service/kustomization.yaml b/DEV/billing/csi-bm-promotion-java-service/kustomization.yaml new file mode 100644 index 0000000..56c96e9 --- /dev/null +++ b/DEV/billing/csi-bm-promotion-java-service/kustomization.yaml @@ -0,0 +1,65 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/billing/csi-bm-promotion-java-service + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + + + +replicas: +- name: csi-bm-promotion-java-service + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-bm-promotion-java-service + newName: registry.cloudsolutions.com.sa/vida-qa/csi-bm-promotion-java-service + newTag: 4.3.3.11_dev3_dev #4.6.2.0_prod #4.6.1.0_prod #4.6.0.36 #4.6.0.35 #4.6.0.24 #4.6.0.23 #4.6.0.22 + +namespace: csi-dev + +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-bm-promotion-java-service" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-bm-promotion-java-service + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-bm-promotion-java-service + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-csi-bm-promotion-java-service + namespace: moh-uat diff --git a/DEV/billing/csi-bm-promotion-java-service/patch-pod.yaml b/DEV/billing/csi-bm-promotion-java-service/patch-pod.yaml new file mode 100644 index 0000000..7a8833d --- /dev/null +++ b/DEV/billing/csi-bm-promotion-java-service/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-bm-promotion-java-service + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-bm-promotion-java-service + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 256mi \ No newline at end of file diff --git a/DEV/billing/csi-bm-promotion-java-service/post-sync.yaml b/DEV/billing/csi-bm-promotion-java-service/post-sync.yaml new file mode 100644 index 0000000..ae3c20e --- /dev/null +++ b/DEV/billing/csi-bm-promotion-java-service/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=billing_api_automation&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/bloodbank/bb-bloodbankgui/kustomization.yaml b/DEV/bloodbank/bb-bloodbankgui/kustomization.yaml new file mode 100644 index 0000000..8c435c2 --- /dev/null +++ b/DEV/bloodbank/bb-bloodbankgui/kustomization.yaml @@ -0,0 +1,58 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/bloodbank/bloodbankui + +resources: +- ../../../Sync-new/ +#- dbsyncwithpv.yaml + + +#patchesStrategicMerge: +#- patch-hpa.yaml + +replicas: +- name: csi-bloodbank-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/bloodbank-ui + newName: registry.cloudsolutions.com.sa/vida-qa/bb-bloodbankgui + newTag: 4.2.58.0-a200_dev #4.2.58.0-a198_dev #4.2.58.0-a197_dev #4.2.58.0-a195_dev #4.2.58.0-a194_dev #4.2.58.0-a193_dev #4.2.58.0-a192_dev #4.2.58.0-a191_dev #4.2.58.0-a188_dev #4.2.58.0-a187_dev #4.2.58.0-a185_dev #4.2.58.0-a184_dev #4.2.58.0-a176_dev #4.2.69.0-b127_qa #4.2.58.0-a170_dev #4.2.58.0-a169_dev #4.2.58.0-a168_dev #4.2.58.0-a166_dev #4.2.58.0-a159_dev #4.2.58.0-a152_dev #4.2.58.0-a151_dev #4.2.58.0-a147_dev #4.2.58.0-a146_dev #4.2.58.0-a145_dev #4.2.58.0-a144_dev #4.2.58.0-a143_dev #4.2.58.0-a140_dev #4.2.58.0-a136_dev #4.2.58.0-a129_dev #4.2.58.0-a128_dev #4.2.58.0-a127_dev #4.2.58.0-a125_dev #4.2.58.0-a121_dev #4.2.58.0-a119_dev #4.2.58.0-a110_dev #4.2.58.0-a108_dev #4.2.58.0-a103_dev #4.2.58.0-a98_dev #4.2.58.0-a97_dev #4.2.69.0-b42_qa #4.2.58.0-a79_dev #4.2.58.0-a78 #4.2.58.0-a77 #4.2.58.0-a76 #4.2.58.0-a69 #4.2.58.0-a68 #4.2.58.0-a61 #4.2.58.0-a59 #4.2.58.0-a32 #4.2.58.0-a29-a2 #4.2.58.0-a27-a1 #4.2.58.0-a29 #4.2.58.0-a28 #4.2.58.0-a23 #4.2.58.0-a22 #4.2.58.0-a21 #4.2.58.0-a20 #4.2.58.0-a18 #4.2.58.0-a16 #4.2.58.0-a15 #4.2.58.0-a14.2 #4.2.58.0-a10.1 #4.2.58.0-a9.1 #4.2.58.0-a10 #4.2.58.0-a8 #4.2.58.0-a7 #4.2.58.0-a5 #4.2.57.0-a1 #4.1.225.0-HF_prod #4.2405_5_prod #4.2405_1_prod #4.2.46.0_prod #4.2.45.2 + +namespace: csi-dev +patchesJson6902: + - target: + group: batch + version: v1 + kind: Job + name: .* + patch: |- + - op: replace + path: /metadata/name + value: before-bloodbankui + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "bb-bloodbankgui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_DATA_VERSION + value: "4.1.56.0" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "bb-bloodbankgui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "bb-bloodbankgui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "bloodbank" diff --git a/DEV/bloodbank/bb-bloodbankgui/patch-hpa.yaml b/DEV/bloodbank/bb-bloodbankgui/patch-hpa.yaml new file mode 100644 index 0000000..e6cc2e5 --- /dev/null +++ b/DEV/bloodbank/bb-bloodbankgui/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-bloodbank-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/bloodbank/bb-donation_srv/hpa.yaml b/DEV/bloodbank/bb-donation_srv/hpa.yaml new file mode 100644 index 0000000..085b920 --- /dev/null +++ b/DEV/bloodbank/bb-donation_srv/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-bloodbnk + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/bloodbank/bb-donation_srv/kustomization.yaml b/DEV/bloodbank/bb-donation_srv/kustomization.yaml new file mode 100644 index 0000000..2c384b8 --- /dev/null +++ b/DEV/bloodbank/bb-donation_srv/kustomization.yaml @@ -0,0 +1,179 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/bloodbank/bloodbanknet + +resources: +- ../../../Sync-new/ +# ../../../DM-Sync/ +# - ../../../DM-Sync/ + +patchesStrategicMerge: +- hpa.yaml + +#replicas: +# - name: csi-net-bloodbnk +# count: 0 + +images: +- name: harbor.moh.gov.sa/vidamoh/bb-donation-srv + newName: registry.cloudsolutions.com.sa/vida-qa/bb-donation_srv + newTag: 4.2.150.0-a99_dev #4.2.150.0-a95_dev #4.2.150.0-a93_dev #4.2.150.0-b91_qa #4.2.150.0-a85_dev #4.2.150.0-a84_dev #4.2.150.0-b79_qa #4.2.150.0-a80_dev #4.2.150.0-a79_dev #4.2.150.0-a78_dev #4.2.150.0-a76_dev #4.2.150.0-a75_dev #4.2.150.0-a74_dev + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: before + patch: |- + - op: replace + path: /metadata/name + value: before-bloodbanknet + namespace: moh-uat + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "bloodbanknet" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_DATA_VERSION + value: "4.2.106.0" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "bb-donation_srv" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "bb-donation_srv" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "bloodbank" +# - target: +# group: batch +# version: v1 +# kind: Job +# name: data-migration-presync +# patch: |- +# - op: replace +# path: /metadata/name +# value: data-migration-presync-bloodbanknet +# - op: add +# path: /spec/template/spec/containers/0/env/- +# value: +# name: CSI_DATA_VERSION +# value: "4.0.127.0" +# - op: add +# path: /spec/template/spec/containers/0/env/- +# value: +# name: CSI_PROJECT_NAME +# value: "bb-donation_srv" +# - op: add +# path: /spec/template/spec/containers/0/env/- +# value: +# name: CSI_MODULE_NAME +# value: "bb-donation_srv" +# - op: add +# path: /spec/template/spec/containers/0/env/- +# value: +# name: CSI_PARENT_MODULE_NAME +# value: "bloodbank" + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: data-migration-postsync +# patch: |- +# - op: replace +# path: /metadata/name +# value: data-migration-postsync-bloodbanknet +# - op: add +# path: /spec/template/spec/containers/0/env/- +# value: +# name: CSI_DATA_VERSION +# value: "4.0.127.0" +# - op: add +# path: /spec/template/spec/containers/0/env/- +# value: +# name: CSI_PROJECT_NAME +# value: "bb-donation_srv" +# - op: add +# path: /spec/template/spec/containers/0/env/- +# value: +# name: CSI_MODULE_NAME +# value: "bb-donation_srv" +# - op: add +# path: /spec/template/spec/containers/0/env/- +# value: +# name: CSI_PARENT_MODULE_NAME +# value: "bloodbank" + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: .* +# patch: | +# - op: add +# path: /spec/template/spec/containers/0/env/- +# value: +# name: CSI_PROJECT_NAME +# value: "bb-donation_srv" + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: sync-presync +# patch: |- +# - op: replace +# path: /metadata/name +# value: before-bb-donation-srv + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: sync-postsync +# patch: |- +# - op: replace +# path: /metadata/name +# value: after-bb-donation-srv +# patchesJson6902: +# - target: +# group: apps +# version: v1 +# kind: Deployment +# name: csi-net-bloodbnk +# patch: | +# - op: add +# path: /spec/template/spec/containers/0/volumeMounts +# value: +# - name: volume-csi-net-tenant-mapping +# mountPath: /app/mappings/ +# readOnly: true +# - op: add +# path: /spec/template/spec/volumes +# value: +# - name: volume-csi-net-tenant-mapping +# secret: +# secretName: secret-csi-net-tenant-mapping +# - target: +# group: batch +# version: v1 +# kind: Job +# name: post +# patch: | +# - op: replace +# path: /metadata/name +# value: post-bloodbanknet diff --git a/DEV/bloodbank/bb-donation_srv/post-sync.yaml b/DEV/bloodbank/bb-donation_srv/post-sync.yaml new file mode 100644 index 0000000..a3fa6d8 --- /dev/null +++ b/DEV/bloodbank/bb-donation_srv/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Gryffindor-api-autoday_bloodbank&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: init-database-secrets #automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/bloodbank/csi-blood-transfusion-java/hpa.yaml b/DEV/bloodbank/csi-blood-transfusion-java/hpa.yaml new file mode 100644 index 0000000..48218bd --- /dev/null +++ b/DEV/bloodbank/csi-blood-transfusion-java/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-java-blood-transfusion + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/bloodbank/csi-blood-transfusion-java/kustomization.yaml b/DEV/bloodbank/csi-blood-transfusion-java/kustomization.yaml new file mode 100644 index 0000000..0271012 --- /dev/null +++ b/DEV/bloodbank/csi-blood-transfusion-java/kustomization.yaml @@ -0,0 +1,29 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/bloodbank/bloodtransfusionjava + +resources: +- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-blood-transfusion-java + newName: registry.cloudsolutions.com.sa/vida-qa/csi-blood-transfusion-java + newTag: 4.0.21.0_prod #4.0.8.0 + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-bloodtransfusionjava + namespace: moh-uat diff --git a/DEV/bloodbank/csi-blood-transfusion-java/post-sync.yaml b/DEV/bloodbank/csi-blood-transfusion-java/post-sync.yaml new file mode 100644 index 0000000..738dcd7 --- /dev/null +++ b/DEV/bloodbank/csi-blood-transfusion-java/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Gryffindor-api-autoday_bloodbank&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/bloodbank/csi-java-bb-service/hpa.yaml b/DEV/bloodbank/csi-java-bb-service/hpa.yaml new file mode 100644 index 0000000..4762434 --- /dev/null +++ b/DEV/bloodbank/csi-java-bb-service/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-java-bb-service + namespace: moh-prod +spec: + minReplicaCount: 1 #2 + maxReplicaCount: 1 #3 \ No newline at end of file diff --git a/DEV/bloodbank/csi-java-bb-service/kustomization.yaml b/DEV/bloodbank/csi-java-bb-service/kustomization.yaml new file mode 100644 index 0000000..1f3df45 --- /dev/null +++ b/DEV/bloodbank/csi-java-bb-service/kustomization.yaml @@ -0,0 +1,61 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/bloodbank/bloodbankjava + +resources: +- ../../../DM-Sync/ +- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-java-bb-service + newName: registry.cloudsolutions.com.sa/vida-qa/csi-java-bb-service + newTag: 4.1.83.0 #4.1.83.0 #4.1.78.2_prod #4.1.79.0 #4.1.30.0 + +namespace: csi-dev +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-java-bb-service" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-java-bb-service + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-java-bb-service + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-bloodbankjava + namespace: moh-uat diff --git a/DEV/bloodbank/csi-java-bb-service/post-sync.yaml b/DEV/bloodbank/csi-java-bb-service/post-sync.yaml new file mode 100644 index 0000000..738dcd7 --- /dev/null +++ b/DEV/bloodbank/csi-java-bb-service/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Gryffindor-api-autoday_bloodbank&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/bloodbank/csi-net-bb-mgt-srv/kustomization.yaml b/DEV/bloodbank/csi-net-bb-mgt-srv/kustomization.yaml new file mode 100644 index 0000000..bae63fb --- /dev/null +++ b/DEV/bloodbank/csi-net-bb-mgt-srv/kustomization.yaml @@ -0,0 +1,33 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/bloodbank/csinetbbmgtsrv + +# resources: +# - post-sync.yaml + +patchesStrategicMerge: +- patch-hpa.yaml + +#replicas: +# - name: csi-net-bloodbnk-mgt +# count: 0 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-net-bb-mgt-srv + newName: registry.cloudsolutions.com.sa/vida-qa/csi-net-bb-mgt-srv + newTag: 4.0.79.0-a127_dev #4.0.79.0-a126_dev #4.0.79.0-a125_dev #4.0.79.0-a124_dev #4.0.79.0-a123_dev #4.0.79.0-a120_dev #4.0.79.0-a120-5 #4.0.79.0-a120-2 #4.0.79.0-a118_dev #4.0.79.0-a117 #4.0.79.0-a116_dev #4.0.79.0-a113_dev #4.0.79.0-b168_qa #4.0.79.0-a104_dev #4.0.79.0-a103 #4.0.81.14_prod_hf #4.0.79.0-a102_dev #4.0.79.0-a96_dev #4.0.79.0-a95_dev #4.0.79.0-a94_dev #4.0.79.0-a89_dev #4.0.79.0-a86_dev #4.0.79.0-a85_dev #4.0.79.0-a83_dev #4.0.79.0-a82_dev #4.0.79.0-a81_dev #4.0.79.0-a79_dev #4.0.79.0-a78_dev #4.0.79.0-a77_dev #4.0.79.0-a76_dev #4.0.79.0-a75_dev #4.0.79.0-a74_dev #4.0.79.0-a63_dev #4.0.79.0-a60_dev #4.0.79.0-a51_dev #4.0.79.0-a50_dev #4.0.79.0-a47_dev #4.0.79.0-a46_dev #4.0.79.0-a45_dev #4.0.79.0-a43_dev #4.0.79.0-a42 #4.0.79.0-a40_dev #4.0.79.0-a37 #4.0.79.0-a36_dev #4.0.79.0-a32 #4.0.79.0-a31 #4.0.79.0-a28 #4.0.79.0-a27 #4.0.79.0-a24 #4.0.79.0-a23 #4.0.79.0-a90 #4.0.79.0-a21 #4.0.79.0-a18 #4.0.79.0-a12 #4.0.79.0-a12 #4.0.79.0-a8 #4.0.79.0-a4 #4.0.77.0-a8 #4.0.77.0-a6 #4.0.76.0-a46 #4.0.76.0-a42 #4.0.76.0-a39 #4.0.76.0-a33 #4.0.76.0-a28 #4.0.76.0-a24 #4.0.76.0-a18 #4.0.76.0-a17 #4.0.76.0-a8 #4.0.76.0-a5 #4.0.76.0-b2 #4.0.76.0-a1 #4.0.75.0-a3 #4.0.73.0-a16 #4.0.75.0-a2 #4.0.74.0-a2 #4.0.74.0-a1 #4.0.73.0-b9-a1.a1 #4.0.73.0-b9-a1.a1 #4.0.73.0-b9-a1 #4.0.73.0-b8-a1-a #4.0.73.0-b7-a1 #4.0.73.0-b5-a37 #4.0.73.0-b5-a35 #4.0.73.0-b5-a33 #4.0.73.0-b5-a31 #4.0.73.0-b5-a30 #4.0.73.0-b5-a22 #4.0.73.0-b5-a18.1 #4.0.73.0-b5-a17 #4.0.73.0-b5-a16 #4.0.73.0-b5-a1 #4.2405_1_prod #4.0.48.26_prod #4.0.66.0_qa #4.0.48.23_prod #4.0.33.7 + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-csinetbbmgtsrv + namespace: moh-uat diff --git a/DEV/bloodbank/csi-net-bb-mgt-srv/patch-hpa.yaml b/DEV/bloodbank/csi-net-bb-mgt-srv/patch-hpa.yaml new file mode 100644 index 0000000..a66d7c5 --- /dev/null +++ b/DEV/bloodbank/csi-net-bb-mgt-srv/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-bloodbnk-mgt + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/bloodbank/csi-net-bb-mgt-srv/post-sync.yaml b/DEV/bloodbank/csi-net-bb-mgt-srv/post-sync.yaml new file mode 100644 index 0000000..738dcd7 --- /dev/null +++ b/DEV/bloodbank/csi-net-bb-mgt-srv/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Gryffindor-api-autoday_bloodbank&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/cssd/csi-cssd-java-sev/hpa.yaml b/DEV/cssd/csi-cssd-java-sev/hpa.yaml new file mode 100644 index 0000000..9be625a --- /dev/null +++ b/DEV/cssd/csi-cssd-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-cssd-java-sev + namespace: csi-dev +spec: + minReplicaCount: 2 + maxReplicaCount: 3 \ No newline at end of file diff --git a/DEV/cssd/csi-cssd-java-sev/kustomization.yaml b/DEV/cssd/csi-cssd-java-sev/kustomization.yaml new file mode 100644 index 0000000..2408d30 --- /dev/null +++ b/DEV/cssd/csi-cssd-java-sev/kustomization.yaml @@ -0,0 +1,53 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/cssd/csi-cssd-java-sev + +resources: +- ../../../DM-Sync/ + +# patchesStrategicMerge: +# - hpa.yaml + +replicas: +- name: csi-cssd-java-sev + count: 1 + +images: +- name: registry.cloudsolutions.com.sa/dev/csi-cssd-java-sev + newName: registry.cloudsolutions.com.sa/qa/csi-cssd-java-sev + newTag: V4.0.0724-703_qa + +namespace: csi-dev + +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-cssd-java-sev" +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-cssd-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-cssd-java-sev diff --git a/DEV/cssd/csi-cssd-node-sev/hpa.yaml b/DEV/cssd/csi-cssd-node-sev/hpa.yaml new file mode 100644 index 0000000..1ed25ea --- /dev/null +++ b/DEV/cssd/csi-cssd-node-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-cssd-node-sev + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/cssd/csi-cssd-node-sev/kustomization.yaml b/DEV/cssd/csi-cssd-node-sev/kustomization.yaml new file mode 100644 index 0000000..d0cdb65 --- /dev/null +++ b/DEV/cssd/csi-cssd-node-sev/kustomization.yaml @@ -0,0 +1,19 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/cssd/csi-cssd-node-sev + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-cssd-node-sev +# count: 1 + +images: +- name: registry.cloudsolutions.com.sa/dev/csi-cssd-node-sev + newName: registry.cloudsolutions.com.sa/qa/csi-cssd-node-sev + newTag: V4.0.0724-148_qa #V4.0.0724-90_dev #V4.0.0724-76_qa #V4.0.0724-76_qa #V4.0.0724-81_dev + +namespace: csi-dev + diff --git a/DEV/cssd/csi-cssd-ui/hpa.yaml b/DEV/cssd/csi-cssd-ui/hpa.yaml new file mode 100644 index 0000000..2d702b8 --- /dev/null +++ b/DEV/cssd/csi-cssd-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-cssd-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/cssd/csi-cssd-ui/kustomization.yaml b/DEV/cssd/csi-cssd-ui/kustomization.yaml new file mode 100644 index 0000000..5ac6c62 --- /dev/null +++ b/DEV/cssd/csi-cssd-ui/kustomization.yaml @@ -0,0 +1,20 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/cssd/csi-cssd-ui + +# patchesStrategicMerge: +# - hpa.yaml + +replicas: +- name: csi-cssd-ui + count: 1 + + +images: +- name: registry.cloudsolutions.com.sa/vida-qa/csi-cssd-ui + newName: registry.cloudsolutions.com.sa/qa/csi-cssd-ui + newTag: V4.0.0724-70_qa + + +namespace: csi-dev diff --git a/DEV/dms/csi-document-management-service/kustomization.yaml b/DEV/dms/csi-document-management-service/kustomization.yaml new file mode 100644 index 0000000..076cd89 --- /dev/null +++ b/DEV/dms/csi-document-management-service/kustomization.yaml @@ -0,0 +1,58 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/dms/csi-document-management-service + +resources: +- ../../../Sync-new/ + +# patchesStrategicMerge: +# - patch-hpa.yaml + +replicas: +- name: csi-document-management-service + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-document-management-service + newName: registry.cloudsolutions.com.sa/vida-qa/csi-document-management-service + newTag: 4.1.2.36_1_dev + +namespace: csi-dev + +patchesJSON6902: + - target: + group: batch + version: v1 + kind: Job + name: before + patch: |- + - op: replace + path: /metadata/name + value: before-dms + namespace: moh-uat + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "csi-java-bb-service" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_DATA_VERSION + value: "4.2.106.0" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-document-management-service" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-document-management-service" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "dms" diff --git a/DEV/dms/csi-document-management-service/patch-hpa.yaml b/DEV/dms/csi-document-management-service/patch-hpa.yaml new file mode 100644 index 0000000..5794923 --- /dev/null +++ b/DEV/dms/csi-document-management-service/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-document-management-service + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/dms/dms-ui/hpa.yaml b/DEV/dms/dms-ui/hpa.yaml new file mode 100644 index 0000000..5553761 --- /dev/null +++ b/DEV/dms/dms-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-dms-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/dms/dms-ui/kustomization.yaml b/DEV/dms/dms-ui/kustomization.yaml new file mode 100644 index 0000000..12b3744 --- /dev/null +++ b/DEV/dms/dms-ui/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/dms/dmsui + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: csi-dms-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/dms-ui + newName: registry.cloudsolutions.com.sa/vida-qa/dms-ui + newTag: 4.1.7.22_1 #4.1.7.20_2 #4.1.8.0_5 #4.1.7.14 #4.1.7.13 #4.1.7.10 + +namespace: csi-dev diff --git a/DEV/dms/document-management-engine/kustomization.yaml b/DEV/dms/document-management-engine/kustomization.yaml new file mode 100644 index 0000000..9e3abdf --- /dev/null +++ b/DEV/dms/document-management-engine/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/sasmitha.athige/BASE/src/branch/main/dms/dmsstorageengine + +patchesStrategicMerge: +- patch-hpa.yaml + +# replicas: +# - name: document-storage-engine-service +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/document-management-engine + newName: registry.cloudsolutions.com.sa/vida-qa/document-management-engine + newTag: 1.5.9 + +namespace: csi-dev diff --git a/DEV/dms/document-management-engine/patch-hpa.yaml b/DEV/dms/document-management-engine/patch-hpa.yaml new file mode 100644 index 0000000..42ffef3 --- /dev/null +++ b/DEV/dms/document-management-engine/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: document-storage-engine-service + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/dms/document-management-middleware/kustomization.yaml b/DEV/dms/document-management-middleware/kustomization.yaml new file mode 100644 index 0000000..292738e --- /dev/null +++ b/DEV/dms/document-management-middleware/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/dms/dmsmiddleware + +patchesStrategicMerge: +- patch-hpa.yaml + +# replicas: +# - name: document-management-middleware +# count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/document-management-middleware + newName: registry.cloudsolutions.com.sa/vida-qa/document-management-middleware + newTag: 4.1.2.16 #4.1.2.10 #4.1.2.9 #4.1.1.19-hf01 + +namespace: csi-dev diff --git a/DEV/dms/document-management-middleware/patch-hpa.yaml b/DEV/dms/document-management-middleware/patch-hpa.yaml new file mode 100644 index 0000000..6549abb --- /dev/null +++ b/DEV/dms/document-management-middleware/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: document-management-middleware + namespace: moh-prod +spec: + minReplicaCount: 0 + maxReplicaCount: 0 \ No newline at end of file diff --git a/DEV/econsent/e-consent-srv/hpa.yaml b/DEV/econsent/e-consent-srv/hpa.yaml new file mode 100644 index 0000000..ab8fbb8 --- /dev/null +++ b/DEV/econsent/e-consent-srv/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: cs-net-econsent + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/econsent/e-consent-srv/kustomization.yaml b/DEV/econsent/e-consent-srv/kustomization.yaml new file mode 100644 index 0000000..369a349 --- /dev/null +++ b/DEV/econsent/e-consent-srv/kustomization.yaml @@ -0,0 +1,35 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/econsent/econsent + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: cs-net-econsent +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/e-consent + newName: registry.cloudsolutions.com.sa/vida-qa/e-consent-srv + newTag: '3.8' #4.3.0.1 #4.2.0.2 #v2.5 + +namespace: csi-dev + +patchesJson6902: +- target: + group: apps + version: v1 + kind: Deployment + name: cs-net-econsent + patch: |- + - op: replace + path: /spec/template/spec/containers/0/resources/limits/memory + value: 2Gi + - op: replace + path: /spec/template/spec/containers/0/resources/requests/cpu + value: 50m + - op: replace + path: /spec/template/spec/containers/0/resources/requests/memory + value: 1Gi diff --git a/DEV/econsent/e-consent-srv/patch-pod.yaml b/DEV/econsent/e-consent-srv/patch-pod.yaml new file mode 100644 index 0000000..8afc70d --- /dev/null +++ b/DEV/econsent/e-consent-srv/patch-pod.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Pod +metadata: + name: cs-net-econsent +spec: + containers: + - name: cs-net-econsent + resources: + limits: + memory: 2Gi + requests: + cpu: 50m + memory: 1Gi \ No newline at end of file diff --git a/DEV/econsent/e-consent-ui/hpa.yaml b/DEV/econsent/e-consent-ui/hpa.yaml new file mode 100644 index 0000000..801f4a8 --- /dev/null +++ b/DEV/econsent/e-consent-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: cs-net-econsentui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/econsent/e-consent-ui/kustomization.yaml b/DEV/econsent/e-consent-ui/kustomization.yaml new file mode 100644 index 0000000..58774d4 --- /dev/null +++ b/DEV/econsent/e-consent-ui/kustomization.yaml @@ -0,0 +1,35 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/econsent/econsentui + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: cs-net-econsentui + count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/e-consent-ui + newName: registry.cloudsolutions.com.sa/vida-qa/e-consent-ui + newTag: '3.2' #ECN.V2.0.4-test-4 + +namespace: csi-dev + +patchesJson6902: +- target: + group: apps + version: v1 + kind: Deployment + name: cs-net-econsentui + patch: |- + - op: replace + path: /spec/template/spec/containers/0/resources/limits/memory + value: 1Gi + - op: replace + path: /spec/template/spec/containers/0/resources/requests/cpu + value: 25m + - op: replace + path: /spec/template/spec/containers/0/resources/requests/memory + value: 256Mi diff --git a/DEV/econsent/e-consent-ui/patch-pod.yaml b/DEV/econsent/e-consent-ui/patch-pod.yaml new file mode 100644 index 0000000..744384b --- /dev/null +++ b/DEV/econsent/e-consent-ui/patch-pod.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Pod +metadata: + name: cs-net-econsentui +spec: + containers: + - name: cs-net-econsentui + resources: + limits: + memory: 1Gi + requests: + cpu: 25m + memory: 256Mi \ No newline at end of file diff --git a/DEV/econsent/e-consent-v2/kustomization.yaml b/DEV/econsent/e-consent-v2/kustomization.yaml new file mode 100644 index 0000000..aa8f1ae --- /dev/null +++ b/DEV/econsent/e-consent-v2/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/econsent/e-consent-v2 + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: e-consent-v2 + count: 1 + +images: +- name: registry.cloudsolutions.com.sa/vida-qa/e-consent-v2 + newName: registry.cloudsolutions.com.sa/vida-qa/e-consent-v2 + newTag: 1.0.37 #1.0.25 #1.0.24 #1.0.21 #1.0.18 #1.0.16 #1.0.14 #1.0.13 #1.0.12 #1.0.10 #1.0.9 #1.0.8 + +namespace: csi-dev diff --git a/DEV/econsent/e-consent-v2/patch-pod.yaml b/DEV/econsent/e-consent-v2/patch-pod.yaml new file mode 100644 index 0000000..d60841d --- /dev/null +++ b/DEV/econsent/e-consent-v2/patch-pod.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Pod +metadata: + name: e-consent-v2 +spec: + containers: + - name: e-consent-v2 + resources: + limits: + memory: 1Gi + requests: + cpu: 25m + memory: 256Mi diff --git a/DEV/ehr/csi-ehr-com-ip-dashboardwidget-dotnet-sev/hpa.yaml b/DEV/ehr/csi-ehr-com-ip-dashboardwidget-dotnet-sev/hpa.yaml new file mode 100644 index 0000000..4cc0e87 --- /dev/null +++ b/DEV/ehr/csi-ehr-com-ip-dashboardwidget-dotnet-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-ehr-dboardpc + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-com-ip-dashboardwidget-dotnet-sev/kustomization.yaml b/DEV/ehr/csi-ehr-com-ip-dashboardwidget-dotnet-sev/kustomization.yaml new file mode 100644 index 0000000..f5913f5 --- /dev/null +++ b/DEV/ehr/csi-ehr-com-ip-dashboardwidget-dotnet-sev/kustomization.yaml @@ -0,0 +1,66 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehripdashboardwiddotnet + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + +#replicas: +# - name: csi-net-ehr-dboardpc +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-com-ip-dashboardwidget-dotnet-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-com-ip-dashboardwidget-dotnet-sev + newTag: 4.0.2.0 + +namespace: csi-dev + +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-com-ip-dashboardwidget-dotnet-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-com-ip-dashboardwidget-dotnet-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-com-ip-dashboardwidget-dotnet-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehripdashboardwiddotnet + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-com-ip-dashboardwidget-dotnet-sev/post-sync.yaml b/DEV/ehr/csi-ehr-com-ip-dashboardwidget-dotnet-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-com-ip-dashboardwidget-dotnet-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-com-ip-discharge-dotnet-sev/hpa.yaml b/DEV/ehr/csi-ehr-com-ip-discharge-dotnet-sev/hpa.yaml new file mode 100644 index 0000000..2f8f0f5 --- /dev/null +++ b/DEV/ehr/csi-ehr-com-ip-discharge-dotnet-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-ehr-ip-discharg + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-com-ip-discharge-dotnet-sev/kustomization.yaml b/DEV/ehr/csi-ehr-com-ip-discharge-dotnet-sev/kustomization.yaml new file mode 100644 index 0000000..2a1e8e7 --- /dev/null +++ b/DEV/ehr/csi-ehr-com-ip-discharge-dotnet-sev/kustomization.yaml @@ -0,0 +1,30 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehripdischargedotnet + +resources: +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-com-ip-discharge-dotnet-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-com-ip-discharge-dotnet-sev + newTag: 4.0.10.0 + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehripdischargedotnet + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-com-ip-discharge-dotnet-sev/post-sync.yaml b/DEV/ehr/csi-ehr-com-ip-discharge-dotnet-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-com-ip-discharge-dotnet-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-com-opd-master-dotnet-sev/hpa.yaml b/DEV/ehr/csi-ehr-com-opd-master-dotnet-sev/hpa.yaml new file mode 100644 index 0000000..4566f48 --- /dev/null +++ b/DEV/ehr/csi-ehr-com-opd-master-dotnet-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-ehr-opd-master + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-com-opd-master-dotnet-sev/kustomization.yaml b/DEV/ehr/csi-ehr-com-opd-master-dotnet-sev/kustomization.yaml new file mode 100644 index 0000000..c348ccc --- /dev/null +++ b/DEV/ehr/csi-ehr-com-opd-master-dotnet-sev/kustomization.yaml @@ -0,0 +1,66 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehropdmasterdotnet + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-net-ehr-opd-master +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-com-opd-master-dotnet-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-com-opd-master-dotnet-sev + newTag: 4.1.4.8-b1 #4.1.4.8 #4.1.4.6 #4.1.4.4 #4.1.4.1 + +namespace: csi-dev + +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-com-opd-master-dotnet-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-com-opd-master-dotnet-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-com-opd-master-dotnet-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehropdmasterdotnet + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-com-opd-master-dotnet-sev/post-sync.yaml b/DEV/ehr/csi-ehr-com-opd-master-dotnet-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-com-opd-master-dotnet-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-com-opd-patient-dotnet-sev/hpa.yaml b/DEV/ehr/csi-ehr-com-opd-patient-dotnet-sev/hpa.yaml new file mode 100644 index 0000000..6552bc0 --- /dev/null +++ b/DEV/ehr/csi-ehr-com-opd-patient-dotnet-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-ehr-opd-patient + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-com-opd-patient-dotnet-sev/kustomization.yaml b/DEV/ehr/csi-ehr-com-opd-patient-dotnet-sev/kustomization.yaml new file mode 100644 index 0000000..e9abe3c --- /dev/null +++ b/DEV/ehr/csi-ehr-com-opd-patient-dotnet-sev/kustomization.yaml @@ -0,0 +1,66 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehropdpatientdotnet + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-net-ehr-opd-patient +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-com-opd-patient-dotnet-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-com-opd-patient-dotnet-sev + newTag: 4.0.5.40_prod #4.0.5.36_a4 #4.0.5.33_prod #4.0.5.21 #4.0.5.17 #4.0.5.12 #4.0.5.8 #4.0.5.6 + +namespace: csi-dev + +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-com-opd-patient-dotnet-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-com-opd-patient-dotnet-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-com-opd-patient-dotnet-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehropdpatientdotnet + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-com-opd-patient-dotnet-sev/post-sync.yaml b/DEV/ehr/csi-ehr-com-opd-patient-dotnet-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-com-opd-patient-dotnet-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-common-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-common-java-sev/kustomization.yaml new file mode 100644 index 0000000..5b1da46 --- /dev/null +++ b/DEV/ehr/csi-ehr-common-java-sev/kustomization.yaml @@ -0,0 +1,77 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: + - https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehrcommonjava +resources: +# - ../../../DM-Sync/ +# - post-sync.yaml + +patchesStrategicMerge: + - patch-hpa.yaml + #- patch-pod.yaml + +images: + - name: harbor.moh.gov.sa/vidamoh/csi-ehr-common-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-common-java-sev + newTag: 4.2409.147-b2_dev #4.2409.138_dev #4.2409.129_dev #4.2409.128_dev #4.2409.127_dev #4.2412_09_IR5_qa #4.2412_09_IR3_dev #4.2409.115_dev #4.2409.111_dev #4.2409.110_dev #4.2409.107_dev #4.2409.106_dev #4.2409.103_dev #4.2409.102_dev #4.2409.101_dev #4.2409.98_dev #4.2409.94_dev #4.2409.92_dev #4.2409.91_dev #4.2409.86_dev_dev #4.2409.83_dev #4.2409.81_dev #4.2409.80_dev #4.2409.77_dev #4.2409.76_dev #4.2409.75_dev #4.2409.72_dev #4.2409.71_dev #4.2409.69_dev #4.2409.67_dev #4.2409.65_dev #4.2409.64_dev #4.2409.62_dev #4.2409.58_dev #4.2409.57_dev +namespace: csi-dev +patchesJson6902: + - target: + group: apps + version: v1 + kind: Deployment + name: csi-ehr-common + patch: |- + - op: replace + path: /spec/template/spec/containers/0/resources/limits/memory + value: 1.5Gi + - op: replace + path: /spec/template/spec/containers/0/resources/requests/cpu + value: 50m + - op: replace + path: /spec/template/spec/containers/0/resources/requests/memory + value: 256Mi + + - 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-common-java-sev" + + - target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-common-java-sev + + - target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-common-java-sev + + - target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-csi-ehr-common + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-common-java-sev/patch-hpa.yaml b/DEV/ehr/csi-ehr-common-java-sev/patch-hpa.yaml new file mode 100644 index 0000000..4dc367d --- /dev/null +++ b/DEV/ehr/csi-ehr-common-java-sev/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-common + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-common-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-common-java-sev/patch-pod.yaml new file mode 100644 index 0000000..bd9c2bb --- /dev/null +++ b/DEV/ehr/csi-ehr-common-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-common + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-common + resources: + limits: + memory: 2Gi + requests: + cpu: 600m + memory: 1Gi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-common-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-common-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-common-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-common-scheduler-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-common-scheduler-java-sev/hpa.yaml new file mode 100644 index 0000000..319477f --- /dev/null +++ b/DEV/ehr/csi-ehr-common-scheduler-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-common-scheduler + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-common-scheduler-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-common-scheduler-java-sev/kustomization.yaml new file mode 100644 index 0000000..b07ca49 --- /dev/null +++ b/DEV/ehr/csi-ehr-common-scheduler-java-sev/kustomization.yaml @@ -0,0 +1,86 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehrschedulerjava + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +# patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: csi-ehr-common-scheduler + count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-common-scheduler-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-common-scheduler-java-sev + newTag: 4.2410_1_IR1_qa #4.2410_1_IR1_qa #4.4.2.0-b2 #4.4.2.0_prod #4.4.0.0 #4.2.0.0 #4.1.21.0 + +namespace: csi-dev +patchesJson6902: +- target: + group: apps + version: v1 + kind: Deployment + name: csi-ehr-common-scheduler + patch: |- + - op: replace + path: /spec/template/spec/containers/0/resources/limits/memory + value: 1Gi + - op: replace + path: /spec/template/spec/containers/0/resources/requests/cpu + value: 50m + - op: replace + path: /spec/template/spec/containers/0/resources/requests/memory + value: 256Mi + # - op: replace + # path: /spec/template/spec/containers/0/env/name/JVM_OPTS + # value: "-Xms512m -Xmx1024m" + # - op: replace + # path: /spec/template/spec/containers/0/env/name/JAVA_OPTS + # value: "-Xms512m -Xmx1024m" +- 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-common-scheduler-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-ehrschedulerjava + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-ehrschedulerjava + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehrschedulerjava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-common-scheduler-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-common-scheduler-java-sev/patch-pod.yaml new file mode 100644 index 0000000..7c5dbbc --- /dev/null +++ b/DEV/ehr/csi-ehr-common-scheduler-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-common-scheduler + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-common-scheduler + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 256Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-common-scheduler-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-common-scheduler-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-common-scheduler-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-config-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-config-java-sev/hpa.yaml new file mode 100644 index 0000000..2c939dc --- /dev/null +++ b/DEV/ehr/csi-ehr-config-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-config + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-config-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-config-java-sev/kustomization.yaml new file mode 100644 index 0000000..fadb17c --- /dev/null +++ b/DEV/ehr/csi-ehr-config-java-sev/kustomization.yaml @@ -0,0 +1,62 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehrconfigjava + +resources: +- ../../../DM-Sync/ + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-config-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-config-java-sev + newTag: 4.1.21.11_qa #4.1.21.8_dev #4.1.21.4_dev_dev #4.1.21.3_qa #4.1.21.2_dev_b1 #4.1.22.1_qa #4.1.21.0_dev #4.0.192.0 #4.4.0.1_prod #4.3.0.1 #4.3.0.0 #4.2.0.0 #4.1.10.0 + +namespace: csi-dev + +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-config-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-ehr-config-java + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-ehr-config-java + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehrconfigjava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-config-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-config-java-sev/patch-pod.yaml new file mode 100644 index 0000000..638bff8 --- /dev/null +++ b/DEV/ehr/csi-ehr-config-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-config + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-config + resources: + limits: + memory: 2Gi + requests: + cpu: 250m + memory: 512Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-config-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-config-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-config-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ic-bundle-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-ic-bundle-java-sev/hpa.yaml new file mode 100644 index 0000000..a904b47 --- /dev/null +++ b/DEV/ehr/csi-ehr-ic-bundle-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-ic-bundle + namespace: moh-prod +spec: + minReplicaCount: 0 + maxReplicaCount: 0 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ic-bundle-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-ic-bundle-java-sev/kustomization.yaml new file mode 100644 index 0000000..1e3b661 --- /dev/null +++ b/DEV/ehr/csi-ehr-ic-bundle-java-sev/kustomization.yaml @@ -0,0 +1,66 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehricbundlejava + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +# replicas: +# - name: csi-ehr-ic-bundle +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-ic-bundle-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-ic-bundle-java-sev + newTag: 4.0.154.2_IR_qa #4.0.154.2_dev #4.0.154.0_dev #4.0.153.0_dev #4.0.152.13_qa #4.0.152.12-b1 #4.0.152.9_qa #4.1.10.2_prod #4.1.9.0_prod #4.1.6.1_prod #4.1.6.1 #4.1.5.0 #4.1.1.0 #4.1.0.0 #4.0.95.0 + +namespace: csi-dev +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-bundle-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-ic-bundle-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-ic-bundle-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehricbundlejava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-ic-bundle-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-ic-bundle-java-sev/patch-pod.yaml new file mode 100644 index 0000000..c39f02e --- /dev/null +++ b/DEV/ehr/csi-ehr-ic-bundle-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-ic-bundle-java-sev + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-ic-bundle-java-sev + resources: + limits: + memory: 2Gi + requests: + cpu: 150m + memory: 512Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ic-bundle-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-ic-bundle-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-ic-bundle-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ic-dashboard-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-ic-dashboard-java-sev/hpa.yaml new file mode 100644 index 0000000..2e80a39 --- /dev/null +++ b/DEV/ehr/csi-ehr-ic-dashboard-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-ic-dashboard + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ic-dashboard-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-ic-dashboard-java-sev/kustomization.yaml new file mode 100644 index 0000000..b1af045 --- /dev/null +++ b/DEV/ehr/csi-ehr-ic-dashboard-java-sev/kustomization.yaml @@ -0,0 +1,57 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehricdashboardjava + +resources: +- ../../../Sync-new/ +# - ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +# replicas: +# - name: csi-ehr-ic-dashboard +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-ic-dashboard-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-ic-dashboard-java-sev + newTag: 4.0.135.4_dev #4.0.135.3_IR_qa #4.0.135.1_dev #4.0.135.0_dev #4.2.4.2_prod #4.2.3.1_prod #4.2.2.4_prod #4.1.0.1 #4.0.91.5 #4.0.91.4 #4.1.0.1 #4.1.0.0 #4.0.75.0 + +namespace: csi-dev +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: before + patch: |- + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-ehr-ic-dashboard-java-sev" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "ehr" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-ehr-ic-dashboard-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehricdashboardjava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-ic-dashboard-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-ic-dashboard-java-sev/patch-pod.yaml new file mode 100644 index 0000000..9fe315f --- /dev/null +++ b/DEV/ehr/csi-ehr-ic-dashboard-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-ic-dashboard-java-sev + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-ic-dashboard-java-sev + resources: + limits: + memory: 2Gi + requests: + cpu: 150m + memory: 750Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ic-dashboard-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-ic-dashboard-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-ic-dashboard-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ic-ui/hpa.yaml b/DEV/ehr/csi-ehr-ic-ui/hpa.yaml new file mode 100644 index 0000000..f49c82c --- /dev/null +++ b/DEV/ehr/csi-ehr-ic-ui/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/DEV/ehr/csi-ehr-ic-ui/kustomization.yaml b/DEV/ehr/csi-ehr-ic-ui/kustomization.yaml new file mode 100644 index 0000000..9fc0560 --- /dev/null +++ b/DEV/ehr/csi-ehr-ic-ui/kustomization.yaml @@ -0,0 +1,53 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehricui + +resources: +- ../../../DM-Sync/ + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: csi-ehr-ic-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/ehr-ic-ui + newName: registry.cloudsolutions.com.sa/vida-qa/ehr-ic-ui + newTag: 4.0.245.5_IR_qa #4.1.29.0_prod #4.1.20.9_prod #4.1.15.0 #4.1.14.0 #4.1.7.0 #4.1.6.0 + +namespace: csi-dev +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-ui" + +- 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 diff --git a/DEV/ehr/csi-ehr-initialassessment-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-initialassessment-java-sev/hpa.yaml new file mode 100644 index 0000000..01827d4 --- /dev/null +++ b/DEV/ehr/csi-ehr-initialassessment-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-initialassessment + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-initialassessment-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-initialassessment-java-sev/kustomization.yaml new file mode 100644 index 0000000..521dd94 --- /dev/null +++ b/DEV/ehr/csi-ehr-initialassessment-java-sev/kustomization.yaml @@ -0,0 +1,66 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehrintitialassessjava + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +# replicas: +# - name: csi-ehr-initialassessment +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-initialassessment-java-sev + newName: registry.cloudsolutions.com.sa/qa/csi-ehr-initialassessment-java-sev + newTag: V4.0.0924-676_qa #V4.0.0924-384_qa #4.4.0.7_prod #4.3.0.0 #4.2.0.0 #4.1.5.0 + +namespace: csi-dev +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-initialassessment-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-initialassessment-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-initialassessment-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehrintitialassessjava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-initialassessment-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-initialassessment-java-sev/patch-pod.yaml new file mode 100644 index 0000000..b6817b0 --- /dev/null +++ b/DEV/ehr/csi-ehr-initialassessment-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-initialassessment + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-initialassessment + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 250Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-initialassessment-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-initialassessment-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-initialassessment-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ip-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-ip-java-sev/hpa.yaml new file mode 100644 index 0000000..ccf343a --- /dev/null +++ b/DEV/ehr/csi-ehr-ip-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-ip + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ip-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-ip-java-sev/kustomization.yaml new file mode 100644 index 0000000..2b94b9f --- /dev/null +++ b/DEV/ehr/csi-ehr-ip-java-sev/kustomization.yaml @@ -0,0 +1,63 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehripjava + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-ip-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-ip-java-sev #registry.cloudsolutions.com.sa/vida-qa/csi-ehr-ip-java-sev + newTag: 4.2503_05_1_dev #4.2501_10_IR2_qa #0.0.0.0.1 #4.1.426.27_dev #4.2412_16_IR1_QA #4.2412_10_IR1_qa #4.1.426.19_dev_dev #4.1.426.16_dev12_dev #4.1.426.17_dev #4.1.426.16_dev9 #4.2410_15_IR5_qa #4.1.426.16_dev7 #4.2410_3_IR1_qa #4.1.426.10_dev #4.1.426.9-dev4 #4.1.426.8-dev4 + +namespace: csi-dev + +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-ip-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-ip-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-ip-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehripjava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-ip-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-ip-java-sev/patch-pod.yaml new file mode 100644 index 0000000..43e9c85 --- /dev/null +++ b/DEV/ehr/csi-ehr-ip-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-java-ehr-ip + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-java-ehr-ip + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 256Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ip-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-ip-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-ip-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ldr-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-ldr-java-sev/hpa.yaml new file mode 100644 index 0000000..236d8ff --- /dev/null +++ b/DEV/ehr/csi-ehr-ldr-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-ldr + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ldr-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-ldr-java-sev/kustomization.yaml new file mode 100644 index 0000000..7cce935 --- /dev/null +++ b/DEV/ehr/csi-ehr-ldr-java-sev/kustomization.yaml @@ -0,0 +1,67 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehrldrjava + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +# replicas: +# - name: csi-ehr-ldr +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-ldr-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-ldr-java-sev + newTag: 4.0.205.1_IR1_qa #4.0.201.0_dev #4.0.199.0_dev #4.0.198.0_dev #4.0.197.0_dev #4.0.196.0_dev #4.0.195.0_IR_qa #4.0.195.0_dev #4.1.9.2_prod #4.1.9.0_prod #4.1.6.7_prod #4.1.6.4_prod #4.1.6.0 #4.1.2.0 #4.1.1.0 #4.1.0.0 + +namespace: csi-dev +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-ldr-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-ldr-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-ldr-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehrldrjava + namespace: moh-uat + diff --git a/DEV/ehr/csi-ehr-ldr-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-ldr-java-sev/patch-pod.yaml new file mode 100644 index 0000000..d004d1f --- /dev/null +++ b/DEV/ehr/csi-ehr-ldr-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-ldr + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-ldr + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 256Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-ldr-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-ldr-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-ldr-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-listener-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-listener-java-sev/hpa.yaml new file mode 100644 index 0000000..42be33c --- /dev/null +++ b/DEV/ehr/csi-ehr-listener-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-listener + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-listener-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-listener-java-sev/kustomization.yaml new file mode 100644 index 0000000..5d23e3e --- /dev/null +++ b/DEV/ehr/csi-ehr-listener-java-sev/kustomization.yaml @@ -0,0 +1,66 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehrlistnerjava + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +# replicas: +# - name: csi-ehr-listener +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-listener-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-listener-java-sev + newTag: 4.1.39.0_qa #4.4.0.0 #4.2.0.0 #4.1.19.0 + +namespace: csi-dev +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-listener-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-listener-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-listener-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehrlistnerjava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-listener-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-listener-java-sev/patch-pod.yaml new file mode 100644 index 0000000..d9c33a0 --- /dev/null +++ b/DEV/ehr/csi-ehr-listener-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-listener + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-listener + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 256Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-listener-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-listener-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-listener-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-opd-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-opd-java-sev/hpa.yaml new file mode 100644 index 0000000..5d1b27e --- /dev/null +++ b/DEV/ehr/csi-ehr-opd-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-opd + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-opd-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-opd-java-sev/kustomization.yaml new file mode 100644 index 0000000..fb42f91 --- /dev/null +++ b/DEV/ehr/csi-ehr-opd-java-sev/kustomization.yaml @@ -0,0 +1,58 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehropdjava + +resources: +- ../../../Sync-new/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-opd-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-opd-java-sev + newTag: 4.2502_13_IR2_qa #4.1.111.28_dev #4.1.111.25 #4.2407_1_IR2_dev #4.4.0.38_prod #4.4.0.33_prod #4.4.0.32_prod #4.4.0.31_prod #4.4.0.30_prod #4.4.0.29_prod #4.4.0.21_prod #4.4.0.20_prod #4.4.0.19 #4.4.0.16 + +namespace: csi-dev + +patchesJSON6902: + - target: + group: batch + version: v1 + kind: Job + name: before + patch: | + - op: replace + path: /metadata/name + value: before-ehropdjava + namespace: moh-uat + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "csi-ehr-opd" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_DATA_VERSION + value: "4.0.127.0" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-ehr-opd-java-sev" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-ehr-opd-java-sev" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "ehr" + + diff --git a/DEV/ehr/csi-ehr-opd-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-opd-java-sev/patch-pod.yaml new file mode 100644 index 0000000..3783d01 --- /dev/null +++ b/DEV/ehr/csi-ehr-opd-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-opd + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-opd + resources: + limits: + memory: 2Gi + requests: + cpu: 50m + memory: 256Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-opd-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-opd-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-opd-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-opd-patient-pomr-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-opd-patient-pomr-java-sev/hpa.yaml new file mode 100644 index 0000000..2203cf8 --- /dev/null +++ b/DEV/ehr/csi-ehr-opd-patient-pomr-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-opd-patient-pomr + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-opd-patient-pomr-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-opd-patient-pomr-java-sev/kustomization.yaml new file mode 100644 index 0000000..0a05be4 --- /dev/null +++ b/DEV/ehr/csi-ehr-opd-patient-pomr-java-sev/kustomization.yaml @@ -0,0 +1,62 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehrpomrjava + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-opd-patient-pomr-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-opd-patient-pomr-java-sev + newTag: 4.2501_24_IR1_qa #4.2409_11_dev_dev #4.2409_10_dev_dev + +namespace: csi-dev +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-opd-patient-pomr-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-opd-patient-pomr-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-opd-patient-pomr-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehrpomrjava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-opd-patient-pomr-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-opd-patient-pomr-java-sev/patch-pod.yaml new file mode 100644 index 0000000..0227878 --- /dev/null +++ b/DEV/ehr/csi-ehr-opd-patient-pomr-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-opd-patient-pomr + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-opd-patient-pomr + resources: + limits: + memory: 2Gi + requests: + cpu: 150m + memory: 1Gi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-opd-patient-pomr-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-opd-patient-pomr-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-opd-patient-pomr-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-opd-ui/hpa.yaml b/DEV/ehr/csi-ehr-opd-ui/hpa.yaml new file mode 100644 index 0000000..0832481 --- /dev/null +++ b/DEV/ehr/csi-ehr-opd-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: ehr-opd-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-opd-ui/kustomization.yaml b/DEV/ehr/csi-ehr-opd-ui/kustomization.yaml new file mode 100644 index 0000000..b12f7f3 --- /dev/null +++ b/DEV/ehr/csi-ehr-opd-ui/kustomization.yaml @@ -0,0 +1,83 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehropdui + +resources: +- ../../../Sync-new/ + +# patchesStrategicMerge: +# -hpa.yaml + +replicas: +- name: csi-ehr-opd-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/ehr-opd-ui + newName: registry.cloudsolutions.com.sa/vida-qa/ehr-opd-ui + newTag: 4.0.4878.0 #4.0.4877.0 #4.0.4872.0 #4.0.4867.0 #4.0.4865.0 #4.0.4823.0 #4.0.4799.27 #4.0.4799.17 #4.0.4799.8 #c #4.0.4798.93 #4.0.4798.80 #4.0.4798.75 #4.0.4798.66 #4.0.4798.65 #4.0.4798.62 #4.0.4798.32 #4.0.4798.11 #4.0.4798.7 #4.0.4797.93 #4.0.4797.89 #4.0.4797.82 #4.0.4797.73 #4.0.4797.71 #4.0.4797.68 + +namespace: csi-dev + +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-opd-ui" + - op: replace + path: /metadata/name + value: before-csi-ehr-opd-ui + namespace: moh-uat + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "csi-ehr-opd-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_DATA_VERSION + value: "AMD-10802" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-ehr-opd-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-ehr-opd-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "ehr" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: | + - op: replace + path: /metadata/name + value: before-csi-ehr-opd-ui + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-opd-ui diff --git a/DEV/ehr/csi-ehr-or-anesthesia-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-or-anesthesia-java-sev/hpa.yaml new file mode 100644 index 0000000..dfe012e --- /dev/null +++ b/DEV/ehr/csi-ehr-or-anesthesia-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-or-anesthesia + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-or-anesthesia-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-or-anesthesia-java-sev/kustomization.yaml new file mode 100644 index 0000000..4a52dee --- /dev/null +++ b/DEV/ehr/csi-ehr-or-anesthesia-java-sev/kustomization.yaml @@ -0,0 +1,67 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehroranesthesiajava + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +# replicas: +# - name: csi-ehr-or-anesthesia +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-or-anesthesia-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-or-anesthesia-java-sev + newTag: 4.1.71.18_IR_qa #4.1.71.15_dev #4.1.71.14_dev #4.1.71.13_dev #4.2407_1_dev #4.2.1.1 #4.2.1.0 #4.1.54.0 + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: before + patch: |- + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-ehr-or-anesthesia-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-or-anesthesia-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-or-anesthesia-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehroranesthesiajava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-or-anesthesia-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-or-anesthesia-java-sev/patch-pod.yaml new file mode 100644 index 0000000..33b7808 --- /dev/null +++ b/DEV/ehr/csi-ehr-or-anesthesia-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-or-anesthesia + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-or-anesthesia + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 256Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-or-anesthesia-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-or-anesthesia-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-or-anesthesia-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-or-book-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-or-book-java-sev/hpa.yaml new file mode 100644 index 0000000..816df16 --- /dev/null +++ b/DEV/ehr/csi-ehr-or-book-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-java-ehr-or-book + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-or-book-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-or-book-java-sev/kustomization.yaml new file mode 100644 index 0000000..777038b --- /dev/null +++ b/DEV/ehr/csi-ehr-or-book-java-sev/kustomization.yaml @@ -0,0 +1,67 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehrorbookjava + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +# replicas: +# - name: csi-java-ehr-or-book +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-or-book-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-or-book-java-sev + newTag: 4.2502_13_IR2_qa #4.0.311.1_dev #4.0.310.26_dev #4.0.310.20_dev #4.0.310.19_dev #4.0.310.15_IR_qa #4.1.1.58_prod #4.1.1.56_prod #4.1.1.42_prod #4.1.1.45_prod #4.1.1.7 #4.1.0.0 + +namespace: csi-dev + +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-or-book-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-or-book-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-or-book-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehrorbookjava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-or-book-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-or-book-java-sev/patch-pod.yaml new file mode 100644 index 0000000..2337bb9 --- /dev/null +++ b/DEV/ehr/csi-ehr-or-book-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-java-ehr-or-book + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-java-ehr-or-book + resources: + limits: + memory: 4Gi + requests: + cpu: 50m + memory: 1Gi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-or-book-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-or-book-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-or-book-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-or-booking-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-or-booking-java-sev/hpa.yaml new file mode 100644 index 0000000..56cbaf6 --- /dev/null +++ b/DEV/ehr/csi-ehr-or-booking-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-or-booking + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-or-booking-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-or-booking-java-sev/kustomization.yaml new file mode 100644 index 0000000..c082e20 --- /dev/null +++ b/DEV/ehr/csi-ehr-or-booking-java-sev/kustomization.yaml @@ -0,0 +1,62 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehrorbookingjava + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-or-booking-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-or-booking-java-sev + newTag: 4.0.336.0_IR-b1 #4.0.335.0_IR_qa #4.0.311.0_dev #4.0.310.34_dev #4.0.310.32_IR_qa #4.0.310.27_dev #4.0.310.26_dev #4.1.37.11_prod #4.1.35.0_prod #4.1.31.0_prod #4.1.25.0_prod #4.1.20.0 #4.1.18.0 #4.1.17.0 #4.1.3.0 #4.1.2.0 #4.1.0.0 #4.0.142.0 + +namespace: csi-dev +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-or-booking-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-or-bookingjava + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-or-bookingjava + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehrorbookingjava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-or-booking-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-or-booking-java-sev/patch-pod.yaml new file mode 100644 index 0000000..c68cbde --- /dev/null +++ b/DEV/ehr/csi-ehr-or-booking-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-or-booking + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-or-booking + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 256Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-or-booking-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-or-booking-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-or-booking-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-specialized-clinic-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-specialized-clinic-java-sev/hpa.yaml new file mode 100644 index 0000000..b1c506f --- /dev/null +++ b/DEV/ehr/csi-ehr-specialized-clinic-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-specializedclinic + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-specialized-clinic-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-specialized-clinic-java-sev/kustomization.yaml new file mode 100644 index 0000000..bafbbe4 --- /dev/null +++ b/DEV/ehr/csi-ehr-specialized-clinic-java-sev/kustomization.yaml @@ -0,0 +1,67 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehrspecializedclinicjava + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +# replicas: +# - name: csi-ehr-specializedclinic +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-specialized-clinic-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-specialized-clinic-java-sev + newTag: 4.2502_05_IR1_qa #4.0.364.0_dev #4.0.363.0_dev #4.0.362.0_dev #4.1.3.17_prod #4.1.3.22_prod #4.1.3.3 #4.1.3.1 #4.1.0.0 #4.0.109.4 + +namespace: csi-dev + +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-specialized-clinic-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-specialized-clinic-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-specialized-clinic-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehrspecializedclinicjava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-specialized-clinic-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-specialized-clinic-java-sev/patch-pod.yaml new file mode 100644 index 0000000..5130016 --- /dev/null +++ b/DEV/ehr/csi-ehr-specialized-clinic-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-specializedclinic + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-specializedclinic + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 256Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-specialized-clinic-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-specialized-clinic-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-specialized-clinic-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-template-java-sev/hpa.yaml b/DEV/ehr/csi-ehr-template-java-sev/hpa.yaml new file mode 100644 index 0000000..3402b9b --- /dev/null +++ b/DEV/ehr/csi-ehr-template-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-template + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-template-java-sev/kustomization.yaml b/DEV/ehr/csi-ehr-template-java-sev/kustomization.yaml new file mode 100644 index 0000000..b04f25e --- /dev/null +++ b/DEV/ehr/csi-ehr-template-java-sev/kustomization.yaml @@ -0,0 +1,62 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehrtemplatejava + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-template-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-template-java-sev + newTag: 4.2501_29_IR1_qa #4.1.60.6_dev #4.1.59.0_dev #4.1.58.0_dev #4.1.57.0_dev #4.1.56.0_dev #4.1.55.0_dev #4.1.54.0_dev #4.1.53.0_dev #4.1.50.0_dev #4.1.49.0_dev #4.2407_13_IR5_dev_qa #4.1.47.0_prod #4.1.46.0_prod #4.2407_13_IR3_dev #4.2407_13_IR1_dev #4.4.13.0_hf2_prod #4.4.13.0_prod #4.4.7.0 #4.4.3.0 #4.4.2.0 #4.4.1.0 #4.3.0.1 #4.2.0.0 #4.1.14.0 + +namespace: csi-dev +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-template-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-template-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-template-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehrtemplatejava + namespace: moh-uat diff --git a/DEV/ehr/csi-ehr-template-java-sev/patch-pod.yaml b/DEV/ehr/csi-ehr-template-java-sev/patch-pod.yaml new file mode 100644 index 0000000..0271b1e --- /dev/null +++ b/DEV/ehr/csi-ehr-template-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-ehr-template + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-ehr-template + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 256Mi \ No newline at end of file diff --git a/DEV/ehr/csi-ehr-template-java-sev/post-sync.yaml b/DEV/ehr/csi-ehr-template-java-sev/post-sync.yaml new file mode 100644 index 0000000..3873dfb --- /dev/null +++ b/DEV/ehr/csi-ehr-template-java-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Fred-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/ehr/csi-workflow-automation-service-java-sev/hpa.yaml b/DEV/ehr/csi-workflow-automation-service-java-sev/hpa.yaml new file mode 100644 index 0000000..18bd407 --- /dev/null +++ b/DEV/ehr/csi-workflow-automation-service-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-workflow-automation + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/ehr/csi-workflow-automation-service-java-sev/kustomization.yaml b/DEV/ehr/csi-workflow-automation-service-java-sev/kustomization.yaml new file mode 100644 index 0000000..c431f1c --- /dev/null +++ b/DEV/ehr/csi-workflow-automation-service-java-sev/kustomization.yaml @@ -0,0 +1,55 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/workflow + +resources: +- ../../../DM-Sync/ + +patchesStrategicMerge: +- hpa.yaml +#- patch-pod.yaml + +# replicas: +# - name: csi-workflow-automation +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-workflow-automation-service-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-workflow-automation-service-java-sev + newTag: 4.0.82.0 #4.2.0.0 #4.0.61.0 + +namespace: csi-dev + +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-workflow-automation-service-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-workflow-automation-service-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-workflow-automation-service-java-sev diff --git a/DEV/ehr/csi-workflow-automation-service-java-sev/patch-pod.yaml b/DEV/ehr/csi-workflow-automation-service-java-sev/patch-pod.yaml new file mode 100644 index 0000000..74e6eb5 --- /dev/null +++ b/DEV/ehr/csi-workflow-automation-service-java-sev/patch-pod.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-workflow-automation + namespace: moh-prod +spec: + template: + spec: + containers: + - name: csi-workflow-automation + resources: + limits: + memory: 1Gi + requests: + cpu: 50m + memory: 256Mi \ No newline at end of file diff --git a/DEV/ehr/ehrcommonjava/kustomization.yaml b/DEV/ehr/ehrcommonjava/kustomization.yaml new file mode 100644 index 0000000..eb40656 --- /dev/null +++ b/DEV/ehr/ehrcommonjava/kustomization.yaml @@ -0,0 +1,75 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/ehr/ehrcommonjava +resources: +# - ../../../DM-Sync/ +- post-sync.yaml + +patchesStrategicMerge: +- patch-hpa.yaml + #- patch-pod.yaml +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-common-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-common-java-sev + newTag: 4.2501_21_IR4_qa #4.2409.115_dev #4.2409.111_dev #4.2409.110_dev #4.2409.107_dev #4.2409.106_dev #4.2409.103_dev #4.2409.102_dev #4.2409.101_dev #4.2409.98_dev #4.2409.94_dev #4.2409.92_dev #4.2409.91_dev #4.2409.86_dev_dev #4.2409.83_dev #4.2409.81_dev #4.2409.80_dev #4.2409.77_dev #4.2409.76_dev #4.2409.75_dev #4.2409.72_dev #4.2409.71_dev #4.2409.69_dev #4.2409.67_dev #4.2409.65_dev #4.2409.64_dev #4.2409.62_dev #4.2409.58_dev #4.2409.57_dev +namespace: csi-dev +patchesJson6902: +- target: + group: apps + version: v1 + kind: Deployment + name: csi-ehr-common + patch: |- + - op: replace + path: /spec/template/spec/containers/0/resources/limits/memory + value: 1.5Gi + - op: replace + path: /spec/template/spec/containers/0/resources/requests/cpu + value: 50m + - op: replace + path: /spec/template/spec/containers/0/resources/requests/memory + value: 256Mi + +- 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-common-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-common-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-common-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-csi-ehr-common + namespace: moh-uat diff --git a/DEV/empi/csi-empi-api/hpa.yaml b/DEV/empi/csi-empi-api/hpa.yaml new file mode 100644 index 0000000..f07f73f --- /dev/null +++ b/DEV/empi/csi-empi-api/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-empi-api + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/empi/csi-empi-api/kustomization.yaml b/DEV/empi/csi-empi-api/kustomization.yaml new file mode 100644 index 0000000..0731e6e --- /dev/null +++ b/DEV/empi/csi-empi-api/kustomization.yaml @@ -0,0 +1,44 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/empi/csi-empi-api + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: registry.cloudsolutions.com.sa/vida-qa/csi-empi-api + newTag: 4.2501.0.3_qa #4.2502.1.1_D8_dev #4.2502.1.1_D7_dev #4.2502.1.1_D6_dev #4.2502.1.1_D3_dev #4.2502.1.1_D2_dev #4.2501.1.1_D1_dev + +namespace: csi-dev + +patchesJson6902: +- target: + group: apps + version: v1 + kind: Deployment + name: csi-empi-api + patch: |- + - op: add + path: /spec/template/spec/containers/0/ports/- + value: + name: management + containerPort: 9000 + - op: replace + path: /spec/template/spec/containers/0/livenessProbe + value: + httpGet: + path: /actuator/health/liveness + port: management + initialDelaySeconds: 600 + failureThreshold: 3 + timeoutSeconds: 10 + - op: replace + path: /spec/template/spec/containers/0/readinessProbe + value: + httpGet: + path: /actuator/health/readiness + port: management + initialDelaySeconds: 100 + failureThreshold: 30 + timeoutSeconds: 100 diff --git a/DEV/empi/csi-empi-crs-integration/hpa.yaml b/DEV/empi/csi-empi-crs-integration/hpa.yaml new file mode 100644 index 0000000..a6a3f76 --- /dev/null +++ b/DEV/empi/csi-empi-crs-integration/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-empi-crs-inte + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/empi/csi-empi-crs-integration/kustomization.yaml b/DEV/empi/csi-empi-crs-integration/kustomization.yaml new file mode 100644 index 0000000..494494d --- /dev/null +++ b/DEV/empi/csi-empi-crs-integration/kustomization.yaml @@ -0,0 +1,20 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/empi/empicrsintegration + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: csi-net-empi-crs-inte + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-empi-crs-integration + newName: registry.cloudsolutions.com.sa/vida-qa/csi-empi-crs-integration + newTag: 4.2.3.0 + +namespace: csi-dev + +namePrefix: old- diff --git a/DEV/empi/csi-empi-hijridate-service/hpa.yaml b/DEV/empi/csi-empi-hijridate-service/hpa.yaml new file mode 100644 index 0000000..bba9084 --- /dev/null +++ b/DEV/empi/csi-empi-hijridate-service/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-empi-hijridte + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/empi/csi-empi-hijridate-service/kustomization.yaml b/DEV/empi/csi-empi-hijridate-service/kustomization.yaml new file mode 100644 index 0000000..7f2b781 --- /dev/null +++ b/DEV/empi/csi-empi-hijridate-service/kustomization.yaml @@ -0,0 +1,20 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/empi/empihijridatedotnet + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: csi-net-empi-hijridte + count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-empi-hijridate-service + newName: registry.cloudsolutions.com.sa/vida-qa/csi-empi-hijridate-service + newTag: 4.1.3.0 #4.1.0.0 + +namespace: csi-dev + +namePrefix: old- diff --git a/DEV/empi/csi-empi-patient-registration-srv/kustomization.yaml b/DEV/empi/csi-empi-patient-registration-srv/kustomization.yaml new file mode 100644 index 0000000..3da6f67 --- /dev/null +++ b/DEV/empi/csi-empi-patient-registration-srv/kustomization.yaml @@ -0,0 +1,37 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/empi/empiwritedotnet + +patchesStrategicMerge: +- patch-hpa.yaml + +# replicas: +# - name: csi-net-empiwrit +# count: 5 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-empi-patient-registration-srv + newName: registry.cloudsolutions.com.sa/vida-qa/csi-empi-patient-registration-srv + newTag: 4.2.64.0-b39_qa #4.2.37.34_prod #4.2.36.15_prod #4.2.37.34_prod #4.2.37.29_prod #4.2.37.22-a7 #4.2.37.22-a5 #4.2.37.22-a4 #4.2.37.22-a3 #4.2.37.22-a2 #4.2.37.22-a1 #4.2.37.21 #4.2.37.20 #4.2.37.19 #4.2.37.18 #4.2.37.17 #4.2.37.16-a1 #4.2.37.16 #4.2.37.14-a1 #4.2.37.14 #4.2.37.13-a3 #4.2.37.13-a2 #4.2.37.13-a1 #4.2.37.7 #4.2.37.6 #4.2.37.4 #4.2.37.3 #4.2.37.2 #4.2.37.1 #4.2.25.0-hf7 #4.2.25.0-hf6 #4.2.25.0-hf5 #4.2.25.0-hf4 #4.2.25.0-hf3 #4.2.25.0 #4.2.13.1 #4.2.13.0-hf6 + +namespace: csi-dev + +namePrefix: old- + +patchesJson6902: +- target: + group: apps + version: v1 + kind: Deployment + name: csi-net-empiwrit + patch: |- + - op: replace + path: /spec/template/spec/containers/0/resources/limits/memory + value: 3Gi + - op: replace + path: /spec/template/spec/containers/0/resources/requests/cpu + value: 50m + - op: replace + path: /spec/template/spec/containers/0/resources/requests/memory + value: 750Mi diff --git a/DEV/empi/csi-empi-patient-registration-srv/patch-hpa.yaml b/DEV/empi/csi-empi-patient-registration-srv/patch-hpa.yaml new file mode 100644 index 0000000..1c07133 --- /dev/null +++ b/DEV/empi/csi-empi-patient-registration-srv/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-empiwrit + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/empi/csi-empi-patient-service-read/hpa.yml b/DEV/empi/csi-empi-patient-service-read/hpa.yml new file mode 100644 index 0000000..f8e47e4 --- /dev/null +++ b/DEV/empi/csi-empi-patient-service-read/hpa.yml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-empiread + namespace: moh-prod +spec: + minReplicaCount: 2 + maxReplicaCount: 6 \ No newline at end of file diff --git a/DEV/empi/csi-empi-patient-service-read/kustomization.yaml b/DEV/empi/csi-empi-patient-service-read/kustomization.yaml new file mode 100644 index 0000000..4192089 --- /dev/null +++ b/DEV/empi/csi-empi-patient-service-read/kustomization.yaml @@ -0,0 +1,20 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/empi/empireaddotnet + +patchesStrategicMerge: +- hpa.yml + +# # replicas: +# # - name: csi-net-empiread +# # count: 5 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-empi-patient-service-read + newName: registry.cloudsolutions.com.sa/vida-qa/csi-empi-patient-service-read + newTag: 4.2.36.15_prod #4.2.36.28_prod #4.2.36.14 #4.2.36.13-a1 #4.2.36.12 #4.2.36.10-a1 #4.2.36.10 #4.2.36.9 #4.2.36.8-a3 #4.2.36.8-a2 #4.2.36.8-a1 #4.2.36.8 #4.2.43.0 #4.2.36.5 #4.2.36.4 #4.2.36.3 #4.2.36.2 #4.2.36.1 #4.2.21.1 #4.2.4.1 #4.2.4.0-hf3 + +namespace: csi-dev + +namePrefix: old- diff --git a/DEV/empi/csi-empi-webui/hpa.yaml b/DEV/empi/csi-empi-webui/hpa.yaml new file mode 100644 index 0000000..7cdc52f --- /dev/null +++ b/DEV/empi/csi-empi-webui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-empi-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/empi/csi-empi-webui/kustomization.yaml b/DEV/empi/csi-empi-webui/kustomization.yaml new file mode 100644 index 0000000..9b5be9e --- /dev/null +++ b/DEV/empi/csi-empi-webui/kustomization.yaml @@ -0,0 +1,54 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/empi/empiui + + +resources: +- ../../../DM-Sync/ + +replicas: +- name: csi-empi-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/empi-ui + newName: registry.cloudsolutions.com.sa/vida-qa/csi-empi-webui + newTag: 4.0.238.7-b8_qa #4.2411.0_D7 #4.2411.0_D6 #4.2411.0_D5 #4.0.235.0 + +namespace: csi-dev +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: .* + patch: |- + - op: replace + path: /metadata/name + value: before-csi-empi-ui + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-empi-webui" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-empi-ui + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-empi-ui diff --git a/DEV/empi/csi-empi-wrapper/hpa.yaml b/DEV/empi/csi-empi-wrapper/hpa.yaml new file mode 100644 index 0000000..e6ff6d5 --- /dev/null +++ b/DEV/empi/csi-empi-wrapper/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-empi-wrapper + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/empi/csi-empi-wrapper/kustomization.yaml b/DEV/empi/csi-empi-wrapper/kustomization.yaml new file mode 100644 index 0000000..497624e --- /dev/null +++ b/DEV/empi/csi-empi-wrapper/kustomization.yaml @@ -0,0 +1,43 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/empi/csi-empi-wrapper + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: registry.cloudsolutions.com.sa/vida-qa/csi-empi-wrapper + newTag: V4.0.0125-622_qa #V4.0.0125-637_dev #V4.0.0125-636_dev #V4.0.0125-635_dev #V4.0.0125-620_dev #V4.0.0125-612_dev #V4.0.0125-606_qa #V4.0.1224-554_qa #V4.0.1124-349_prod #V4.0.1124-349_dev #4.2411.1.0 #dev_rel_130_35_dev #4.2410.2.0_qa +namespace: csi-dev + +patchesJson6902: +- target: + group: apps + version: v1 + kind: Deployment + name: csi-empi-wrapper + patch: |- + - op: add + path: /spec/template/spec/containers/0/ports/- + value: + name: management + containerPort: 9000 + - op: replace + path: /spec/template/spec/containers/0/livenessProbe + value: + httpGet: + path: /actuator/health/liveness + port: management + initialDelaySeconds: 600 + failureThreshold: 30 + timeoutSeconds: 100 + - op: replace + path: /spec/template/spec/containers/0/readinessProbe + value: + httpGet: + path: /actuator/health/readiness + port: management + initialDelaySeconds: 100 + failureThreshold: 30 + timeoutSeconds: 100 diff --git a/DEV/empi/empi-db-sync/base/Deployment.yaml b/DEV/empi/empi-db-sync/base/Deployment.yaml new file mode 100644 index 0000000..6e8d189 --- /dev/null +++ b/DEV/empi/empi-db-sync/base/Deployment.yaml @@ -0,0 +1,68 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app.kubernetes.io/instance: dev-empi-db-sync + name: csi-empi-db-sync + namespace: csi-perf +spec: + replicas: 2 + selector: + matchLabels: + app: csi-empi-db-sync + tier: backend + track: stable + template: + metadata: + labels: + app: csi-empi-db-sync + module: empi + tier: backend + track: stable + spec: + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app + operator: In + values: + - csi-empi-db-sync + topologyKey: "kubernetes.io/hostname" + containers: + - env: + - name: hostname + value: csi-empi-db-sync + envFrom: + - configMapRef: + name: service-configs-empi-db-sync + - configMapRef: + name: service-configs + image: registry.cloudsolutions.com.sa/vida-qa/empi-db-sync:4.0.0.2 + name: csi-empi-db-sync + # livenessProbe: + # httpGet: + # path: /api/actuator/health + # port: http + # initialDelaySeconds: 800 + # failureThreshold: 3 + # timeoutSeconds: 10 + # readinessProbe: + # httpGet: + # path: /api/actuator/health + # port: http + # initialDelaySeconds: 20 + # failureThreshold: 3 + # timeoutSeconds: 10 + ports: + - containerPort: 3080 + name: http + resources: + limits: + memory: 1Gi + requests: + cpu: 100m + memory: 512Mi + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/empi/empi-db-sync/base/kustomization.yaml b/DEV/empi/empi-db-sync/base/kustomization.yaml new file mode 100644 index 0000000..58e34b7 --- /dev/null +++ b/DEV/empi/empi-db-sync/base/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- service.yaml +- Deployment.yaml \ No newline at end of file diff --git a/DEV/empi/empi-db-sync/base/service.yaml b/DEV/empi/empi-db-sync/base/service.yaml new file mode 100644 index 0000000..56bae60 --- /dev/null +++ b/DEV/empi/empi-db-sync/base/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: csi-empi-db-sync + name: csi-empi-db-sync + namespace: csi-perf +spec: + ports: + - port: 80 + targetPort: 80 + selector: + app: csi-empi-db-sync + type: ClusterIP \ No newline at end of file diff --git a/DEV/empi/empi-db-sync/overlays/kustomization.yaml b/DEV/empi/empi-db-sync/overlays/kustomization.yaml new file mode 100644 index 0000000..deb98b9 --- /dev/null +++ b/DEV/empi/empi-db-sync/overlays/kustomization.yaml @@ -0,0 +1,15 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- ../base/ + +replicas: +- name: csi-empi-db-sync + count: 2 + +images: +- name: registry.cloudsolutions.com.sa/vida-qa/empi-db-sync + newName: 172.15.100.214:5000/empi-db-sync + newTag: 4.1.1.43_7 + +namespace: csi-dev diff --git a/DEV/empi/empi-services/csi-net-empi-hijridte-service.yaml b/DEV/empi/empi-services/csi-net-empi-hijridte-service.yaml new file mode 100644 index 0000000..bb5c9e9 --- /dev/null +++ b/DEV/empi/empi-services/csi-net-empi-hijridte-service.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: csi-net-empi-hijridte + name: csi-net-empi-hijridte + namespace: moh-prod +spec: + ports: + - port: 80 + targetPort: 80 + selector: + app: csi-net-empi-hijridte #csi-empi-wrapper + type: ClusterIP \ No newline at end of file diff --git a/DEV/empi/empi-services/csi-net-empiread-service.yaml b/DEV/empi/empi-services/csi-net-empiread-service.yaml new file mode 100644 index 0000000..01df4c6 --- /dev/null +++ b/DEV/empi/empi-services/csi-net-empiread-service.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: csi-net-empiread + name: csi-net-empiread + namespace: moh-prod +spec: + ports: + - port: 80 + targetPort: 80 + selector: + app: csi-empi-wrapper + type: ClusterIP \ No newline at end of file diff --git a/DEV/empi/empi-services/csi-net-empiwrit-service.yaml b/DEV/empi/empi-services/csi-net-empiwrit-service.yaml new file mode 100644 index 0000000..9a74f0f --- /dev/null +++ b/DEV/empi/empi-services/csi-net-empiwrit-service.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: csi-net-empiwrit + name: csi-net-empiwrit + namespace: moh-prod +spec: + ports: + - port: 80 + targetPort: 80 + selector: + app: csi-empi-wrapper + type: ClusterIP \ No newline at end of file diff --git a/DEV/empi/empi-services/empi-crs-inte-service.yaml b/DEV/empi/empi-services/empi-crs-inte-service.yaml new file mode 100644 index 0000000..0a733b2 --- /dev/null +++ b/DEV/empi/empi-services/empi-crs-inte-service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: csi-net-empi-crs-inte + name: csi-net-empi-crs-inte + namespace: moh-prod +spec: + ports: + - port: 80 + targetPort: 80 + selector: + app: csi-empi-wrapper + type: ClusterIP \ No newline at end of file diff --git a/DEV/empi/empi-services/kustomization.yaml b/DEV/empi/empi-services/kustomization.yaml new file mode 100644 index 0000000..cfa5e47 --- /dev/null +++ b/DEV/empi/empi-services/kustomization.yaml @@ -0,0 +1,9 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- csi-net-empi-hijridte-service.yaml +- csi-net-empiread-service.yaml +- csi-net-empiwrit-service.yaml +- empi-crs-inte-service.yaml + +namespace: csi-dev \ No newline at end of file diff --git a/DEV/er/csi-ehr-er-functions-dotnet-sev/hpa.yaml b/DEV/er/csi-ehr-er-functions-dotnet-sev/hpa.yaml new file mode 100644 index 0000000..64562d3 --- /dev/null +++ b/DEV/er/csi-ehr-er-functions-dotnet-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-erfuncti + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/er/csi-ehr-er-functions-dotnet-sev/kustomization.yaml b/DEV/er/csi-ehr-er-functions-dotnet-sev/kustomization.yaml new file mode 100644 index 0000000..2cf5b5e --- /dev/null +++ b/DEV/er/csi-ehr-er-functions-dotnet-sev/kustomization.yaml @@ -0,0 +1,69 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/er/erfunctiondotnet + +resources: +- ../../../DM-Sync/ +#- post-sync.yaml + +resources: +#- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/er/erfunctiondotnet + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-net-erfuncti +# count: 3 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ehr-er-functions-dotnet-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-er-functions-dotnet-sev + newTag: 4.1.28.55-b1_qa #4.1.28.54-b39_qa #4.1.28.110_prod #4.1.28.43_HF_KAUH_7_prod_hf #4.1.28.54-a55_dev #4.1.28.54-a61_dev #4.1.28.54-a55_dev #4.1.28.54-a50_dev #4.1.28.54-a48_dev #4.1.28.54-a46_dev #4.1.28.54-a42_dev #4.1.28.54-a42 #4.1.28.54-a32 #4.1.28.54-a13 #4.1.28.54-a9 #4.1.28.58-hf1 #4.1.28.58_prod #4.1.28.57_prod #4.1.28.55_prod #4.1.28.47_prod #4.1.28.42_prod #4.1.28.38_prod #4.1.28.33_prod #4.1.28.28_prod #4.1.28.27_prod #4.1.28.20 #4.1.28.17 #4.1.28.16 #4.1.28.11 + +namespace: csi-dev + +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-er-functions-dotnet-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ehr-er-functions-dotnet-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ehr-er-functions-dotnet-sev + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-erfunctiondotnet + namespace: moh-uat diff --git a/DEV/er/csi-ehr-er-functions-dotnet-sev/post-sync.yaml b/DEV/er/csi-ehr-er-functions-dotnet-sev/post-sync.yaml new file mode 100644 index 0000000..4ceb22a --- /dev/null +++ b/DEV/er/csi-ehr-er-functions-dotnet-sev/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=empi-wrapper-api-automation&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/er/csi-ehr-er-ui/hpa.yaml b/DEV/er/csi-ehr-er-ui/hpa.yaml new file mode 100644 index 0000000..2e87205 --- /dev/null +++ b/DEV/er/csi-ehr-er-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ehr-er-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/er/csi-ehr-er-ui/kustomization.yaml b/DEV/er/csi-ehr-er-ui/kustomization.yaml new file mode 100644 index 0000000..4b1cfae --- /dev/null +++ b/DEV/er/csi-ehr-er-ui/kustomization.yaml @@ -0,0 +1,59 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/er/ehrerui + +resources: +- ../../../Sync-new/ + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: csi-ehr-er-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/ehr-er-ui + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ehr-er-ui + newTag: 4.1.54.229-a30 #4.1.54.229-a31 #4.1.54.231-a #4.1.54.230-a #4.1.54.229-a29 #4.1.54.229-a28 #4.1.54.229-a26 #4.1.54.229-a23 #4.1.54.229-a22 #4.1.54.229-a20 #4.1.54.225-b222_qa #4.1.54.229-a9 #4.1.54.225-b161_qa #4.1.54.225-b156 #4.1.54.225-a42 #4.1.54.225-a37 #4.1.54.225-a34 #4.1.54.225-a33 #4.1.54.225-a31 #4.1.54.225-a30 #4.1.54.225-a29 #4.1.54.225-a24 #4.1.54.225-a19 #4.1.54.225-a15 #4.1.54.225-b94_qa #4.1.54.225-b78_qa #4.1.54.226-a17 #4.1.54.225-b72_qa #4.1.54.226-a8 #4.1.54.226-a6 #4.1.54.225-b52 #4.1.54.225-b44 #4.1.54.226-a2 #4.1.54.226-b1 #4.1.54.225-b29 #4.1.54.225-a9 #4.1.54.225-a8 #4.2405_2_HF_ASSER_prod_hf #4.2405_1_HF_ASSER_prod_hf #4.1.54.218_prod #4.1.54.217_prod #4.1.54.216_prod #4.1.54.208_prod #4.1.54.207_prod #4.1.54.206_prod #4.1.54.203_prod #4.1.54.188_prod #4.1.54.171_prod #4.1.54.163_prod #4.1.54.151_prod #4.1.54.150_prod #4.1.54.148_prod #4.1.54.145_prod #4.1.54.144_prod #4.1.54.142_prod #4.1.54.140_prod #4.1.54.139_prod #4.1.54.137_prod #4.1.54.136_prod #4.1.54.129_prod #4.1.54.128_prod #4.1.54.126_prod #4.1.54.123_prod #4.1.54.118_prod #4.1.54.111_prod #4.1.54.105_prod #4.1.54.100_prod #4.1.54.96_prod #4.1.54.94_prod #4.1.54.88_prod #4.1.54.76 #4.1.54.74 #4.1.54.71 #4.1.54.68 #4.1.54.66 + +namespace: csi-dev + +patchesJSON6902: + - target: + group: batch + version: v1 + kind: Job + name: .* + patch: |- + - op: replace + path: /metadata/name + value: before-ehrerui + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "csi-ehr-er-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_DATA_VERSION + value: "4.1.19.22-hf2" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-ehr-er-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-ehr-er-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "er" + + diff --git a/DEV/hhc/hhc-service/hpa.yaml b/DEV/hhc/hhc-service/hpa.yaml new file mode 100644 index 0000000..bdc8335 --- /dev/null +++ b/DEV/hhc/hhc-service/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-hhc + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/hhc/hhc-service/kustomization.yaml b/DEV/hhc/hhc-service/kustomization.yaml new file mode 100644 index 0000000..8a970d0 --- /dev/null +++ b/DEV/hhc/hhc-service/kustomization.yaml @@ -0,0 +1,16 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/BASE-REPO/hhc/hhcservice + + +replicas: +- name: csi-net-hhc + count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/hhc-service + newName: registry.cloudsolutions.com.sa/vida-qa/hhc-service + newTag: '4.2410_4' #4.0.0.4-beta94-hf1 #4.0.0.4-beta94 #4.0.0.4-beta93 #5.0.0.7 #4.0.0.4-beta81 + +namespace: csi-dev diff --git a/DEV/hhc/hhc-ui/kustomization.yaml b/DEV/hhc/hhc-ui/kustomization.yaml new file mode 100644 index 0000000..420eae5 --- /dev/null +++ b/DEV/hhc/hhc-ui/kustomization.yaml @@ -0,0 +1,15 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/BASE-REPO/hhc/hhcui + +replicas: +- name: csi-hhc-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/hhc-ui + newName: registry.cloudsolutions.com.sa/vida-qa/hhc-ui + newTag: '4.2412_3' #0.0.8-alpha.252 #0.0.8-alpha.218-hf1 #0.0.8-alpha.219 + +namespace: csi-dev diff --git a/DEV/him/csi-health-information-srv/hpa.yaml b/DEV/him/csi-health-information-srv/hpa.yaml new file mode 100644 index 0000000..b6712c7 --- /dev/null +++ b/DEV/him/csi-health-information-srv/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-himservi + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/him/csi-health-information-srv/kustomization.yaml b/DEV/him/csi-health-information-srv/kustomization.yaml new file mode 100644 index 0000000..18c511b --- /dev/null +++ b/DEV/him/csi-health-information-srv/kustomization.yaml @@ -0,0 +1,54 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/him/csinethimservi + +resources: +- ../../../DM-Sync/ + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-net-himservi +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-health-information-srv + newName: registry.cloudsolutions.com.sa/vida-qa/csi-health-information-srv + newTag: 4.1.196.27_b10_qa #4.1.196.27-a2 #4.1.196.26-a1 #4.1.196.24-b1 #4.1.196.24_prod + +namespace: csi-dev + +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-health-information-srv" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: | + - op: replace + path: /metadata/name + value: before-csi-health-information-srv + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: | + - op: replace + path: /metadata/name + value: after-csi-health-information-srv diff --git a/DEV/him/csi-him-ui/kustomization.yaml b/DEV/him/csi-him-ui/kustomization.yaml new file mode 100644 index 0000000..7eae0c4 --- /dev/null +++ b/DEV/him/csi-him-ui/kustomization.yaml @@ -0,0 +1,55 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/him/csi-him-ui + +#patchesStrategicMerge: +#- patch-pod.yaml + +resources: +- ../../../DM-Sync/ + +replicas: +- name: csi-him-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/him-ui + newName: registry.cloudsolutions.com.sa/vida-qa/csi-him-ui + newTag: 4.1.191.31-b28_qa #4.1.191.31-b27_qa #4.1.191.31-b2 #4.1.191.31_b1 #4.1.191.19_prod + +namespace: csi-dev + +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-him-ui" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-him-ui + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-him-ui + diff --git a/DEV/him/him-ui/hpa.yaml b/DEV/him/him-ui/hpa.yaml new file mode 100644 index 0000000..cd065ad --- /dev/null +++ b/DEV/him/him-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-him-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/integration/csi-ie-dm/kustomization.yaml b/DEV/integration/csi-ie-dm/kustomization.yaml new file mode 100644 index 0000000..85c5548 --- /dev/null +++ b/DEV/integration/csi-ie-dm/kustomization.yaml @@ -0,0 +1,28 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/integration/csiiedm + +patchesStrategicMerge: +- patch-hpa.yaml + + +# replicas: +# - name: csi-ie-dm +# count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ie-dm + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ie-dm + newTag: 4.0.0.15 + +namespace: csi-dev +patchesJson6902: +- target: + version: v1 + kind: Namespace + name: moh-prod + patch: |- + - op: replace + path: /metadata/name + value: csi-perf diff --git a/DEV/integration/csi-ie-dm/patch-hpa.yaml b/DEV/integration/csi-ie-dm/patch-hpa.yaml new file mode 100644 index 0000000..5402292 --- /dev/null +++ b/DEV/integration/csi-ie-dm/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ie-dm + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/integration/csi-ie-general/hpa.yaml b/DEV/integration/csi-ie-general/hpa.yaml new file mode 100644 index 0000000..a52715f --- /dev/null +++ b/DEV/integration/csi-ie-general/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ie-general + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/integration/csi-ie-general/kustomization.yaml b/DEV/integration/csi-ie-general/kustomization.yaml new file mode 100644 index 0000000..11b1299 --- /dev/null +++ b/DEV/integration/csi-ie-general/kustomization.yaml @@ -0,0 +1,51 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/integration/csiiegeneral + +resources: +- ../../../DM-Sync/ + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ie-general + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ie-general + newTag: 4.1.2.550_qa #4.1.2.402_qa #4.1.2.368 #4.1.2.363 #4.1.2.340 + +namespace: csi-dev + +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-ie-general" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: | + - op: replace + path: /metadata/name + value: before-csi-ie-general + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ie-general + diff --git a/DEV/integration/csi-ie-generalii/hpa.yaml b/DEV/integration/csi-ie-generalii/hpa.yaml new file mode 100644 index 0000000..d8887a0 --- /dev/null +++ b/DEV/integration/csi-ie-generalii/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ie-generalii + namespace: moh-prod +spec: + minReplicaCount: 0 + maxReplicaCount: 0 \ No newline at end of file diff --git a/DEV/integration/csi-ie-generalii/kustomization.yaml b/DEV/integration/csi-ie-generalii/kustomization.yaml new file mode 100644 index 0000000..51b13ba --- /dev/null +++ b/DEV/integration/csi-ie-generalii/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/integration/ieintegration2 + +patchesStrategicMerge: +- hpa.yaml + + #replicas: + ## count: 0 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ie-generalii + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ie-generalii + newTag: 4.1.53.27 + +namespace: csi-dev diff --git a/DEV/integration/csi-ie-mobile/hpa.yaml b/DEV/integration/csi-ie-mobile/hpa.yaml new file mode 100644 index 0000000..24669e9 --- /dev/null +++ b/DEV/integration/csi-ie-mobile/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ie-mobile + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/integration/csi-ie-mobile/kustomization.yaml b/DEV/integration/csi-ie-mobile/kustomization.yaml new file mode 100644 index 0000000..8842a20 --- /dev/null +++ b/DEV/integration/csi-ie-mobile/kustomization.yaml @@ -0,0 +1,55 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/integration/csiiemobile + +resources: +- ../../../DM-Sync/ + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-ie-mobile +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ie-mobile + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ie-mobile + newTag: 4.1.0.757-hf10_prod_hf #4.1.0.251 #4.1.0.277 #4.1.0.271 #4.1.0.251 #4.1.0.198_qa + +namespace: csi-dev + +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-ie-mobile" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: | + - op: replace + path: /metadata/name + value: before-csi-ie-mobile + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ie-mobile + diff --git a/DEV/integration/vida-data-gateway/hpa.yaml b/DEV/integration/vida-data-gateway/hpa.yaml new file mode 100644 index 0000000..815691f --- /dev/null +++ b/DEV/integration/vida-data-gateway/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: vida-data-gateway + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/integration/vida-data-gateway/kustomization.yaml b/DEV/integration/vida-data-gateway/kustomization.yaml new file mode 100644 index 0000000..39d78f5 --- /dev/null +++ b/DEV/integration/vida-data-gateway/kustomization.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/integration/vida-data-gateway + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/vida-data-gateway + newName: registry.cloudsolutions.com.sa/vida-qa/vida-data-gateway + newTag: 4.0.0.15_qa + +namespace: csi-dev diff --git a/DEV/lab/lab-labgui/hpa.yaml b/DEV/lab/lab-labgui/hpa.yaml new file mode 100644 index 0000000..7ebb4fa --- /dev/null +++ b/DEV/lab/lab-labgui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-lab-labg-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/lab/lab-labgui/kustomization.yaml b/DEV/lab/lab-labgui/kustomization.yaml new file mode 100644 index 0000000..778ce5c --- /dev/null +++ b/DEV/lab/lab-labgui/kustomization.yaml @@ -0,0 +1,51 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/lab/labui + +resources: +- ../../../DM-Sync/ + +replicas: +- name: csi-lab-labg-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/lab-ui + newName: registry.cloudsolutions.com.sa/vida-qa/lab-labgui + newTag: 4.2.485.130-a13 #4.2.485.130-a9_dev #4.2.485.130-a5 #4.2.485.124-b36_qa #4.2.485.130-a1_dev #4.2.485.130-a #4.2.485.120-a1 #4.2.485.133-1 #4.2.485.115-a1 #4.2.485.114-a_dev #4.2.485.113-a3_dev #4.2.485.113-a2_dev #4.2.485.123-a6 #4.2.485.113-a_dev #4.2.485.123-a6 #4.2.485.123-a3 #4.2.485.123-a5 #4.2.485.123-a4 #4.2.485.123-a3 #4.2.485.112-a11_qa #4.2.485.112-a10_dev #4.2.485.112-a8_dev #4.2.485.112-a6 #4.2.485.110-a1_dev #4.2.485.109-a1_dev #4.2.485.108-a3_dev #4.2.485.108-a2_dev #4.2.485.107-a1_dev #4.2.485.104-a_dev #4.2.485.101-a1 #4.2.485.102-a5_dev #4.2.485.102-a2_dev #4.2.485.100-a_dev #4.2.485.88-a1 #4.2.485.60-a12 #4.2.485.60-a10 #4.2.485.60-a9 #4.2.485.66-b_qa #4.2.485.64-b_qa #4.2.485.58-b_qa #4.2405_1_HF_MOHS1_6_prod_hf #4.2405_1_HF_MOHS1_4_prod_hf #4.2405_1_HF_MOHS1_3_prod_hf #4.2405_1_HF_MOHS1_1_prod_hf #4.2.485.0_prod #4.2.281.124_prod #4.2.78.102 #4.2.78.100 #4.2.78.99 #4.2.78.98 #4.2.78.96 #4.2.78.95 #4.2.78.93 #4.2.78.90 #4.2.78.88 #4.2.78.87 #4.2.78.86 #4.2.78.85 #4.2.78.80 #4.2.78.79 #4.2.78.78 #4.2.78.75 #4.2.78.74 #4.2.78.70 #4.2.78.69 #4.2.78.67 #4.2.78.66 #4.2.78.63 #4.2.78.62-alpha #4.2.78.62 #4.2.78.60 #4.2.78.58 #4.2.78.56-hf2 #4.2.78.55 #4.2.78.53_beta #4.2.78.53_alpha #4.2.78.53 #4.2.78.52 #4.2.78.51 #4.2.78.49 #4.2.78.46 #4.2.78.45 #4.2.78.43 #4.2.78.40 #4.2.78.39 #4.2.78.37 #4.2.78.36 #4.2.78.33 #4.2.78.32 #4.2.78.31 #4.2.78.30 #4.2.78.28 #4.2.78.27 #4.2.78.26 #4.2.78.25 #4.2.78.23 #4.2.78.22 #4.2.78.20 #4.2.78.18 #4.2.78.13 #4.2.78.10 #4.2.78.7 #4.2.78.4 #4.2.78.3 #4.2.78.2 #4.2.78.0 #4.2.77.0 #4.1.175.45-hf9_33 #4.1.175.45-hf9_32 #4.1.175.45-hf9_31 #4.1.175.45-hf9_30 #4.1.175.45-hf9_29 #4.1.175.45-hf9_28 #4.1.175.45-hf9_26 #4.1.175.45-hf9_24 #4.1.175.45-hf9_22 #4.1.175.45-hf9_21 #4.2.45.0 #4.2.38.1 #4.1.229.0 #4.1.175.37 + +namespace: csi-dev +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: "lab-labgui" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-lab-labgui + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-lab-labgui + diff --git a/DEV/lab/lab-labmgt-srv/hpa.yaml b/DEV/lab/lab-labmgt-srv/hpa.yaml new file mode 100644 index 0000000..0b1eb3f --- /dev/null +++ b/DEV/lab/lab-labmgt-srv/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-labsrvcs + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/lab/lab-labmgt-srv/kustomization.yaml b/DEV/lab/lab-labmgt-srv/kustomization.yaml new file mode 100644 index 0000000..441224d --- /dev/null +++ b/DEV/lab/lab-labmgt-srv/kustomization.yaml @@ -0,0 +1,95 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/lab/labmgmtdotnet + +resources: +- ../../../Sync-new/ +# - ../../../DM-Sync/ +# - post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-net-labsrvcs +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/lab-labmgt-srv + newName: registry.cloudsolutions.com.sa/vida-qa/lab-labmgt_srv + newTag: 4.2.1073.0-a12.13 #4.2.1073.0-a13.1 #4.2.1073.0-a12.12 #4.2.1073.0-a12.9 #4.2.1073.0-a11_dev #4.2.1073.0-a10 #4.2.1073.0-a8_dev #4.2.1073.0-a7 #4.2.1073.0-a6 #4.2.1073.0-a5_dev #4.2.1073.0-a3 #4.2.1073.0-a2 #4.2.1073.0-a1 #4.2.1072.0-a2 #4.2.1071.0-b150_qa #4.2.1071.0-a11 #4.2.1071.0-a7.904 #4.2.1071.0-a7.904 #4.2.1071.0-a8_dev #4.2.1071.0-a5.1 #4.2.1071.0-a5_dev #4.2.1071.0-a3_dev #4.0.79.0-a105_dev #4.2.1071.0-a1_dev #4.2.1070.0-a2-2 #4.2.1070.0-a1_dev #4.2.1069.0-a_dev #4.2.1067.0-a1_dev #4.2.1060.0-a2 #4.2.1060.0-a_dev #4.2.1055.0-a_dev #4.2.1053.0-a1 #4.2.1047.0-a1_1 #4.2.1047.0-a_dev #4.2.1046.0-a28_dev #4.2.1046.0-a27_dev #4.2.1046.0-a26_dev #4.2.1046.0-a17 #4.2.1046.0-a12 #4.2.1046.0-a10 #4.2.1046.0-a25_dev #4.2.1046.0-a24_dev #4.2.1046.0-a9 #4.2.1046.0-a22_dev #4.2.1046.0-a8 #4.2.1046.0-a21_dev #4.2.1046.0-a20_dev #4.2.1046.0-a_dev #4.2.1046.0-a8 #4.2.1045.0-a6_dev #4.2.1045.0-a5.1 #4.2.1045.0-a5_dev + +namespace: csi-dev +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: before + patch: |- + - op: replace + path: /metadata/name + value: before-labmgmtdotnet + namespace: moh-uat + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "lab-labmgt-srv" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_DATA_VERSION + value: "4.2.106.0" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "lab-labmgt_srv" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "lab-labmgt-srv" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "lab" + +#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: "lab-labmgt_srv" + +# + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: sync-postsync +# patch: |- +# - op: replace +# path: /metadata/name +# value: after-lab-labmgt-srv + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: post +# patch: |- +# - op: replace +# path: /metadata/name +# value: post-labmgmtdotnet +# namespace: moh-uat diff --git a/DEV/lab/lab-labmgt-srv/post-sync.yaml b/DEV/lab/lab-labmgt-srv/post-sync.yaml new file mode 100644 index 0000000..67fd801 --- /dev/null +++ b/DEV/lab/lab-labmgt-srv/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Gryffindor-api-autoday_lab&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/lab/lab-scheduled/hpa.yaml b/DEV/lab/lab-scheduled/hpa.yaml new file mode 100644 index 0000000..664a601 --- /dev/null +++ b/DEV/lab/lab-scheduled/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-lab-scheduled + namespace: moh-prod +spec: + minReplicaCount: 0 + maxReplicaCount: 0 # Don't increase this value without consulting. \ No newline at end of file diff --git a/DEV/lab/lab-scheduled/kustomization.yaml b/DEV/lab/lab-scheduled/kustomization.yaml new file mode 100644 index 0000000..e70bc70 --- /dev/null +++ b/DEV/lab/lab-scheduled/kustomization.yaml @@ -0,0 +1,65 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/lab/labscheduled + +resources: +- ../../../DM-Sync/ +- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + +#replicas: +# - name: csi-net-lab-scheduled +# count: 3 + +images: +- name: harbor.moh.gov.sa/vidamoh/lab-scheduled + newName: registry.cloudsolutions.com.sa/vida-qa/lab-scheduled + newTag: 4.1.38.0-b1_qa + +namespace: csi-dev +# 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-net-lab-scheduled" + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: sync-presync +# patch: |- +# - op: replace +# path: /metadata/name +# value: before-csi-net-lab-scheduled + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: sync-postsync +# patch: |- +# - op: replace +# path: /metadata/name +# value: after-csi-net-lab-scheduled + +# - target: +# group: batch +# version: v1 +# kind: Job +# name: post +# patch: |- +# - op: replace +# path: /metadata/name +# value: post-labscheduled +# namespace: moh-uat \ No newline at end of file diff --git a/DEV/lab/lab-scheduled/post-sync.yaml b/DEV/lab/lab-scheduled/post-sync.yaml new file mode 100644 index 0000000..67fd801 --- /dev/null +++ b/DEV/lab/lab-scheduled/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Gryffindor-api-autoday_lab&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/lab/lab-vidaptorintegration/hpa.yaml b/DEV/lab/lab-vidaptorintegration/hpa.yaml new file mode 100644 index 0000000..8db7825 --- /dev/null +++ b/DEV/lab/lab-vidaptorintegration/hpa.yaml @@ -0,0 +1,10 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject + +metadata: + name: csi-net-lab-vidaptor + namespace: moh-prod + +spec: + minReplicaCount: 0 + maxReplicaCount: 0 \ No newline at end of file diff --git a/DEV/lab/lab-vidaptorintegration/kustomization.yaml b/DEV/lab/lab-vidaptorintegration/kustomization.yaml new file mode 100644 index 0000000..4a23434 --- /dev/null +++ b/DEV/lab/lab-vidaptorintegration/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/BASE-REPO/lab/labvidaptor + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: csi-net-lab-vidaptor + count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/lab-vidaptorintegration + newName: registry.cloudsolutions.com.sa/vida-qa/lab-vidaptorintegration + newTag: 4.2.80.0-b9_qa #4.2.80.0-a6 #4.2.80.0-a4 #4.2.80.0-a3_dev #4.2.80.0-a1_dev #4.2.76.0-b2_qa #4.2.76.0-b1_qa #4.2.75.0-b1_qa #4.2.74.0-b1_qa #4.2.72.0-b1_qa #4.2.71.0-b1_qa #4.2.69.0_qa #4.2.70.0-hf-1-a1 #4.2.69.0_qa #4.2405_1_IR1_qa #4.2.65.0_qa #4.2405_1_IR1_qa #4.2.64.0_qa #4.2.53.0 #4.2.51.0 #4.2.50.0 #4.2.49.0 #4.2.48.0 #4.2.47.0 #4.2.46.0 #4.2.45.0 #4.2.44.0 #4.2.42.0 #4.2.39.0 #4.2.36.0 #4.2.30.0 #4.2.30.0 #4.2.17.10-hf1 #4.2.22.0-hf1 #4.2.22.0 #4.2.17.25 + +namespace: csi-dev diff --git a/DEV/lab/lab-vidaptorintegration/post-sync.yaml b/DEV/lab/lab-vidaptorintegration/post-sync.yaml new file mode 100644 index 0000000..67fd801 --- /dev/null +++ b/DEV/lab/lab-vidaptorintegration/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Gryffindor-api-autoday_lab&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/notification/csi-net-base-email/hpa.yaml b/DEV/notification/csi-net-base-email/hpa.yaml new file mode 100644 index 0000000..e53d3fe --- /dev/null +++ b/DEV/notification/csi-net-base-email/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-noty-email + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/notification/csi-net-base-email/kustomization.yaml b/DEV/notification/csi-net-base-email/kustomization.yaml new file mode 100644 index 0000000..1b9bf39 --- /dev/null +++ b/DEV/notification/csi-net-base-email/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/notification/notynetbaseemail + +#patchesStrategicMerge: +#- hpa.yaml + +# replicas: +# - name: csi-net-noty-email +# count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-net-base-email + newName: registry.cloudsolutions.com.sa/vida-qa/csi-net-base-email + newTag: 4.0.23.0-a5 + +namespace: csi-dev diff --git a/DEV/notification/csi-net-base-message-templates/hpa.yaml b/DEV/notification/csi-net-base-message-templates/hpa.yaml new file mode 100644 index 0000000..c22b918 --- /dev/null +++ b/DEV/notification/csi-net-base-message-templates/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-noty-msgtempl + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/notification/csi-net-base-message-templates/kustomization.yaml b/DEV/notification/csi-net-base-message-templates/kustomization.yaml new file mode 100644 index 0000000..9ce2ea3 --- /dev/null +++ b/DEV/notification/csi-net-base-message-templates/kustomization.yaml @@ -0,0 +1,50 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/notification/notynetbasetemplate + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-net-noty-msgtempl +# count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-net-base-message-templates + newName: registry.cloudsolutions.com.sa/vida-qa/csi-net-base-message-templates #172.15.100.214:5000/csi-net-base-message-templates + newTag: 4.0.15.0_qa #4.0.13.0_dev #4.0.11.0 #4.0.9.0_dev #4.0.8.0 #4.0.7.0 #4.0.1.0 #44.0.5.0 #4.0.1.0 + +namespace: csi-dev + +# Dont Delete below patchJson part-this need to run noti-external service + +patchesJson6902: +- target: + group: apps + version: v1 + kind: Deployment + name: csi-net-noty-msgtempl + patch: | + - op: add + path: /spec/template/spec/containers/0/volumeMounts + value: + - name: volume-csi-net-ext + mountPath: /app/certs/ + readOnly: true + # - name: volume-csi-net-appdb + # mountPath: /data + # readOnly: true + - op: add + path: /spec/template/spec/volumes + value: + - name: volume-csi-net-ext + secret: + secretName: secret-csi-net-ext + # - name: volume-csi-net-appdb + # hostPath: + # path: /home/noti/data + # type: Directory + # - op: add + # path: /spec/template/spec/nodeName + # value: csi-dev-wrk-02 diff --git a/DEV/notification/csi-net-base-notifications-query/hpa.yaml b/DEV/notification/csi-net-base-notifications-query/hpa.yaml new file mode 100644 index 0000000..696b37e --- /dev/null +++ b/DEV/notification/csi-net-base-notifications-query/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-noty-query + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/notification/csi-net-base-notifications-query/kustomization.yaml b/DEV/notification/csi-net-base-notifications-query/kustomization.yaml new file mode 100644 index 0000000..2b91915 --- /dev/null +++ b/DEV/notification/csi-net-base-notifications-query/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/notification/notynetbasequery + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-net-noty-query +# count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-net-base-notifications-query + newName: registry.cloudsolutions.com.sa/vida-qa/csi-net-base-notifications-query + newTag: 4.0.28.0_qa #4.1.0.48-b14_qa #4.0.1.1-hf4 + +namespace: csi-dev diff --git a/DEV/notification/csi-net-base-notifications/hpa.yaml b/DEV/notification/csi-net-base-notifications/hpa.yaml new file mode 100644 index 0000000..507a0e1 --- /dev/null +++ b/DEV/notification/csi-net-base-notifications/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-noty + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/notification/csi-net-base-notifications/kustomization.yaml b/DEV/notification/csi-net-base-notifications/kustomization.yaml new file mode 100644 index 0000000..5f9066c --- /dev/null +++ b/DEV/notification/csi-net-base-notifications/kustomization.yaml @@ -0,0 +1,38 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/notification/notynetbasenotification + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-net-noty +# count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-net-base-notifications + newName: registry.cloudsolutions.com.sa/vida-qa/csi-net-base-notifications + newTag: 4.1.0.46-a22_dev #4.1.0.46-a20_dev #4.1.0.46-a19 #4.1.0.47.h01 #4.1.0.47.h1 #4.1.0.43-a3 #4.1.0.43-a2 #4.1.0.46-a18 #4.1.0.46-a17 #4.1.0.46-a16 #4.1.0.46-a13 #4.1.0.46-a15 #4.1.0.46-a14 #4.1.0.46-a13 #4.1.0.46-a12 #4.1.0.46-a11 #4.1.0.46-a10 #4.1.0.46-a10a1 #4.1.0.46-a6 #4.1.0.46-a5 #4.1.0.46-a3 #4.1.0.46-a2 #4.1.0.46-a1 #4.1.0.45-a3.a5 #4.1.0.45-a3.a4 #4.1.0.45-a3.a2 #4.1.0.45-a3 #4.1.0.45-a1 #4.0.4.2-hf3 + +namespace: csi-dev + +patchesJson6902: + - target: + group: apps + version: v1 + kind: Deployment + name: csi-net-noty + patch: |- + - op: replace + path: /spec/template/spec/containers/0/resources/limits/memory + value: 1Gi + - op: replace + path: /spec/template/spec/containers/0/resources/limits/cpu + value: 200m + - op: replace + path: /spec/template/spec/containers/0/resources/requests/cpu + value: 50m + - op: replace + path: /spec/template/spec/containers/0/resources/requests/memory + value: 750Mi diff --git a/DEV/notification/csi-net-base-sms/hpa.yaml b/DEV/notification/csi-net-base-sms/hpa.yaml new file mode 100644 index 0000000..e02b18a --- /dev/null +++ b/DEV/notification/csi-net-base-sms/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-noty-sms + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/notification/csi-net-base-sms/kustomization.yaml b/DEV/notification/csi-net-base-sms/kustomization.yaml new file mode 100644 index 0000000..7564730 --- /dev/null +++ b/DEV/notification/csi-net-base-sms/kustomization.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/notification/notynetbasesms + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-net-base-sms + newName: registry.cloudsolutions.com.sa/vida-qa/csi-net-base-sms + newTag: 4.0.28.0 #4.0.30.0 #4.0.29.0 #4.0.28.0 + +namespace: csi-dev diff --git a/DEV/notification/csi-net-base-wss/hpa.yaml b/DEV/notification/csi-net-base-wss/hpa.yaml new file mode 100644 index 0000000..a546300 --- /dev/null +++ b/DEV/notification/csi-net-base-wss/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-base-wss + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/notification/csi-net-base-wss/kustomization.yaml b/DEV/notification/csi-net-base-wss/kustomization.yaml new file mode 100644 index 0000000..5520725 --- /dev/null +++ b/DEV/notification/csi-net-base-wss/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/notification/notynetbasewss + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-net-base-wss +# count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-net-base-wss + newName: registry.cloudsolutions.com.sa/vida-qa/csi-net-base-wss + newTag: 4.0.37.0-b1_qa #4.0.25.0 #4.0.2.1 + +namespace: csi-dev diff --git a/DEV/notification/csi-vidaplus-external/hpa.yaml b/DEV/notification/csi-vidaplus-external/hpa.yaml new file mode 100644 index 0000000..39d3793 --- /dev/null +++ b/DEV/notification/csi-vidaplus-external/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-ext + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/notification/csi-vidaplus-external/kustomization.yaml b/DEV/notification/csi-vidaplus-external/kustomization.yaml new file mode 100644 index 0000000..36fc5fb --- /dev/null +++ b/DEV/notification/csi-vidaplus-external/kustomization.yaml @@ -0,0 +1,30 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/notification/notyexternalservices + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-net-noty +# count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-net-ext + newName: registry.cloudsolutions.com.sa/vida-qa/csi-vidaplus-external #172.15.100.214:5000/csi-vidaplus-external + newTag: 4.0.0.32-a3_dev #4.0.0.32-a2_dev #4.0.0.31_dev #4.0.0.30_dev #4.0.0.28 #4.0.0.27_dev #4.0.0.26_dev #4.0.0.25 #4.0.0.24 #4.0.0.18 #4.0.0.14 #4.0.0.11 #4.0.0.8 #4.0.0.7 #4.0.0.6 #4.0.4.2-hf3 + + +namespace: csi-dev + +patchesJson6902: +- target: + group: apps + version: v1 + kind: Deployment + name: csi-net-ext + patch: |- + - op: add + path: /spec/template/spec/nodeName + value: uat1-k8swrk-01 diff --git a/DEV/notification/noty-builder-ui/hpa.yaml b/DEV/notification/noty-builder-ui/hpa.yaml new file mode 100644 index 0000000..b358b15 --- /dev/null +++ b/DEV/notification/noty-builder-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-noty-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/notification/noty-builder-ui/kustomization.yaml b/DEV/notification/noty-builder-ui/kustomization.yaml new file mode 100644 index 0000000..43a744a --- /dev/null +++ b/DEV/notification/noty-builder-ui/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/notification/notyui + +images: +- name: harbor.moh.gov.sa/vidamoh/noty-builder-ui + newName: registry.cloudsolutions.com.sa/vida-qa/noty-builder-ui + newTag: 4.1.46.0.a8 #4.1.46.0.a7 #4.1.46.0.a6 #4.1.46.0.a5 #4.1.46.0.a2 #4.1.45.0-a1-1 #4.1.44.0-a1-2 #4.1.43.0-a1_qa #4.1.38.0_prod #4.1.31.0 #4.1.31.0-a9 #4.1.31.0 #4.1.30.0 #4.1.27.0 + +replicas: +- name: csi-noty-ui + count: 1 + +#patchesStrategicMerge: +#- hpa.yaml +namespace: csi-dev diff --git a/DEV/otp-service/hpa.yaml b/DEV/otp-service/hpa.yaml new file mode 100644 index 0000000..3e8bc07 --- /dev/null +++ b/DEV/otp-service/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-otp-service + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/otp-service/kustomization.yaml b/DEV/otp-service/kustomization.yaml new file mode 100644 index 0000000..2fca96c --- /dev/null +++ b/DEV/otp-service/kustomization.yaml @@ -0,0 +1,10 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/base/otp-service + +images: +- name: registry.cloudsolutions.com.sa/vida-qa/csi-otp-service + newTag: 4.0.1.4 #4.0.0.0-b4 + +namespace: csi-dev \ No newline at end of file diff --git a/DEV/pharmacy/csi-java-ehr-ip-doctor-prescription/hpa.yaml b/DEV/pharmacy/csi-java-ehr-ip-doctor-prescription/hpa.yaml new file mode 100644 index 0000000..ae14dc6 --- /dev/null +++ b/DEV/pharmacy/csi-java-ehr-ip-doctor-prescription/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-java-ehr-ip-doctor-prescription + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 3 \ No newline at end of file diff --git a/DEV/pharmacy/csi-java-ehr-ip-doctor-prescription/kustomization.yaml b/DEV/pharmacy/csi-java-ehr-ip-doctor-prescription/kustomization.yaml new file mode 100644 index 0000000..2b9d6ed --- /dev/null +++ b/DEV/pharmacy/csi-java-ehr-ip-doctor-prescription/kustomization.yaml @@ -0,0 +1,62 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/pharmacy/ehripprescriptionjava + +resources: +- ../../../DM-Sync/ +- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-java-ehr-ip-doctor-prescription + newName: registry.cloudsolutions.com.sa/vida-qa/csi-java-ehr-ip-doctor-prescription + newTag: 4.2503_14_IR2_qa #4.2501_16_IR1_qa + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: before + patch: |- + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-java-ehr-ip-doctor-prescription" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-java-ehr-ip-doctor-prescription + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-java-ehr-ip-doctor-prescription + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-ehripprescriptionjava + namespace: moh-uat diff --git a/DEV/pharmacy/csi-java-ehr-ip-doctor-prescription/post-sync.yaml b/DEV/pharmacy/csi-java-ehr-ip-doctor-prescription/post-sync.yaml new file mode 100644 index 0000000..ac2cd57 --- /dev/null +++ b/DEV/pharmacy/csi-java-ehr-ip-doctor-prescription/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=shaggy-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/pharmacy/csi-net-base-integrations-medispan/hpa.yaml b/DEV/pharmacy/csi-net-base-integrations-medispan/hpa.yaml new file mode 100644 index 0000000..c36d415 --- /dev/null +++ b/DEV/pharmacy/csi-net-base-integrations-medispan/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-medispan + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/pharmacy/csi-net-base-integrations-medispan/kustomization.yaml b/DEV/pharmacy/csi-net-base-integrations-medispan/kustomization.yaml new file mode 100644 index 0000000..a701384 --- /dev/null +++ b/DEV/pharmacy/csi-net-base-integrations-medispan/kustomization.yaml @@ -0,0 +1,33 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/pharmacy/medispan + +resources: +- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-net-medispan +# count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-net-base-integrations-medispan + newName: registry.cloudsolutions.com.sa/vida-qa/csi-net-base-integrations-medispan + newTag: 4.0.1.0-hf6 #4.0.1.0-hf5 #4.0.10.0 #4.0.1.0-hf3 + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-medispan + namespace: moh-uat diff --git a/DEV/pharmacy/csi-net-base-integrations-medispan/post-sync.yaml b/DEV/pharmacy/csi-net-base-integrations-medispan/post-sync.yaml new file mode 100644 index 0000000..ac2cd57 --- /dev/null +++ b/DEV/pharmacy/csi-net-base-integrations-medispan/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=shaggy-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/pharmacy/csi-phr-base-bgservice/hpa.yaml b/DEV/pharmacy/csi-phr-base-bgservice/hpa.yaml new file mode 100644 index 0000000..7ee0779 --- /dev/null +++ b/DEV/pharmacy/csi-phr-base-bgservice/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-phr-base-bgservice + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/pharmacy/csi-phr-base-bgservice/kustomization.yaml b/DEV/pharmacy/csi-phr-base-bgservice/kustomization.yaml new file mode 100644 index 0000000..73618c9 --- /dev/null +++ b/DEV/pharmacy/csi-phr-base-bgservice/kustomization.yaml @@ -0,0 +1,29 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/pharmacy/phrbasebgjava + +resources: +- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-phr-base-bgservice + newName: registry.cloudsolutions.com.sa/vida-qa/csi-phr-base-bgservice + newTag: 4.2502_14_IR3_qa + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-phrbasebgjava + namespace: moh-uat diff --git a/DEV/pharmacy/csi-phr-base-bgservice/post-sync.yaml b/DEV/pharmacy/csi-phr-base-bgservice/post-sync.yaml new file mode 100644 index 0000000..ac2cd57 --- /dev/null +++ b/DEV/pharmacy/csi-phr-base-bgservice/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=shaggy-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/pharmacy/csi-phr-base/hpa.yaml b/DEV/pharmacy/csi-phr-base/hpa.yaml new file mode 100644 index 0000000..4e91e24 --- /dev/null +++ b/DEV/pharmacy/csi-phr-base/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-phr-base + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/pharmacy/csi-phr-base/kustomization.yaml b/DEV/pharmacy/csi-phr-base/kustomization.yaml new file mode 100644 index 0000000..0eea313 --- /dev/null +++ b/DEV/pharmacy/csi-phr-base/kustomization.yaml @@ -0,0 +1,65 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/pharmacy/phrbasejava + +resources: +- ../../../Sync-new/ +- post-sync.yaml + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-phr-base + newName: registry.cloudsolutions.com.sa/vida-qa/csi-phr-base + newTag: 4.2503_19_IR1_qa #4.2503_19_dev-b1_dev #4.2503_17_dev-b1_dev #4.2503_15_dev-b1_dev #4.2503_12_dev-b4_dev #4.2503_08_dev-b1_dev #4.2502_18_dev1_dev #4.2502_10_IR3_dev #4.2501_24_IR2_qa #"4.4.4.406-b1_dev" #4.4.4.399-b2 #4.2412_13_IR2_qa + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: before + patch: |- + - op: replace + path: /metadata/name + value: before-phrbasejava + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "csi-phr-base" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_DATA_VERSION + value: "4.2.15.0" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-phr-base" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-phr-base" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "pharmacy" + +- target: + group: batch + version: v1 + kind: Job + name: post + patch: |- + - op: replace + path: /metadata/name + value: post-phrbasejava + namespace: moh-uat diff --git a/DEV/pharmacy/csi-phr-base/post-sync.yaml b/DEV/pharmacy/csi-phr-base/post-sync.yaml new file mode 100644 index 0000000..ac2cd57 --- /dev/null +++ b/DEV/pharmacy/csi-phr-base/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=shaggy-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/pharmacy/csi-phr-cron/hpa.yaml b/DEV/pharmacy/csi-phr-cron/hpa.yaml new file mode 100644 index 0000000..ff70d21 --- /dev/null +++ b/DEV/pharmacy/csi-phr-cron/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-phr-cron + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/pharmacy/csi-phr-cron/kustomization.yaml b/DEV/pharmacy/csi-phr-cron/kustomization.yaml new file mode 100644 index 0000000..8fef361 --- /dev/null +++ b/DEV/pharmacy/csi-phr-cron/kustomization.yaml @@ -0,0 +1,29 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/pharmacy/csi-phr-cron + +# resources: +# - post-sync.yaml + +replicas: +- name: csi-phr-cron + count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-phr-cron + newName: registry.cloudsolutions.com.sa/vida-uat/csi-phr-cron + newTag: 4.0.8.22_prod #4.0.8.22-b2 #4.0.8.11_qa #4.0.7.0 #4.0.6.3 #4.0.5.0 #4.0.3.0 #4.0.2.0 #4.0.1.0 +namespace: csi-dev + +#patchesJSON6902: +# - target: +# group: batch +# version: v1 +# kind: Job +# name: post +# patch: |- +# - op: replace +# path: /metadata/name +# value: post-csi-phr-cron +# namespace: moh-uat diff --git a/DEV/pharmacy/csi-phr-cron/post-sync.yaml b/DEV/pharmacy/csi-phr-cron/post-sync.yaml new file mode 100644 index 0000000..ac2cd57 --- /dev/null +++ b/DEV/pharmacy/csi-phr-cron/post-sync.yaml @@ -0,0 +1,34 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: post + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/kube/curl + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=shaggy-api-autoday&Branch=main' -k + + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + envFrom: + - secretRef: + name: automation-secret + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/pharmacy/pharmacy-ui/hpa.yaml b/DEV/pharmacy/pharmacy-ui/hpa.yaml new file mode 100644 index 0000000..3a76916 --- /dev/null +++ b/DEV/pharmacy/pharmacy-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-pharmacy-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/pharmacy/pharmacy-ui/kustomization.yaml b/DEV/pharmacy/pharmacy-ui/kustomization.yaml new file mode 100644 index 0000000..e1a6dca --- /dev/null +++ b/DEV/pharmacy/pharmacy-ui/kustomization.yaml @@ -0,0 +1,54 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/pharmacy/pharmacyui + +resources: +- ../../../DM-Sync/ + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: csi-pharmacy-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/pharmacy-ui + newName: registry.cloudsolutions.com.sa/vida-qa/pharmacy-ui + newTag: 4.2502_10_IR1_qa #4.2501_21_IR2_qa #4.2411_29_IR1 #4.4.1.85-b2 #4.4.1.85-b1 #4.2411_18_IR2_qa #4.2411_5_dev_dev #4.2408_30_IR_dev-b5 #4.2408_30_IR_dev-b2 #4.2409_1_IR2_qa #4.2408_1_IR39_qa #4.2408_1_IR38_qa #4.2408_1_IR34_qa #4.2408_1_IR28_qa #4.2408_1_IR20-dev #q4.2408_1_IR16-dev #4.2408_1_IR15-dev #4.2408_1_IR15_qa #4.2408_1_IR10_qa #4.2408_1_IR8_qa #4.2407_1_IR25_qa #4.2406_1_IR14-b1 #4.3.4.233_prod #4.3.4.221_prod #4.3.4.220_prod #4.3.4.215_prod #4.3.4.213_prod #4.3.4.211_prod #4.3.4.210_prod #4.3.4.209_prod #4.3.4.208_prod #4.3.4.205_prod #4.3.4.204_prod #4.3.4.200_prod #4.3.4.199_prod #4.3.4.198_prod #4.3.4.197_prod #4.3.4.196_prod #4.3.4.195_prod #4.3.4.193_prod #4.3.4.187_prod #4.3.4.186_prod #4.3.4.185_prod #4.3.4.183_prod #4.3.4.182_prod #4.3.4.181_prod #4.3.4.179_prod #4.3.4.178_prod #4.3.4.176_prod #4.3.4.175_prod #4.3.4.173_prod #4.3.4.172_prod #4.3.4.169_prod #4.3.4.167_prod #4.3.4.166_prod #4.3.4.165_prod #4.3.4.164_prod #4.3.4.159 #4.3.4.155 #4.3.4.152 #4.3.4.150 #4.3.4.149 #4.3.4.148 #4.3.4.147 #4.3.4.144 #4.3.4.142 #4.3.4.141 #4.3.4.140 #4.3.4.139 #4.3.4.138 + +namespace: csi-dev + +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: "phr-pharmacygui" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-pharmacygui + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-pharmacygui diff --git a/DEV/renal/ren-hemodialysis-srv/hpa.yaml b/DEV/renal/ren-hemodialysis-srv/hpa.yaml new file mode 100644 index 0000000..2139997 --- /dev/null +++ b/DEV/renal/ren-hemodialysis-srv/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-net-hemdialy + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/renal/ren-hemodialysis-srv/kustomization.yaml b/DEV/renal/ren-hemodialysis-srv/kustomization.yaml new file mode 100644 index 0000000..7eb2405 --- /dev/null +++ b/DEV/renal/ren-hemodialysis-srv/kustomization.yaml @@ -0,0 +1,55 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/renal/renalnet + +resources: +- ../../../DM-Sync/ + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-net-hemdialy +# count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/ren-hemodialysis-srv + newName: registry.cloudsolutions.com.sa/vida-qa/ren-hemodialysis-srv + newTag: 4.1.0.23_b14_qa + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: before + patch: | + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "ren-hemodialysis-srv" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: | + - op: replace + path: /metadata/name + value: before-ren-hemodialysis-srv + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-ren-hemodialysis-srv + diff --git a/DEV/reporting/csi-rf-file-uploader/hpa.yaml b/DEV/reporting/csi-rf-file-uploader/hpa.yaml new file mode 100644 index 0000000..a44a3fe --- /dev/null +++ b/DEV/reporting/csi-rf-file-uploader/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-rf-file-uploader + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/reporting/csi-rf-file-uploader/kustomization.yaml b/DEV/reporting/csi-rf-file-uploader/kustomization.yaml new file mode 100644 index 0000000..652d0eb --- /dev/null +++ b/DEV/reporting/csi-rf-file-uploader/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/reporting/reportingupload + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-token-filter + newName: registry.cloudsolutions.com.sa/vida-qa/csi-token-filter + newTag: 4.0.3.0-b2 + +- name: harbor.moh.gov.sa/vidamoh/csi-rf-file-uploader + newName: registry.cloudsolutions.com.sa/vida-qa/csi-rf-file-uploader + newTag: 4.0.2.45_1 #4.0.2.37 #4.0.2.39_3 #4.0.2.37_6 #4.0.2.36_3 + +namespace: csi-dev diff --git a/DEV/reporting/csi-rf-jdbc-sink/hpa.yaml b/DEV/reporting/csi-rf-jdbc-sink/hpa.yaml new file mode 100644 index 0000000..4f2db40 --- /dev/null +++ b/DEV/reporting/csi-rf-jdbc-sink/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-rf-jdbc-sink + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/reporting/csi-rf-jdbc-sink/kustomization.yaml b/DEV/reporting/csi-rf-jdbc-sink/kustomization.yaml new file mode 100644 index 0000000..caee3cc --- /dev/null +++ b/DEV/reporting/csi-rf-jdbc-sink/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/reporting/csi-rf-jdbc-sink + +patchesStrategicMerge: +- hpa.yaml + +# replicas: +# - name: csi-rf-jdbc-sink +# count: 0 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-rf-jdbc-sink + newName: registry.cloudsolutions.com.sa/vida-qa/csi-rf-jdbc-sink + newTag: 4.1.2.5 #4.1.1.5 + +namespace: csi-dev diff --git a/DEV/reporting/csi-rf-reportingservice/hpa.yaml b/DEV/reporting/csi-rf-reportingservice/hpa.yaml new file mode 100644 index 0000000..5468e66 --- /dev/null +++ b/DEV/reporting/csi-rf-reportingservice/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-reporting + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/reporting/csi-rf-reportingservice/kustomization.yaml b/DEV/reporting/csi-rf-reportingservice/kustomization.yaml new file mode 100644 index 0000000..26dc4ec --- /dev/null +++ b/DEV/reporting/csi-rf-reportingservice/kustomization.yaml @@ -0,0 +1,19 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/reporting/reportingengv2 + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-token-filter + newName: registry.cloudsolutions.com.sa/vida-qa/csi-token-filter + newTag: 4.0.3.0-b2 + +- name: harbor.moh.gov.sa/vidamoh/csi-rf-reportingservice + newName: registry.cloudsolutions.com.sa/vida-qa/csi-rf-reportingservice + newTag: 4.1.15.29_8 #jav17-0.0.1 #jav17 #4.1.15.29_8 + + +namespace: csi-dev diff --git a/DEV/reporting/csi-streaming-etl/hpa.yaml b/DEV/reporting/csi-streaming-etl/hpa.yaml new file mode 100644 index 0000000..12aaa3f --- /dev/null +++ b/DEV/reporting/csi-streaming-etl/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-streaming-etl + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/reporting/csi-streaming-etl/kustomization.yaml b/DEV/reporting/csi-streaming-etl/kustomization.yaml new file mode 100644 index 0000000..9ae42f0 --- /dev/null +++ b/DEV/reporting/csi-streaming-etl/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/reporting/csistreamingetl + +patchesStrategicMerge: +- hpa.yaml + + + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-streaming-etl + newName: registry.cloudsolutions.com.sa/vida-qa/csi-streaming-etl + newTag: 4.1.2.3 #4.1.2.2 #4.1.2.0_prod + +namespace: csi-dev + diff --git a/DEV/reporting/report-studio-ui/kustomization.yaml b/DEV/reporting/report-studio-ui/kustomization.yaml new file mode 100644 index 0000000..2aa652d --- /dev/null +++ b/DEV/reporting/report-studio-ui/kustomization.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/reporting/reportstudio + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: +- name: csi-report-studio-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/report-studio-ui + newName: registry.cloudsolutions.com.sa/vida-qa/report-studio-ui + newTag: 4.1.34.34 #4.1.34.29_4 + +namespace: csi-dev diff --git a/DEV/reporting/reporting-job/base/Deployment.yaml b/DEV/reporting/reporting-job/base/Deployment.yaml new file mode 100644 index 0000000..62c2dd7 --- /dev/null +++ b/DEV/reporting/reporting-job/base/Deployment.yaml @@ -0,0 +1,62 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: csi-test + namespace: moh-prod +spec: + #replicas: 3 + selector: + matchLabels: + app: csi-test + tier: backend + track: stable + template: + metadata: + labels: + app: csi-test + tier: backend + track: stable + spec: + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app + operator: In + values: + - csi-test + topologyKey: "kubernetes.io/hostname" + containers: + - env: + - name: kafka_bootstrap_servers + valueFrom: + configMapKeyRef: + key: CSI_LOGS_KAFKA_BOOTSTRAPADDRESS + name: service-configs + # - name: elk_log_topic + # valueFrom: + # configMapKeyRef: + # key: CSI_LOGS_KAFKA_TOPIC + # name: service-configs + # envFrom: + # - configMapRef: + # name: service-configs-stream-etl + # - secretRef: + # name: service-stream-etl-secret + image: 'harbor.moh.gov.sa/vidamoh/csi-streaming-etl-job:4.1.1.20' + imagePullPolicy: IfNotPresent + name: csi-test + ports: + - containerPort: 80 + name: http + protocol: TCP + resources: + limits: + cpu: 500m + memory: 2Gi + requests: + cpu: 250m + memory: 500Mi + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/reporting/reporting-job/base/hpa.yaml b/DEV/reporting/reporting-job/base/hpa.yaml new file mode 100644 index 0000000..1914a76 --- /dev/null +++ b/DEV/reporting/reporting-job/base/hpa.yaml @@ -0,0 +1,23 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-test + namespace: moh-prod +spec: + scaleTargetRef: + apiVersion: apps/v1 # Optional. Default: apps/v1 + kind: Deployment # Optional. Default: Deployment + name: csi-test # Mandatory. Must be in the same namespace as the ScaledObject + # pollingInterval: 30 # Optional. Default: 30 seconds + cooldownPeriod: 180 # Optional. Default: 300 seconds + minReplicaCount: 1 # Optional. Default: 0 + maxReplicaCount: 6 # Optional. Default: 100 + triggers: + - type: cpu + metadata: + type: Utilization + value: "100" + # - type: memory + # metadata: + # type: Utilization + # value: "80" \ No newline at end of file diff --git a/DEV/reporting/reporting-job/base/kustomization.yaml b/DEV/reporting/reporting-job/base/kustomization.yaml new file mode 100644 index 0000000..b77c252 --- /dev/null +++ b/DEV/reporting/reporting-job/base/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- service.yaml +- Deployment.yaml +- hpa.yaml \ No newline at end of file diff --git a/DEV/reporting/reporting-job/base/service.yaml b/DEV/reporting/reporting-job/base/service.yaml new file mode 100644 index 0000000..f390d2b --- /dev/null +++ b/DEV/reporting/reporting-job/base/service.yaml @@ -0,0 +1,14 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: csi-test + namespace: moh-prod +spec: + ports: + - port: 80 + protocol: TCP + targetPort: 80 + selector: + app: csi-test + type: ClusterIP \ No newline at end of file diff --git a/DEV/reporting/reporting-job/overlays/hpa.yaml b/DEV/reporting/reporting-job/overlays/hpa.yaml new file mode 100644 index 0000000..ad4eed3 --- /dev/null +++ b/DEV/reporting/reporting-job/overlays/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-test + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/reporting/reporting-job/overlays/kustomization.yaml b/DEV/reporting/reporting-job/overlays/kustomization.yaml new file mode 100644 index 0000000..be08184 --- /dev/null +++ b/DEV/reporting/reporting-job/overlays/kustomization.yaml @@ -0,0 +1,42 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- ../base + +patchesStrategicMerge: +# - hpa.yaml +# - post-delete.yaml +replicas: +- name: csi-test + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-streaming-etl + newName: registry.cloudsolutions.com.sa/vida-prod/csi-streaming-etl + newTag: 4.1.1.43_7 #4.1.2.0_prod + +namespace: csi-dev +patchesJson6902: +- target: + version: v1 + kind: Namespace + name: moh-prod + patch: |- + - op: replace + path: /metadata/name + value: csi-dev +- target: + group: apps + version: v1 + kind: Deployment + name: csi-test + patch: |- + - op: replace + path: /spec/template/spec/containers/0/resources/limits/memory + value: 100Mi + - op: replace + path: /spec/template/spec/containers/0/resources/requests/cpu + value: 2m + - op: replace + path: /spec/template/spec/containers/0/resources/requests/memory + value: 25Mi diff --git a/DEV/reporting/reporting-job/overlays/post-delete.yaml b/DEV/reporting/reporting-job/overlays/post-delete.yaml new file mode 100644 index 0000000..76aae3a --- /dev/null +++ b/DEV/reporting/reporting-job/overlays/post-delete.yaml @@ -0,0 +1,15 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: cleanup-job + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded +spec: + template: + spec: + containers: + - name: cleanup + image: registry.cloudsolutions.com.sa/public/busybox:latest + command: ["sh", "-c", "kubectl delete deployment csi-test -n csi-dev"] + restartPolicy: Never diff --git a/DEV/reporting/reporting-job/overlays/streaming-job.yaml b/DEV/reporting/reporting-job/overlays/streaming-job.yaml new file mode 100644 index 0000000..df367dd --- /dev/null +++ b/DEV/reporting/reporting-job/overlays/streaming-job.yaml @@ -0,0 +1,67 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: streaming-job + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PreSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + template: + spec: + containers: + - name: presync-pod + image: registry.cloudsolutions.com.sa/vida-qa/csi-automation-initiator:V3.0.0.19 + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: ["sleep infinity"] + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + env: + - name: owner + value: "CSI_UAT-QA" + - name: repo + value: "PERF" + - name: filePath + value: "kustomization.yaml" + - name: active_profile + valueFrom: + configMapKeyRef: + key: activeProfile + name: service-configs + - name: SPRING_JPA_HIBERNATE_DIALECT + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: SPRING_JPA_DATABASE-PLATFORM + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: configserver + valueFrom: + configMapKeyRef: + key: config_server + name: service-configs + - name: hostname + value: csi-java-ehr-config + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + restartPolicy: Never + imagePullSecrets: + - name: regcred + diff --git a/DEV/rms/csi-ds-dental-core-java-sev/hpa.yaml b/DEV/rms/csi-ds-dental-core-java-sev/hpa.yaml new file mode 100644 index 0000000..1debae4 --- /dev/null +++ b/DEV/rms/csi-ds-dental-core-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-java-ds-dental-core + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/rms/csi-ds-dental-core-java-sev/kustomization.yaml b/DEV/rms/csi-ds-dental-core-java-sev/kustomization.yaml new file mode 100644 index 0000000..232ecab --- /dev/null +++ b/DEV/rms/csi-ds-dental-core-java-sev/kustomization.yaml @@ -0,0 +1,50 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/dsdental + +resources: +- ../../../DM-Sync/ + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ds-dental-core-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ds-dental-core-java-sev + newTag: 4.2411_01_IR3_qa #"4.2409_12" #4.2411_01_IR2_qa #4.2409_11_D7 #4.2409_11_D2 #4.2407_1_D2 #4.2407_1_D1-b1 #4.2406_1_D1 #4.4.0.38_prod #4.4.0.36_prod #4.4.0.35_prod #4.4.0.28_prod + +namespace: csi-dev +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-ds-dental-core-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-ds-dental-core-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-ds-dental-core-java-sev + diff --git a/DEV/rms/csi-mlm-ui/hpa.yaml b/DEV/rms/csi-mlm-ui/hpa.yaml new file mode 100644 index 0000000..ec9651d --- /dev/null +++ b/DEV/rms/csi-mlm-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-mlm-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/rms/csi-mlm-ui/kustomization.yaml b/DEV/rms/csi-mlm-ui/kustomization.yaml new file mode 100644 index 0000000..c26ab1a --- /dev/null +++ b/DEV/rms/csi-mlm-ui/kustomization.yaml @@ -0,0 +1,57 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/mlmui + +resources: +- ../../../DM-Sync/ + +# patchesStrategicMerge: +# - hpa.yaml + +replicas: +- name: csi-mlm-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/mlm-ui + newName: registry.cloudsolutions.com.sa/vida-qa/mlm-ui + newTag: 4.2503_1_D1 #4.4.190.0_qa #4.2410_1_D1 + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: .* + patch: | + - op: replace + path: /metadata/name + value: before-csi-mlm-ui + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-mlm-ui" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: | + - op: replace + path: /metadata/name + value: before-csi-mlm-ui + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-mlm-ui diff --git a/DEV/rms/csi-morgue-ui/hpa.yaml b/DEV/rms/csi-morgue-ui/hpa.yaml new file mode 100644 index 0000000..6dbe276 --- /dev/null +++ b/DEV/rms/csi-morgue-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-morgue-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/rms/csi-morgue-ui/kustomization.yaml b/DEV/rms/csi-morgue-ui/kustomization.yaml new file mode 100644 index 0000000..475d290 --- /dev/null +++ b/DEV/rms/csi-morgue-ui/kustomization.yaml @@ -0,0 +1,54 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/rmsmorgueui + +resources: +- ../../../DM-Sync/ + +# patchesStrategicMerge: +# - hpa.yaml + +replicas: +- name: csi-morgue-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/morgue-ui + newName: registry.cloudsolutions.com.sa/vida-qa/csi-morgue-ui + newTag: 4.3.5.0_qa #4.2411.0-D10 #4.2411.0-D7 #4.2411.0-D6 #4.2411.0-D3 #4.2411.0-D2 #4.2411.0-D1 #4.10.4.0_prod #4.10.5.5_prod #4.10.1.0 #4.10.2.0 #4.10.1.0 #4.2.150.0 + +namespace: csi-dev + +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-morgue-ui" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-morgue-ui + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-morgue-ui diff --git a/DEV/rms/csi-pms-adt-request-java-sev/hpa.yaml b/DEV/rms/csi-pms-adt-request-java-sev/hpa.yaml new file mode 100644 index 0000000..b62f0ab --- /dev/null +++ b/DEV/rms/csi-pms-adt-request-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-pms-adt-request + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/rms/csi-pms-adt-request-java-sev/kustomization.yaml b/DEV/rms/csi-pms-adt-request-java-sev/kustomization.yaml new file mode 100644 index 0000000..be6b694 --- /dev/null +++ b/DEV/rms/csi-pms-adt-request-java-sev/kustomization.yaml @@ -0,0 +1,60 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/pmsadtrequest + +resources: +- ../../../Sync-new/ + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-pms-adt-request-java-sev + newName: registry.cloudsolutions.com.sa/vida-uat/csi-pms-adt-request-java-sev #172.15.100.214:5000/csi-pms-adt-request-java-sev #registry.cloudsolutions.com.sa/vida-qa/csi-pms-adt-request-java-sev + newTag: 4.10.57.0_TR_14_prod #4.10.57.0_TR_13_prod #4.10.57.0_TR_11_prod #4.10.57.0_TR_4_prod #4.1.294.0_qa + +namespace: csi-dev +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-pms-adt-request-java-sev" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-pms-adt-request-java-sev" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "rms" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-pms-adt-request-java-sev + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-pms-adt-request-java-sev + diff --git a/DEV/rms/csi-pms-adt-ui/hpa.yaml b/DEV/rms/csi-pms-adt-ui/hpa.yaml new file mode 100644 index 0000000..6c55f1d --- /dev/null +++ b/DEV/rms/csi-pms-adt-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-adt-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/rms/csi-pms-adt-ui/kustomization.yaml b/DEV/rms/csi-pms-adt-ui/kustomization.yaml new file mode 100644 index 0000000..ec484ad --- /dev/null +++ b/DEV/rms/csi-pms-adt-ui/kustomization.yaml @@ -0,0 +1,58 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/adtui + +resources: +- ../../../Sync-new/ + +# patchesStrategicMerge: +# - hpa.yaml + +replicas: +- name: csi-adt-ui + count: 2 + +images: +- name: harbor.moh.gov.sa/vidamoh/adt-ui + newName: registry.cloudsolutions.com.sa/vida-qa/csi-pms-adt-ui #172.15.100.214:5000/csi-pms-adt-ui #registry.cloudsolutions.com.sa/vida-qa/csi-pms-adt-ui + newTag: 4.3.239.0_qa #4.2411_1_D2_dev + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: .* + patch: | + - op: replace + path: /metadata/name + value: before-csi-adt-ui + namespace: moh-uat + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "csi-adt-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_DATA_VERSION + value: "4.1.28.20" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-pms-adt-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-pms-adt-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "rms" diff --git a/DEV/rms/csi-rms-masterdata-java-sev/hpa.yaml b/DEV/rms/csi-rms-masterdata-java-sev/hpa.yaml new file mode 100644 index 0000000..5c52834 --- /dev/null +++ b/DEV/rms/csi-rms-masterdata-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-rms-masterdata + namespace: moh-prod +spec: + minReplicaCount: 2 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/rms/csi-rms-masterdata-java-sev/kustomization.yaml b/DEV/rms/csi-rms-masterdata-java-sev/kustomization.yaml new file mode 100644 index 0000000..a03cb4c --- /dev/null +++ b/DEV/rms/csi-rms-masterdata-java-sev/kustomization.yaml @@ -0,0 +1,48 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/rmsmasterdata + +resources: +- ../../../DM-Sync/ + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-rms-masterdata-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-rms-masterdata-java-sev #172.15.100.214:5000/csi-rms-masterdata-java-sev + newTag: 4.1.219.0_qa #4.2501_1_D3_dev #4.2501_1_D2_dev #4.2412_1_D11_dev #4.2412_1_D3_dev #4.2409_1_D49_dev +namespace: csi-dev +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-rms-masterdata-java-sev" + +- target: + group: batch + version: v1 + kind: Job + name: data-migration-presync + patch: | + - op: replace + path: /metadata/name + value: before-csi-rms-masterdata + +- target: + group: batch + version: v1 + kind: Job + name: data-migration-presync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-rms-masterdata diff --git a/DEV/rms/csi-rms-morgue-java-service/db-sync.yaml b/DEV/rms/csi-rms-morgue-java-service/db-sync.yaml new file mode 100644 index 0000000..14f465f --- /dev/null +++ b/DEV/rms/csi-rms-morgue-java-service/db-sync.yaml @@ -0,0 +1,121 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: before + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PreSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + argocd.argoproj.io/sync-wave: "1" + #argocd.argoproj.io/sync-options: Prune=false +spec: + backoffLimit: 3 + template: + spec: + containers: + - name: presync-pod + #image: registry.cloudsolutions.com.sa/vida-qa/csi-automation-initiator-stable:latest + image: registry.cloudsolutions.com.sa/vida-qa/csi-automation-initiator:3.0.0.90 #3.0.0.88 #3.0.0.76.2 #3.0.0.74 #3.0.0.66 #3.0.0.69 #V3.0.0.46 + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: ["mkdir automation && git config --global http.sslVerify false && git clone --depth 1 https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git /usr/app/automation/ && node index.js"] + #args: ["mkdir kafka && mkdir db-Change && mkdir screenPermissions && mkdir mongoIndex && mkdir featureToggles && mkdir LabelTranslations && mkdir masterData && mkdir BusinessPermissions && mkdir Configurations && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Kafka-topic-automation.git /usr/app/kafka/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/DB-Change-automation.git /usr/app/db-Change/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Screen-permissions.git /usr/app/screenPermissions/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/MongoDB-indexes.git /usr/app/mongoIndex/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Feature-Toggles.git /usr/app/featureToggles/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/LabelTranslations.git /usr/app/LabelTranslations/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/masterData.git /usr/app/masterData/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Business-Permissions.git /usr/app/BusinessPermissions/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Configuration.git /usr/app/Configurations/ && node index.js && sleep 10"] + resources: + #limits: + #cpu: 750m + #memory: 3Gi + requests: + cpu: 128m + memory: 128Mi + env: + - name: owner + value: "CSI_DEV" + - name: repo + value: "CSI_DEV" + - name: filePath + value: "kustomization.yaml" + - name: active_profile + valueFrom: + configMapKeyRef: + key: activeProfile + name: service-configs + - name: SPRING_JPA_HIBERNATE_DIALECT + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: SPRING_JPA_DATABASE-PLATFORM + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: configserver + valueFrom: + configMapKeyRef: + key: config_server + name: service-configs + - name: hostname + value: csi-java-ehr-config + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + + - name: data-migration-pod + image: registry.cloudsolutions.com.sa/vida-qa/csi-data-migration-initiator:4.0.27.13 #3.0.0.88 #3.0.0.76.2 #3.0.0.74 #3.0.0.66 #3.0.0.69 #V3.0.0.46 + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: ["mkdir automation && git config --global http.sslVerify false && git clone --depth 1 https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git /app/automation/ && python3 main.py"] + resources: + #limits: + #cpu: 750m + #memory: 3Gi + requests: + cpu: 128m + memory: 128Mi + env: + - name: owner + value: "CSI_DEV" + - name: repo + value: "CSI_DEV" + - name: filePath + value: "kustomization.yaml" + - name: active_profile + valueFrom: + configMapKeyRef: + key: activeProfile + name: service-configs + - name: SPRING_JPA_HIBERNATE_DIALECT + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: SPRING_JPA_DATABASE-PLATFORM + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: configserver + valueFrom: + configMapKeyRef: + key: config_server + name: service-configs + - name: hostname + value: csi-java-ehr-config + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/rms/csi-rms-morgue-java-service/hpa.yaml b/DEV/rms/csi-rms-morgue-java-service/hpa.yaml new file mode 100644 index 0000000..3a02c28 --- /dev/null +++ b/DEV/rms/csi-rms-morgue-java-service/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-rms-morgue + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/rms/csi-rms-morgue-java-service/kustomization.yaml b/DEV/rms/csi-rms-morgue-java-service/kustomization.yaml new file mode 100644 index 0000000..69c8365 --- /dev/null +++ b/DEV/rms/csi-rms-morgue-java-service/kustomization.yaml @@ -0,0 +1,58 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/rmsmorgue + +resources: +# - db-sync.yaml +- ../../../DM-Sync/ + + +#- dbsync.yaml +# - dbsyncwithpv.yaml + + + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-rms-morgue-java-service + newName: registry.cloudsolutions.com.sa/vida-qa/csi-rms-morgue-java-service + newTag: 4.2.7.0_qa #4.0.0.1_D2_dev #4.1.106.0 + +namespace: csi-dev + +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-rms-morgue-java-service" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: | + - op: replace + path: /metadata/name + value: before-csi-rms-morgue-java-service + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-rms-morgue-java-service + diff --git a/DEV/rms/csi-rms-morgue-java-service/presync.yaml b/DEV/rms/csi-rms-morgue-java-service/presync.yaml new file mode 100644 index 0000000..0f55174 --- /dev/null +++ b/DEV/rms/csi-rms-morgue-java-service/presync.yaml @@ -0,0 +1,44 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: sync-presync + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + # argocd.argoproj.io/hook-delete-policy: HookSucceeded +spec: + backoffLimit: 3 + template: + spec: + containers: + - name: presync-pod + image: registry.cloudsolutions.com.sa/vida-qa/csi-data-migration-initiator:4.0.56.17 + imagePullPolicy: IfNotPresent + resources: + limits: + cpu: 500m + memory: 3Gi + requests: + cpu: 250m + memory: 256Mi + env: + # - name: owner + # value: "CSI_DEV" + # - name: repo + # value: "CSI_DEV" + # - name: filePath + # value: "kustomization.yaml" + - name: MIGRATION_TYPE + value: "1" + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DEV/rms/csi-rms-reservation-java-sev/hpa.yaml b/DEV/rms/csi-rms-reservation-java-sev/hpa.yaml new file mode 100644 index 0000000..7b3b4e9 --- /dev/null +++ b/DEV/rms/csi-rms-reservation-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-rms-reservation + namespace: moh-prod +spec: + minReplicaCount: 2 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/rms/csi-rms-reservation-java-sev/kustomization.yaml b/DEV/rms/csi-rms-reservation-java-sev/kustomization.yaml new file mode 100644 index 0000000..24c033f --- /dev/null +++ b/DEV/rms/csi-rms-reservation-java-sev/kustomization.yaml @@ -0,0 +1,54 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/rmsreservation + +resources: +- ../../../Sync-new/ + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-rms-reservation-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-rms-reservation-java-sev #172.15.100.214:5000/csi-rms-reservation-java-sev + newTag: 4.2502_1_D22_dev #4.2502_1_D21_dev #4.2502_1_D17_dev #4.2502_1_D4_HF_3_dev #4.2502_1_D4_HF_2_dev #4.2502_1_D4_HF_1_dev #4.2502_1_D16_dev #4.2502_1_D13_dev #4.1.322.0_qa #4.2501_1_D7_dev #4.2501_1_D5_dev #4.2501_1_D4_dev #4.2501_1_D3_dev #4.2501_1_D2_dev #4.2501_1_D1_dev #4.2411_1_D15_dev + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: .* + patch: |- + - op: replace + path: /metadata/name + value: before-csi-rms-reservation + namespace: moh-uat + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "csi-rms-reservation-java-sev" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_DATA_VERSION + value: "AMD-11685" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-rms-reservation-java-sev" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-rms-reservation-java-sev" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "rms" diff --git a/DEV/rms/csi-rms-resource-registry-java-sev/hpa.yaml b/DEV/rms/csi-rms-resource-registry-java-sev/hpa.yaml new file mode 100644 index 0000000..8b36c21 --- /dev/null +++ b/DEV/rms/csi-rms-resource-registry-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-rms-resource-registry + namespace: moh-prod +spec: + minReplicaCount: 2 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/rms/csi-rms-resource-registry-java-sev/kustomization.yaml b/DEV/rms/csi-rms-resource-registry-java-sev/kustomization.yaml new file mode 100644 index 0000000..4fcd8a6 --- /dev/null +++ b/DEV/rms/csi-rms-resource-registry-java-sev/kustomization.yaml @@ -0,0 +1,57 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/rmsresourceregistry + +resources: +- ../../../Sync-new/ + + +patchesStrategicMerge: +- hpa.yaml + + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-rms-resource-registry-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-rms-resource-registry-java-sev #172.15.100.214:5000/csi-rms-resource-registry-java-sev + newTag: 4.2502_1_D5_dev #4.2.104.0_qa #4.2412_1_D2_dev #4.2412_1_D1_dev + +namespace: csi-dev + +patchesJson6902: +- target: + group: batch + version: v1 + kind: Job + name: .* + patch: |- + - op: replace + path: /metadata/name + value: before-csi-rms-resource-registry + namespace: moh-uat + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULENAME + value: "csi-rms-resource-registry-java-sev" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_DATA_VERSION + value: "AMD-11685" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PROJECT_NAME + value: "csi-rms-resource-registry-java-sev" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-rms-resource-registry-java-sev" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "rms" + diff --git a/DEV/rms/csi-rms-rules-java-sev/hpa.yaml b/DEV/rms/csi-rms-rules-java-sev/hpa.yaml new file mode 100644 index 0000000..1dc20c9 --- /dev/null +++ b/DEV/rms/csi-rms-rules-java-sev/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-rms-rules + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/rms/csi-rms-rules-java-sev/kustomization.yaml b/DEV/rms/csi-rms-rules-java-sev/kustomization.yaml new file mode 100644 index 0000000..0097f85 --- /dev/null +++ b/DEV/rms/csi-rms-rules-java-sev/kustomization.yaml @@ -0,0 +1,16 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/rmsrules + +patchesStrategicMerge: +- hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-rms-rules-java-sev + newName: registry.cloudsolutions.com.sa/vida-qa/csi-rms-rules-java-sev + newTag: 1.0.6 + +namespace: csi-dev + + diff --git a/DEV/rms/csi-rms-ui/hpa.yaml b/DEV/rms/csi-rms-ui/hpa.yaml new file mode 100644 index 0000000..7b5d824 --- /dev/null +++ b/DEV/rms/csi-rms-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-rms-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/rms/csi-rms-ui/kustomization.yaml b/DEV/rms/csi-rms-ui/kustomization.yaml new file mode 100644 index 0000000..e35aa4f --- /dev/null +++ b/DEV/rms/csi-rms-ui/kustomization.yaml @@ -0,0 +1,63 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/rmsui + +resources: +- ../../../Sync-new/ + +#patchesStrategicMerge: +#- patch-pod.yaml + +replicas: + - name: csi-rms-ui + count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/rms-ui + newName: registry.cloudsolutions.com.sa/vida-qa/rms-ui + newTag: 4.2503_1_D1 #4.2502_1_D20 #4.2502_1_D19 #4.2502_1_D17 #4.2502_1_D5 #4.2501_1_D1 + +namespace: csi-dev +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-rms-ui" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_PARENT_MODULE_NAME + value: "rms" + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: CSI_MODULE_NAME + value: "csi-rms-ui" + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-bm-approval-ui + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-bm-approval-ui \ No newline at end of file diff --git a/DEV/rms/csi-setup-ui/kustomization.yaml b/DEV/rms/csi-setup-ui/kustomization.yaml new file mode 100644 index 0000000..8471946 --- /dev/null +++ b/DEV/rms/csi-setup-ui/kustomization.yaml @@ -0,0 +1,56 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/setupui + +resources: +- ../../../DM-Sync/ + +# patchesStrategicMerge: +# - hpa.yaml + +replicas: + - name: csi-setup-ui + count: 2 + +images: + +- name: harbor.moh.gov.sa/vidamoh/setup-ui + newName: registry.cloudsolutions.com.sa/vida-qa/setup-ui + newTag: 4.2501_1_D3 #4.2501_1_D1 #4.2407_1_D37 + +namespace: csi-dev + +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-setup-ui" + + +- target: + group: batch + version: v1 + kind: Job + name: sync-presync + patch: |- + - op: replace + path: /metadata/name + value: before-csi-setup-ui + +- target: + group: batch + version: v1 + kind: Job + name: sync-postsync + patch: |- + - op: replace + path: /metadata/name + value: after-csi-setup-ui diff --git a/DEV/rms/rms-ui/kustomization.yaml b/DEV/rms/rms-ui/kustomization.yaml new file mode 100644 index 0000000..1fd3789 --- /dev/null +++ b/DEV/rms/rms-ui/kustomization.yaml @@ -0,0 +1,50 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/rms/rmsui + +resources: +- ../../../DM-Sync + +replicas: + - name: csi-rms-ui + count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/rms-ui + newName: registry.cloudsolutions.com.sa/vida-qa/rms-ui + newTag: 4.2501_1_D3 #4.2501_1_D2 #4.2412_1_D12 #4.2412_1_D10 + +namespace: csi-dev +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-rms-ui" + +- target: + kind: Job + name: sync-presync + version: v1 + patch: |- + - op: replace + path: /metadata/name + value: before-csi-rms-ui + namespace: moh-uat + +- target: + kind: Job + name: sync-postsync + version: v1 + patch: |- + - op: replace + path: /metadata/name + value: after-csi-rms-ui + namespace: moh-uat diff --git a/DEV/rms/setup-ui/hpa.yaml b/DEV/rms/setup-ui/hpa.yaml new file mode 100644 index 0000000..cbcd0de --- /dev/null +++ b/DEV/rms/setup-ui/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-setup-ui + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 1 \ No newline at end of file diff --git a/DEV/security/csi-iam/kustomization.yaml b/DEV/security/csi-iam/kustomization.yaml new file mode 100644 index 0000000..1456fe3 --- /dev/null +++ b/DEV/security/csi-iam/kustomization.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/security/securityiamservice + +patchesStrategicMerge: +- patch-hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-iam + newName: registry.cloudsolutions.com.sa/vida-qa/csi-iam + newTag: 4.2.108.4_prod #4.2.108.2.D4_qa #4.2.108.2.D3_qa #4.2.108.2.D2_qa #4.2.108.2.D1_qa #4.2.108.1.D1_qa #4.2.108.0-b1 #4.2.104.0 + +namespace: csi-dev diff --git a/DEV/security/csi-iam/patch-hpa.yaml b/DEV/security/csi-iam/patch-hpa.yaml new file mode 100644 index 0000000..6efeffa --- /dev/null +++ b/DEV/security/csi-iam/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-iam + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/security/csi-master-data-management-service/kustomization.yaml b/DEV/security/csi-master-data-management-service/kustomization.yaml new file mode 100644 index 0000000..44f736c --- /dev/null +++ b/DEV/security/csi-master-data-management-service/kustomization.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/security/securitymasterdatamgt + +patchesStrategicMerge: +- patch-hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-master-data-management-service + newName: registry.cloudsolutions.com.sa/vida-qa/csi-master-data-management-service + newTag: 4.1.1.0-hf1 + +namespace: csi-dev diff --git a/DEV/security/csi-master-data-management-service/patch-hpa.yaml b/DEV/security/csi-master-data-management-service/patch-hpa.yaml new file mode 100644 index 0000000..40f8bfe --- /dev/null +++ b/DEV/security/csi-master-data-management-service/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-master-data-management-service + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/security/csi-roles-permissions-management-service/kustomization.yaml b/DEV/security/csi-roles-permissions-management-service/kustomization.yaml new file mode 100644 index 0000000..6706fa9 --- /dev/null +++ b/DEV/security/csi-roles-permissions-management-service/kustomization.yaml @@ -0,0 +1,15 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/security/securityrolespermissions + +patchesStrategicMerge: +- patch-hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-roles-permissions-management-service + newName: registry.cloudsolutions.com.sa/vida-qa/csi-roles-permissions-management-service + newTag: 4.1.1.1 + +namespace: csi-dev + diff --git a/DEV/security/csi-roles-permissions-management-service/patch-hpa.yaml b/DEV/security/csi-roles-permissions-management-service/patch-hpa.yaml new file mode 100644 index 0000000..effff21 --- /dev/null +++ b/DEV/security/csi-roles-permissions-management-service/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-roles-permissions-management-service + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/security/csi-ui-registry-service/kustomization.yaml b/DEV/security/csi-ui-registry-service/kustomization.yaml new file mode 100644 index 0000000..897be4b --- /dev/null +++ b/DEV/security/csi-ui-registry-service/kustomization.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/security/securityuiregistry + +patchesStrategicMerge: +- patch-hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-ui-registry-service + newName: registry.cloudsolutions.com.sa/vida-qa/csi-ui-registry-service + newTag: 4.1.1.1 + +namespace: csi-dev diff --git a/DEV/security/csi-ui-registry-service/patch-hpa.yaml b/DEV/security/csi-ui-registry-service/patch-hpa.yaml new file mode 100644 index 0000000..43cf1a2 --- /dev/null +++ b/DEV/security/csi-ui-registry-service/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-ui-registry-service + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/security/jboss-infinispan-server/kustomization.yaml b/DEV/security/jboss-infinispan-server/kustomization.yaml new file mode 100644 index 0000000..43851b5 --- /dev/null +++ b/DEV/security/jboss-infinispan-server/kustomization.yaml @@ -0,0 +1,30 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/security/securityiamcache + +patchesStrategicMerge: +- patch-hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/jboss-infinispan-server + newName: registry.cloudsolutions.com.sa/vida-qa/jboss-infinispan-server + newTag: 9.4.8.Final + +patchesJson6902: +- target: + group: apps + version: v1 + kind: StatefulSet + name: infinispan-server + namespace: moh-prod + patch: | + - op: add + path: /spec/template/spec/tolerations + value: + - key: "treat" + operator: "Equal" + value: "core" + effect: "NoSchedule" + +namespace: csi-dev diff --git a/DEV/security/jboss-infinispan-server/patch-hpa.yaml b/DEV/security/jboss-infinispan-server/patch-hpa.yaml new file mode 100644 index 0000000..ab03fcd --- /dev/null +++ b/DEV/security/jboss-infinispan-server/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: infinispan-server + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/security/securityiamcache/kustomization.yaml b/DEV/security/securityiamcache/kustomization.yaml new file mode 100644 index 0000000..daa91c4 --- /dev/null +++ b/DEV/security/securityiamcache/kustomization.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/security/securityiamcache + +patchesStrategicMerge: +- patch-hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/jboss-infinispan-server + newName: registry.cloudsolutions.com.sa/vida-qa/jboss-infinispan-server + newTag: 9.4.8.Final + +namespace: csi-dev \ No newline at end of file diff --git a/DEV/security/securityiamcache/patch-hpa.yaml b/DEV/security/securityiamcache/patch-hpa.yaml new file mode 100644 index 0000000..ab03fcd --- /dev/null +++ b/DEV/security/securityiamcache/patch-hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: infinispan-server + namespace: moh-prod +spec: + minReplicaCount: 1 + maxReplicaCount: 2 \ No newline at end of file diff --git a/DEV/security/securityiamservice/kustomization.yaml b/DEV/security/securityiamservice/kustomization.yaml new file mode 100644 index 0000000..47ea6dd --- /dev/null +++ b/DEV/security/securityiamservice/kustomization.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/security/securityiamservice + +patchesStrategicMerge: +- patch-hpa.yaml + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-iam + newName: registry.cloudsolutions.com.sa/vida-qa/csi-iam + newTag: 4.2.108.2.D1_qa #4.2.108.1.D1_qa #4.2.108.0-b1 #4.2.104.0 + +namespace: csi-dev \ No newline at end of file diff --git a/DEV/superset/base/Deployment.yaml b/DEV/superset/base/Deployment.yaml new file mode 100644 index 0000000..9994115 --- /dev/null +++ b/DEV/superset/base/Deployment.yaml @@ -0,0 +1,169 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: superset + namespace: csi-dev +spec: + replicas: 1 + selector: + matchLabels: + app: superset + tier: backend + track: stable + template: + metadata: + labels: + app: superset + module: superset + tier: backend + track: stable + spec: + hostAliases: + - ip: "10.201.216.151" + hostnames: + - "dev.cloudsolutions.com.sa" + - "superset.dev.cloudsol.lk" + containers: + - name: superset + image: registry.cloudsolutions.com.sa/vida-qa/superset:2.1.1.10 + imagePullPolicy: IfNotPresent + command: ["/app/docker/docker-bootstrap.sh", "app-gunicorn"] + envFrom: + - configMapRef: + name: service-configs-superset + - secretRef: + name: service-secret-superset + ports: + - containerPort: 8088 + name: http + resources: + limits: + memory: 2Gi + requests: + cpu: 50m + memory: 1Gi + imagePullSecrets: + - name: regcred +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: worker + namespace: csi-dev +spec: + replicas: 2 + selector: + matchLabels: + app: worker + tier: backend + track: stable + template: + metadata: + labels: + app: worker + module: superset + tier: backend + track: stable + spec: + hostAliases: + - ip: "10.201.216.151" + hostnames: + - "dev.cloudsolutions.com.sa" + - "superset.dev.cloudsol.lk" + containers: + - name: worker + image: registry.cloudsolutions.com.sa/vida-qa/superset:2.1.1.10 + imagePullPolicy: IfNotPresent + command: ["/app/docker/docker-bootstrap.sh", "worker"] + envFrom: + - configMapRef: + name: service-configs-superset + - secretRef: + name: service-secret-superset + ports: + - containerPort: 8088 + name: port-8088 + - containerPort: 53066 + name: http + resources: + limits: + memory: 2Gi + requests: + cpu: 50m + memory: 1Gi + imagePullSecrets: + - name: regcred +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: superset-worker-beat + namespace: csi-dev +spec: + replicas: 1 + selector: + matchLabels: + app: superset-worker-beat + tier: backend + track: stable + template: + metadata: + labels: + app: superset-worker-beat + module: superset + tier: backend + track: stable + spec: + containers: + - name: superset-worker-beat + image: registry.cloudsolutions.com.sa/vida-qa/superset:2.1.1.10 + imagePullPolicy: IfNotPresent + command: ["/app/docker/docker-bootstrap.sh", "beat"] + envFrom: + - configMapRef: + name: service-configs-superset + - secretRef: + name: service-secret-superset + ports: + - containerPort: 8088 + name: http + resources: + limits: + memory: 2Gi + requests: + cpu: 50m + memory: 1Gi + volumeMounts: + - name: certs + mountPath: "/app/certs/" + imagePullSecrets: + - name: regcred + volumes: + - name: certs + secret: + secretName: superset-secret + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: csi-dev + name: redis-superset + labels: + app: redis-superset +spec: + replicas: 1 + selector: + matchLabels: + app: redis-superset + template: + metadata: + labels: + app: redis-superset + spec: + #nodeName: phc-uk8swrk-01 + containers: + - name: redis-superset + image: registry.cloudsolutions.com.sa/public/redis:7 + ports: + - containerPort: 6379 \ No newline at end of file diff --git a/DEV/superset/base/hpa.yaml b/DEV/superset/base/hpa.yaml new file mode 100644 index 0000000..6480d63 --- /dev/null +++ b/DEV/superset/base/hpa.yaml @@ -0,0 +1,14 @@ +apiVersion: autoscaling/v2beta2 +kind: HorizontalPodAutoscaler +metadata: + name: superset +spec: + minReplicas: 1 + maxReplicas: 2 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 90 \ No newline at end of file diff --git a/DEV/superset/base/kustomization.yaml b/DEV/superset/base/kustomization.yaml new file mode 100644 index 0000000..58e34b7 --- /dev/null +++ b/DEV/superset/base/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- service.yaml +- Deployment.yaml \ No newline at end of file diff --git a/DEV/superset/base/service.yaml b/DEV/superset/base/service.yaml new file mode 100644 index 0000000..4781216 --- /dev/null +++ b/DEV/superset/base/service.yaml @@ -0,0 +1,28 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: superset + name: superset + namespace: csi-dev +spec: + ports: + - port: 80 + targetPort: 8088 + selector: + app: superset + type: ClusterIP + +--- +apiVersion: v1 +kind: Service +metadata: + name: redis-superset-svc + namespace: csi-dev +spec: + selector: + app: redis-superset + ports: + - protocol: TCP + port: 6379 + targetPort: 6379 \ No newline at end of file diff --git a/DEV/support-portal/support-portal/hpa.yaml b/DEV/support-portal/support-portal/hpa.yaml new file mode 100644 index 0000000..fa75e83 --- /dev/null +++ b/DEV/support-portal/support-portal/hpa.yaml @@ -0,0 +1,8 @@ +apiVersion: keda.sh/v1alpha1 +kind: ScaledObject +metadata: + name: csi-support-portal + namespace: moh-prod +spec: + minReplicaCount: 0 + maxReplicaCount: 0 \ No newline at end of file diff --git a/DEV/support-portal/support-portal/kustomization.yaml b/DEV/support-portal/support-portal/kustomization.yaml new file mode 100644 index 0000000..962b6c3 --- /dev/null +++ b/DEV/support-portal/support-portal/kustomization.yaml @@ -0,0 +1,15 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +bases: +- https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/support-portal/support-portal + +replicas: + - name: csi-support-portal + count: 1 + +images: +- name: harbor.moh.gov.sa/vidamoh/csi-support-portal + newName: registry.cloudsolutions.com.sa/vida-qa/csi-support-portal + newTag: 2.0.0.15 #2.0.0.9 #2.0.0.4 + +namespace: csi-dev \ No newline at end of file diff --git a/DM-Sync/kustomization.yaml b/DM-Sync/kustomization.yaml new file mode 100644 index 0000000..3802ea0 --- /dev/null +++ b/DM-Sync/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - presync.yaml + - postsync.yaml \ No newline at end of file diff --git a/DM-Sync/postsync.yaml b/DM-Sync/postsync.yaml new file mode 100644 index 0000000..2e981b7 --- /dev/null +++ b/DM-Sync/postsync.yaml @@ -0,0 +1,42 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: sync-postsync + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync +# argocd.argoproj.io/hook-delete-policy: HookSucceeded +spec: + backoffLimit: 3 + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/vida-qa/csi-data-migration-initiator:4.0.56.0 + imagePullPolicy: IfNotPresent + resources: + limits: + cpu: 500m + memory: 3Gi + requests: + cpu: 250m + memory: 256Mi + env: + - name: MIGRATION_TYPE + value: "2" + - name: owner + value: "CSI_DEV" + - name: repo + value: "CSI_DEV_CS" + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DM-Sync/presync.yaml b/DM-Sync/presync.yaml new file mode 100644 index 0000000..42502b1 --- /dev/null +++ b/DM-Sync/presync.yaml @@ -0,0 +1,44 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: sync-presync + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PreSync +# argocd.argoproj.io/hook-delete-policy: HookSucceeded +spec: + backoffLimit: 3 + template: + spec: + containers: + - name: presync-pod + image: registry.cloudsolutions.com.sa/vida-qa/csi-data-migration-initiator:4.0.57.3 + imagePullPolicy: IfNotPresent + resources: + limits: + cpu: 500m + memory: 3Gi + requests: + cpu: 250m + memory: 256Mi + env: + - name: MIGRATION_TYPE + value: "1" + - name: isDropValidationDisabled + value: "true" + - name: owner + value: "CSI_DEV" + - name: repo + value: "CSI_DEV_CS" + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/Sync-DM/data-migration_postsync.yaml b/Sync-DM/data-migration_postsync.yaml new file mode 100644 index 0000000..dfe1455 --- /dev/null +++ b/Sync-DM/data-migration_postsync.yaml @@ -0,0 +1,70 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: data-migration-postsync + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + argocd.argoproj.io/sync-wave: "2" + #argocd.argoproj.io/sync-options: Prune=false +spec: + backoffLimit: 3 + template: + spec: + containers: + - name: presync-pod + image: registry.cloudsolutions.com.sa/vida-qa/csi-data-migration-initiator:4.0.27.11 + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: ["mkdir automation && git config --global http.sslVerify false && git clone --depth 1 https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git /app/automation/ && python3 main.py"] + resources: + limits: + cpu: 500m + memory: 3Gi + requests: + cpu: 250m + memory: 256Mi + env: + - name: owner + value: "CSI_DEV" + - name: repo + value: "CSI_DEV_CS" + - name: filePath + value: "kustomization.yaml" + - name: MIGRATION_TYPE + value: "2" + - name: active_profile + valueFrom: + configMapKeyRef: + key: activeProfile + name: service-configs + - name: SPRING_JPA_HIBERNATE_DIALECT + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: SPRING_JPA_DATABASE-PLATFORM + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: configserver + valueFrom: + configMapKeyRef: + key: config_server + name: service-configs + - name: hostname + value: csi-java-ehr-config + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/Sync-DM/data-migration_presync.yaml b/Sync-DM/data-migration_presync.yaml new file mode 100644 index 0000000..4ab18e1 --- /dev/null +++ b/Sync-DM/data-migration_presync.yaml @@ -0,0 +1,70 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: data-migration-presync + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PreSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + argocd.argoproj.io/sync-wave: "2" + #argocd.argoproj.io/sync-options: Prune=false +spec: + backoffLimit: 3 + template: + spec: + containers: + - name: presync-pod + image: registry.cloudsolutions.com.sa/vida-qa/csi-data-migration-initiator:4.0.27.11 + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: ["mkdir automation && git config --global http.sslVerify false && git clone --depth 1 https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git /app/automation/ && python3 main.py"] + resources: + limits: + cpu: 500m + memory: 3Gi + requests: + cpu: 250m + memory: 256Mi + env: + - name: owner + value: "CSI_DEV" + - name: repo + value: "CSI_DEV_CS" + - name: filePath + value: "kustomization.yaml" + - name: MIGRATION_TYPE + value: "1" + - name: active_profile + valueFrom: + configMapKeyRef: + key: activeProfile + name: service-configs + - name: SPRING_JPA_HIBERNATE_DIALECT + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: SPRING_JPA_DATABASE-PLATFORM + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: configserver + valueFrom: + configMapKeyRef: + key: config_server + name: service-configs + - name: hostname + value: csi-java-ehr-config + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/Sync-DM/kustomization.yaml b/Sync-DM/kustomization.yaml new file mode 100644 index 0000000..91d0016 --- /dev/null +++ b/Sync-DM/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- data-migration_presync.yaml +- data-migration_postsync.yaml \ No newline at end of file diff --git a/Sync-new/PreSync/dbsync.yaml b/Sync-new/PreSync/dbsync.yaml new file mode 100644 index 0000000..186477d --- /dev/null +++ b/Sync-new/PreSync/dbsync.yaml @@ -0,0 +1,72 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: before + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PreSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + argocd.argoproj.io/sync-wave: "1" + #argocd.argoproj.io/sync-options: Prune=false +spec: + backoffLimit: 3 + template: + spec: + containers: + - name: presync-pod + #image: registry.cloudsolutions.com.sa/vida-qa/csi-automation-initiator-stable:latest + image: registry.cloudsolutions.com.sa/vida-qa/csi-automation-initiator:3.0.1.0 #3.0.0.96.2 #3.0.0.88 #3.0.0.76.2 #3.0.0.74 #3.0.0.66 #3.0.0.69 #V3.0.0.46 + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: ["mkdir automation && git config --global http.sslVerify false && git clone --depth 1 https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git /usr/app/automation/ && node index.js"] + #args: ["mkdir kafka && mkdir db-Change && mkdir screenPermissions && mkdir mongoIndex && mkdir featureToggles && mkdir LabelTranslations && mkdir masterData && mkdir BusinessPermissions && mkdir Configurations && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Kafka-topic-automation.git /usr/app/kafka/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/DB-Change-automation.git /usr/app/db-Change/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Screen-permissions.git /usr/app/screenPermissions/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/MongoDB-indexes.git /usr/app/mongoIndex/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Feature-Toggles.git /usr/app/featureToggles/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/LabelTranslations.git /usr/app/LabelTranslations/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/masterData.git /usr/app/masterData/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Business-Permissions.git /usr/app/BusinessPermissions/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Configuration.git /usr/app/Configurations/ && node index.js && sleep 10"] + resources: + #limits: + #cpu: 750m + #memory: 3Gi + requests: + cpu: 128m + memory: 128Mi + env: + - name: owner + value: "CSI_DEV" + - name: repo + value: "CSI_DEV_CS" + - name: filePath + value: "kustomization.yaml" + - name: DISABLE_STEP_TRACKER + value: "true" + - name: active_profile + valueFrom: + configMapKeyRef: + key: activeProfile + name: service-configs + - name: SPRING_JPA_HIBERNATE_DIALECT + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: SPRING_JPA_DATABASE-PLATFORM + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: configserver + valueFrom: + configMapKeyRef: + key: config_server + name: service-configs + - name: hostname + value: csi-java-ehr-config + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/Sync-new/kustomization.yaml b/Sync-new/kustomization.yaml new file mode 100644 index 0000000..4189dbf --- /dev/null +++ b/Sync-new/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- PreSync/dbsync.yaml \ No newline at end of file diff --git a/Sync-pv/PreSync/dbsyncwithpv.yaml b/Sync-pv/PreSync/dbsyncwithpv.yaml new file mode 100644 index 0000000..4a1180d --- /dev/null +++ b/Sync-pv/PreSync/dbsyncwithpv.yaml @@ -0,0 +1,150 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: before + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PreSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + argocd.argoproj.io/sync-wave: "1" + #argocd.argoproj.io/sync-options: Prune=false +spec: + backoffLimit: 3 + template: + spec: + containers: + - name: presync-pod + image: registry.cloudsolutions.com.sa/vida-qa/csi-automation-initiator:3.0.0.72 + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c"] + args: + - | + # Step 1: Navigate to the app directory + git config --global http.sslVerify false && + cd /usr/app/automation && + + # Step 2: Check if it's a valid Git repository, initialize if not + if [ ! -d .git ]; then + echo "Initializing Git repository in /usr/app/automation" && + git clone -c https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git ./ + fi && + + # Step 3: Pull the latest changes from the 'main' branch directly into the current directory + git pull origin main && + echo "Pulled latest changes from 'main' branch." && + + ls -la && + cd ../ && + ls -la && + pwd && + + # Step 5: Perform your database sync operation (replace with your actual command) + node /usr/app/index.js + + ##--new change end + + + # # Step 1: Create directory, configure Git, and clone repository + + # cd /usr/app/automation/ && + # rm -rf * && + # rm -rf .git && + # mkdir -p /usr/app/automation && + + # # Step 2: Check if the folder 'Automation' exists in /usr/app/automation and handle concurrent cloning + # git config --global http.sslVerify false && + # #cd /usr/app/automation/ && + # ls -al /usr/app/automation/ && + + # #-- Clone condition start + # # Step 1: Check if the directory is empty + # if [ -z "$(ls -A /usr/app/automation/)" ]; then + # # Directory is empty, clone the repository + # echo "Directory is empty. Cloning repository..." && + # git config --global http.sslVerify false && + # #git clone --depth 1 --branch main https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git && + # git config --global init.defaultBranch main + # git init + # git pull https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git /usr/app/automation/ && + # echo "Repository cloned successfully from branch main." + # else + # # Directory is not empty, pull the latest changes + # echo "Directory is not empty. Pulling the latest changes..." && + # if [ -d /usr/app/automation/.git ]; then + # #cd /usr/app/automation/Automation/ && + # git config --global http.sslVerify false && + # git pull https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git /usr/app/automation/ && + # echo "Pulled latest changes from branch main." + # echo "Here's directory list" + # ls -al /usr/app/automation/ + # echo "Here's Current folder path" + # pwd + # else + # echo "Directory contains files but is not a valid Git repository. Exiting..." && + # exit 1 + # fi + # fi && + # #-- Clone condition end + + # # Step 3: Run the Node.js application + # sleep 10 && + # node /usr/app/index.js + + # # Step 4: Sleep test + # #sleep infinity + + volumeMounts: + - name: git-clone + mountPath: /usr/app/automation/ + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + env: + - name: owner + value: "CSI_DEV" + - name: repo + value: "CSI_DEV" + - name: filePath + value: "kustomization.yaml" + - name: active_profile + valueFrom: + configMapKeyRef: + key: activeProfile + name: service-configs + - name: SPRING_JPA_HIBERNATE_DIALECT + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: SPRING_JPA_DATABASE-PLATFORM + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: configserver + valueFrom: + configMapKeyRef: + key: config_server + name: service-configs + - name: hostname + value: csi-java-ehr-config + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + restartPolicy: Never + volumes: + - name: git-clone + persistentVolumeClaim: + claimName: pre-sync-pvc + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/Sync-pv/kustomization.yaml b/Sync-pv/kustomization.yaml new file mode 100644 index 0000000..101b8cf --- /dev/null +++ b/Sync-pv/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- PreSync/dbsyncwithpv.yaml \ No newline at end of file diff --git a/Sync/PreSync/dbsync.yaml b/Sync/PreSync/dbsync.yaml new file mode 100644 index 0000000..19d6c5e --- /dev/null +++ b/Sync/PreSync/dbsync.yaml @@ -0,0 +1,63 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: before + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PreSync + argocd.argoproj.io/hook-delete-policy: HookSucceeded + #argocd.argoproj.io/sync-options: Prune=false +spec: + backoffLimit: 2 + template: + spec: + containers: + - name: presync-pod + image: harbor.moh.gov.sa/vidamoh/csi-database-initiator:V1.0.0.125 + imagePullPolicy: IfNotPresent + resources: + limits: + cpu: 300m + memory: 1Gi + requests: + cpu: 250m + memory: 256Mi + env: + # - name: CSI_MODULENAME + # value: "csi-rms-masterdata-java-sev" + # - name: CSI_DATA_VERSION + # value: "4.0.127.0" + - name: active_profile + valueFrom: + configMapKeyRef: + key: activeProfile + name: service-configs + - name: SPRING_JPA_HIBERNATE_DIALECT + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: SPRING_JPA_DATABASE-PLATFORM + valueFrom: + configMapKeyRef: + key: db-dialect + name: service-configs + - name: configserver + valueFrom: + configMapKeyRef: + key: config_server + name: service-configs + - name: hostname + value: csi-java-ehr-config + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/Sync/kustomization.yaml b/Sync/kustomization.yaml new file mode 100644 index 0000000..739efcd --- /dev/null +++ b/Sync/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - PreSync/dbsync.yaml \ No newline at end of file diff --git a/dbtools/deployment.yaml b/dbtools/deployment.yaml new file mode 100644 index 0000000..73b314f --- /dev/null +++ b/dbtools/deployment.yaml @@ -0,0 +1 @@ +--- \ No newline at end of file