main
commit
05e2b7375e
@ -0,0 +1,59 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: before
|
||||
namespace: moh-prod
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PreSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: presync-pod
|
||||
image: harbor.moh.gov.sa/vidamoh/csi-automation-initiator:V1.0.0.230
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["/bin/sh", "-c"]
|
||||
args: ["mkdir kafka && mkdir db-Change && mkdir screenPermissions && mkdir mongoIndex && mkdir featureToggles && mkdir LabelTranslations && mkdir masterData && mkdir BusinessPermissions && 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/ && node index.js && sleep 20"]
|
||||
resources:
|
||||
limits:
|
||||
cpu: 300m
|
||||
memory: 1Gi
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 256Mi
|
||||
env:
|
||||
- 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
|
@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- dbsync.yaml
|
@ -0,0 +1,188 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: api-gateway
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: api-gateway
|
||||
tier: backend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: api-gateway
|
||||
module: security
|
||||
tier: backend
|
||||
track: stable
|
||||
spec:
|
||||
containers:
|
||||
- image: harbor.moh.gov.sa/vidamoh/csi-token-filter:4.0.3.0-b2
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: token-filter
|
||||
ports:
|
||||
- containerPort: 8085
|
||||
name: http
|
||||
env:
|
||||
- name: GODEBUG
|
||||
value: 'gctrace=1,schedtrace=10000'
|
||||
# - name: DB_SERVER
|
||||
# valueFrom:
|
||||
# configMapKeyRef:
|
||||
# key: DB_ADDR
|
||||
# name: iam-service-configs
|
||||
# - name: DB_SERVICE
|
||||
# valueFrom:
|
||||
# secretKeyRef:
|
||||
# key: DB_DATABASE
|
||||
# name: iam-service-secret
|
||||
# - name: DB_USERNAME
|
||||
# valueFrom:
|
||||
# secretKeyRef:
|
||||
# key: DB_USER
|
||||
# name: iam-service-secret
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: iam-service-configs
|
||||
- secretRef:
|
||||
name: iam-service-secret
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz/liveness
|
||||
port: 8085
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /healthz/readiness
|
||||
port: 8085
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
resources:
|
||||
limits:
|
||||
memory: 1G
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 256M
|
||||
- env:
|
||||
- name: active_profile
|
||||
value: default
|
||||
- name: configserver
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: configserver
|
||||
name: security-service-configs
|
||||
- name: hostname
|
||||
value: api-gateway
|
||||
- name: EUREKA_CLIENT_SERVICEURL_DEFAULTZONE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: eureka_server
|
||||
name: security-service-configs
|
||||
- name: UI_HOSTNAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: ui_hostname
|
||||
name: security-service-configs
|
||||
- name: EUREKA_INSTANCE_PREFER-IP-ADDRESS
|
||||
value: "false"
|
||||
- name: SPRING_DATASOURCE_URL
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: database-url
|
||||
name: security-database-configs
|
||||
- name: SPRING_DATASOURCE_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: DB_USER
|
||||
name: iam-service-secret
|
||||
- name: SPRING_DATASOURCE_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: DB_PASSWORD
|
||||
name: iam-service-secret
|
||||
- name: SPRING_JPA_DATABASE-PLATFORM
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: SPRING_JPA_HIBERNATE_DIALECT
|
||||
name: service-configs
|
||||
- name: SPRING_DATASOURCE_DRIVER_CLASS_NAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: db-driver
|
||||
name: service-configs
|
||||
- name: HIBERNATE_DIALECT
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: db-dialect
|
||||
name: service-configs
|
||||
- name: CSI_RECORD_REQUESTS
|
||||
value: "false"
|
||||
- name: CSI_RECORD-REQUESTS
|
||||
value: "false"
|
||||
- name: apm_server
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: apm_server
|
||||
name: service-configs
|
||||
- name: management_health_refresh_enabled
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: management_health_refresh_enabled
|
||||
name: service-configs
|
||||
- name: CSI_ACCESS_TOKEN_VERIFICATION_ENABLED
|
||||
value: "false"
|
||||
image: harbor.moh.gov.sa/vidamoh/api-gateway:4.0.2.0 #4.0.0.3-hf1 #1.0.0.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- "-c"
|
||||
- >-
|
||||
curl -X POST http://localhost:9000/actuator/shutdown ; sleep
|
||||
5
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: http
|
||||
scheme: HTTP
|
||||
initialDelaySeconds: 1200
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 10
|
||||
name: api-gateway
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
- containerPort: 9000
|
||||
name: management
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: http
|
||||
scheme: HTTP
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 10
|
||||
resources:
|
||||
limits:
|
||||
memory: 1500Mi
|
||||
requests:
|
||||
cpu: 150m
|
||||
memory: 750Mi
|
||||
volumeMounts:
|
||||
- name: configuration
|
||||
mountPath: /app/config
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
volumes:
|
||||
- name: configuration
|
||||
configMap:
|
||||
name: api-gateway-configs
|
@ -0,0 +1,23 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: api-gateway
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: api-gateway # 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: "90"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: api-gateway
|
||||
name: api-gateway
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8085
|
||||
selector:
|
||||
app: api-gateway
|
||||
type: ClusterIP
|
@ -0,0 +1,112 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-base-utility
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-base-utility
|
||||
tier: backend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-base-utility
|
||||
tier: backend
|
||||
track: stable
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- csi-base-utility
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
containers:
|
||||
- env:
|
||||
- name: active_profile
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: activeProfile
|
||||
name: service-configs
|
||||
- name: configserver
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: config_server
|
||||
name: service-configs
|
||||
- name: SPRING_JPA_HIBERNATE_DIALECT
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: db-dialect
|
||||
name: baseutil-database-configs
|
||||
- name: SPRING_JPA_DATABASE-PLATFORM
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: db-dialect
|
||||
name: baseutil-database-configs
|
||||
- name: SPRING_DATASOURCE_URL
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: db-base-utility-url
|
||||
name: baseutil-database-configs
|
||||
- name: SPRING_DATASOURCE_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: db-base-utility-username
|
||||
name: baseutil-service-secret
|
||||
- name: SPRING_DATASOURCE_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: db-base-utility-password
|
||||
name: baseutil-service-secret
|
||||
- name: hostname
|
||||
value: csi-java-base-utility
|
||||
- name: JAVA_OPTS
|
||||
value: "-Xms512m -Xmx1536m"
|
||||
- name: JVM_OPTS
|
||||
value: "-XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=70 -XX:CompressedClassSpaceSize=64m -XX:ReservedCodeCacheSize=64m -XX:MaxMetaspaceSize=256m -Xms512m -Xmx1536m -XX:MaxRAMPercentage=70 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/app/heapdumps/base-util.hprof"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: service-configs
|
||||
- secretRef:
|
||||
name: service-configs-secret
|
||||
image: harbor.moh.gov.sa/vidamoh/base-utility-service-java-sev:4.1.9.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-base-utility
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: http
|
||||
initialDelaySeconds: 800
|
||||
timeoutSeconds: 10
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: http
|
||||
initialDelaySeconds: 20
|
||||
timeoutSeconds: 10
|
||||
resources:
|
||||
limits:
|
||||
memory: 3Gi
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 1.5Gi
|
||||
volumeMounts:
|
||||
- name: heapdumps-volume
|
||||
mountPath: /app/heapdumps
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
volumes:
|
||||
- name: heapdumps-volume
|
||||
hostPath:
|
||||
path: /heapdumps
|
||||
type: DirectoryOrCreate
|
@ -0,0 +1,52 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-base-utility
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: csi-base-utility # 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: "90"
|
||||
# triggers:
|
||||
# - type: cpu/memory
|
||||
# metricType: Utilizat #Utilization
|
||||
# metadata:
|
||||
# value: "75"
|
||||
|
||||
|
||||
|
||||
# spec:
|
||||
# scaleTargetRef:
|
||||
# name: my-deployment
|
||||
# advanced: # Optional. Section to specify advanced options
|
||||
# restoreToOriginalReplicaCount: true/false # Optional. Default: false
|
||||
# horizontalPodAutoscalerConfig: # Optional. Section to specify HPA related options
|
||||
# behavior: # Optional. Use to modify HPA's scaling behavior
|
||||
# scaleDown:
|
||||
# stabilizationWindowSeconds: 300
|
||||
# policies:
|
||||
# - type: Percent
|
||||
# value: 100
|
||||
# periodSeconds: 15
|
||||
# triggers:
|
||||
# - type: resource # provider cpu/memory scaler
|
||||
# metadata:
|
||||
# name: cpu/memory
|
||||
# type: value/ utilization/ averagevalue
|
||||
# value: 60 # Optional
|
||||
# averageValue: 40 # Optional
|
||||
# averageUtilization: 50 # Optional
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-java-base-utility
|
||||
name: csi-java-base-utility
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-base-utility
|
||||
type: ClusterIP
|
@ -0,0 +1,34 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-config-ui
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
#replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-config-ui
|
||||
tier: frontend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-config-ui
|
||||
tier: frontend
|
||||
track: stable
|
||||
spec:
|
||||
containers:
|
||||
- image: harbor.moh.gov.sa/vidamoh/base-ui:4.0.95.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-config-ui
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
memory: 100Mi
|
||||
requests:
|
||||
cpu: 2m
|
||||
memory: 25Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,19 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: cpu-csi-config-ui
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: csi-config-ui
|
||||
pollingInterval: 30
|
||||
cooldownPeriod: 300
|
||||
minReplicaCount: 1
|
||||
maxReplicaCount: 2
|
||||
triggers:
|
||||
- type: cpu
|
||||
metadata:
|
||||
type: Utilization
|
||||
value: "80"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
#- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-config-ui-service
|
||||
name: csi-config-ui-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-config-ui
|
||||
type: ClusterIP
|
@ -0,0 +1,44 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-vida-mfe
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-vida-mfe
|
||||
tier: frontend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-vida-mfe
|
||||
tier: frontend
|
||||
track: stable
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- csi-vida-mfe
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
containers:
|
||||
- image: harbor.moh.gov.sa/vidamoh/csi-vida-mfe:4.0.0.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-vida-mfe
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
memory: 100Mi
|
||||
requests:
|
||||
cpu: 2m
|
||||
memory: 25Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,23 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-vida-mfe
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: csi-vida-mfe # 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: "80"
|
||||
- type: memory
|
||||
metadata:
|
||||
type: Utilization
|
||||
value: "80"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
#- hpa.yaml
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-vida-mfe-service
|
||||
name: csi-vida-mfe-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-vida-mfe
|
||||
type: ClusterIP
|
@ -0,0 +1,37 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: document-generator-core
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
#replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: document-generator-core
|
||||
tier: backend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: document-generator-core
|
||||
module: base
|
||||
tier: backend
|
||||
track: stable
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.cloudsolutions.com.sa/vida-qa/document-generator-core:4.0.0.0-b1
|
||||
name: document-generator-core
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
- containerPort: 3000
|
||||
name: app
|
||||
resources:
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 1250Mi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 1000Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,23 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: document-generator-core
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: document-generator-core # 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: 5 # Optional. Default: 100
|
||||
triggers:
|
||||
- type: cpu
|
||||
metadata:
|
||||
type: Utilization
|
||||
value: "100"
|
||||
# - type: memory
|
||||
# metadata:
|
||||
# type: Utilization
|
||||
# value: "80"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: document-generator-core
|
||||
name: document-generator-core
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 3000
|
||||
selector:
|
||||
app: document-generator-core
|
||||
type: ClusterIP
|
@ -0,0 +1,44 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-form-builder-ui
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
#replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-form-builder-ui
|
||||
tier: frontend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-form-builder-ui
|
||||
tier: frontend
|
||||
track: stable
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- csi-form-builder-ui
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
containers:
|
||||
- image: harbor.moh.gov.sa/vidamoh/form-builder-ui:4.0.264.3
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-form-builder-ui
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
memory: 100Mi
|
||||
requests:
|
||||
cpu: 2m
|
||||
memory: 25Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,19 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-form-builder-ui
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: csi-form-builder-ui
|
||||
pollingInterval: 30
|
||||
cooldownPeriod: 300
|
||||
minReplicaCount: 3
|
||||
maxReplicaCount: 4
|
||||
triggers:
|
||||
- type: cpu
|
||||
metadata:
|
||||
type: Utilization
|
||||
value: "100"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
#- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-form-builder-ui-service
|
||||
name: csi-form-builder-ui-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-form-builder-ui
|
||||
type: ClusterIP
|
@ -0,0 +1,52 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-otp-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-otp-service
|
||||
tier: backend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-otp-service
|
||||
tier: backend
|
||||
track: stable
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: SPRING_REDIS_SENTINEL_MASTER
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: SPRING_REDIS_SENTINEL_MASTER
|
||||
name: otp-configs
|
||||
- name: SPRING_REDIS_SENTINEL_NODES
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: SPRING_REDIS_SENTINEL_NODES
|
||||
name: otp-configs
|
||||
- name: KAFKA_BOOTSTRAP_SERVERS
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: KAFKA_BOOTSTRAP_SERVERS
|
||||
name: otp-configs
|
||||
image: registry.cloudsolutions.com.sa/vida-qa/csi-otp-service:4.0.0.0-b3
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-otp-service
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
- containerPort: 3000
|
||||
name: app
|
||||
resources:
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 1250Mi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 512Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,23 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-otp-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: csi-otp-service # 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: 5 # Optional. Default: 100
|
||||
triggers:
|
||||
- type: cpu
|
||||
metadata:
|
||||
type: Utilization
|
||||
value: "100"
|
||||
# - type: memory
|
||||
# metadata:
|
||||
# type: Utilization
|
||||
# value: "80"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-otp-service
|
||||
name: csi-otp-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 3000
|
||||
selector:
|
||||
app: csi-otp-service
|
||||
type: ClusterIP
|
@ -0,0 +1,91 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-personalization
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-personalization
|
||||
tier: backend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-personalization
|
||||
tier: backend
|
||||
track: stable
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- csi-personalization
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
containers:
|
||||
- env:
|
||||
#- name: SPRING_DATA_MONGODB_HOST
|
||||
# value: mongo
|
||||
#- name: SPRING_DATA_MONGODB_PORT
|
||||
# value: '27017'
|
||||
- name: SPRING_DATA_MONGODB_URI
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: csi.personalization.mongo.uri
|
||||
name: security-database-configs
|
||||
- name: hostname
|
||||
value: csi-personalization-service
|
||||
- name: EUREKA_INSTANCE_HOSTNAME
|
||||
value: csi-personalization-service
|
||||
- name: JAVA_OPTS
|
||||
value: "-Xms256m -Xmx2048m"
|
||||
- name: JVM_OPTS
|
||||
value: "-Xms256m -Xmx2048m"
|
||||
- name: configserver
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: config_server
|
||||
name: service-configs
|
||||
- name: active_profile
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: activeProfile
|
||||
name: security-service-configs
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: service-configs
|
||||
- secretRef:
|
||||
name: service-configs-secret
|
||||
image: harbor.moh.gov.sa/vidamoh/csi-personalization-service-java-sev:4.0.74.2
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: http
|
||||
initialDelaySeconds: 600
|
||||
timeoutSeconds: 10
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: http
|
||||
initialDelaySeconds: 20
|
||||
timeoutSeconds: 10
|
||||
name: csi-personalization
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 2.5Gi
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 750Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,23 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-personalization
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: csi-personalization # 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: 5 # Optional. Default: 100
|
||||
triggers:
|
||||
- type: cpu
|
||||
metadata:
|
||||
type: Utilization
|
||||
value: "100"
|
||||
# - type: memory
|
||||
# metadata:
|
||||
# type: Utilization
|
||||
# value: "80"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-personalization-service
|
||||
name: csi-personalization-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-personalization
|
||||
type: ClusterIP
|
@ -0,0 +1,44 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-billing-ui
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
#replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-billing-ui
|
||||
tier: frontend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-billing-ui
|
||||
tier: frontend
|
||||
track: stable
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- csi-billing-ui
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
containers:
|
||||
- image: harbor.moh.gov.sa/vidamoh/billing-ui:4.5.81.6
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-billing-ui
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
memory: 100Mi
|
||||
requests:
|
||||
cpu: 2m
|
||||
memory: 25Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,19 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-billing-ui
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: csi-billing-ui
|
||||
pollingInterval: 30
|
||||
cooldownPeriod: 300
|
||||
minReplicaCount: 3
|
||||
maxReplicaCount: 4
|
||||
triggers:
|
||||
- type: cpu
|
||||
metadata:
|
||||
type: Utilization
|
||||
value: "100"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
#- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-billing-ui-service
|
||||
name: csi-billing-ui-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-billing-ui
|
||||
type: ClusterIP
|
@ -0,0 +1,44 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-approval-ui
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
#replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-approval-ui
|
||||
tier: frontend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-approval-ui
|
||||
tier: frontend
|
||||
track: stable
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- csi-approval-ui
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
containers:
|
||||
- image: harbor.moh.gov.sa/vidamoh/approval-ui:4.3.132.4
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-approval-ui
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
memory: 100Mi
|
||||
requests:
|
||||
cpu: 2m
|
||||
memory: 25Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,19 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-approval-ui
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: csi-approval-ui
|
||||
pollingInterval: 30
|
||||
cooldownPeriod: 300
|
||||
minReplicaCount: 3
|
||||
maxReplicaCount: 4
|
||||
triggers:
|
||||
- type: cpu
|
||||
metadata:
|
||||
type: Utilization
|
||||
value: "100"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
#- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-approval-ui-service
|
||||
name: csi-approval-ui-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-approval-ui
|
||||
type: ClusterIP
|
@ -0,0 +1,94 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-bm-approval-java-serviceg
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
#replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-bm-approval-java-service
|
||||
tier: backend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bm-approval-java-service
|
||||
tier: backend
|
||||
track: stable
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- csi-bm-approval-java-service
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
containers:
|
||||
- env:
|
||||
- name: namespace
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: configserver
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: config_server
|
||||
name: service-configs
|
||||
- name: active_profile
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: active_profile
|
||||
name: service-configs-bm
|
||||
- name: hostname
|
||||
value: csi-bm-approval
|
||||
- name: JAVA_OPTS
|
||||
value: "-Xms1024m -Xmx2048m"
|
||||
- name: JVM_OPTS
|
||||
value: "-Xms1024m -Xmx2048m"
|
||||
- name: FEIGN_HYSTRIX_ENABLED
|
||||
value: 'false'
|
||||
- name: CSI_JPA_EVENT_ISREPORT
|
||||
value: 'false'
|
||||
- name: SPRING_JPA_PROPERTIES_HIBERNATE_TEMP_USE_JDBC_METADATA_DEFAULTS
|
||||
value: 'true'
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: service-configs
|
||||
- configMapRef:
|
||||
name: service-configs-bm
|
||||
- secretRef:
|
||||
name: service-configs-secret
|
||||
- secretRef:
|
||||
name: service-bm-secret
|
||||
image: harbor.moh.gov.sa/vidamoh/csi-bm-approval-java-service:4.3.147.4-hf1
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-bm-approval-java-service
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /approval/health/liveness
|
||||
port: http
|
||||
initialDelaySeconds: 800
|
||||
timeoutSeconds: 30
|
||||
periodSeconds: 40
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /approval/actuator/health
|
||||
port: http
|
||||
initialDelaySeconds: 20
|
||||
timeoutSeconds: 30
|
||||
periodSeconds: 40
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
memory: 2.5Gi
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 750Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,23 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-bm-approval-java-serviceg
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: csi-bm-approval-java-serviceg # Mandatory. Must be in the same namespace as the ScaledObject
|
||||
# pollingInterval: 30 # Optional. Default: 30 seconds
|
||||
cooldownPeriod: 180 # Optional. Default: 300 seconds
|
||||
minReplicaCount: 2 # Optional. Default: 0
|
||||
maxReplicaCount: 4 # Optional. Default: 100
|
||||
triggers:
|
||||
- type: cpu
|
||||
metadata:
|
||||
type: Utilization
|
||||
value: "100"
|
||||
# - type: memory
|
||||
# metadata:
|
||||
# type: Utilization
|
||||
# value: "90"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bm-approval
|
||||
name: csi-bm-approval
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-bm-approval-java-service
|
||||
type: ClusterIP
|
@ -0,0 +1,102 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-bm-invoice-java-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
# replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-bm-invoice-java-service
|
||||
tier: backend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bm-invoice-java-service
|
||||
tier: backend
|
||||
track: stable
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- csi-bm-invoice-java-service
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
containers:
|
||||
- env:
|
||||
- name: namespace
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: configserver
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: config_server
|
||||
name: service-configs
|
||||
- name: active_profile
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: active_profile
|
||||
name: service-configs-bm
|
||||
- name: hostname
|
||||
value: csi-bm-invoice
|
||||
- name: FEIGN_HYSTRIX_ENABLED
|
||||
value: 'false'
|
||||
- name: CSI_JPA_EVENT_ISREPORT
|
||||
value: 'false'
|
||||
- name: JAVA_OPTS
|
||||
value: -Xms512m -Xmx1536m
|
||||
- name: JVM_OPTS
|
||||
value: -Xms512m -Xmx1536m
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: service-configs
|
||||
- configMapRef:
|
||||
name: service-configs-bm
|
||||
- secretRef:
|
||||
name: service-configs-secret
|
||||
- secretRef:
|
||||
name: service-bm-secret
|
||||
image: harbor.moh.gov.sa/vidamoh/csi-bm-invoice-java-service:4.2.206.13-hf4
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-bm-invoice-java-service
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /billing/health/liveness
|
||||
port: http
|
||||
initialDelaySeconds: 800
|
||||
timeoutSeconds: 30
|
||||
periodSeconds: 40
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /billing/actuator/health
|
||||
port: http
|
||||
initialDelaySeconds: 20
|
||||
timeoutSeconds: 30
|
||||
periodSeconds: 40
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
memory: 2.5Gi
|
||||
requests:
|
||||
cpu: 600m
|
||||
memory: 512Mi
|
||||
volumeMounts:
|
||||
- name: heapdumps-volume
|
||||
mountPath: /app/heapdumps
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
volumes:
|
||||
- name: heapdumps-volume
|
||||
hostPath:
|
||||
path: /heapdumps
|
||||
type: DirectoryOrCreate
|
@ -0,0 +1,23 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-bm-invoice-java-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: csi-bm-invoice-java-service # 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: "90"
|
@ -0,0 +1,44 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
- hpa.yaml
|
||||
#- ../../PreSync
|
||||
|
||||
# patchesJson6902:
|
||||
# - target:
|
||||
# group: batch
|
||||
# version: v1
|
||||
# kind: Job
|
||||
# name: before
|
||||
# patch: |-
|
||||
# - op: replace
|
||||
# path: /metadata/name
|
||||
# value: before-bmbillinginvoicejava
|
||||
# namespace: moh-prod
|
||||
# - 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: "4.2.846.0"
|
||||
# - 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: "bmbillinginvoicejava"
|
||||
# - op: add
|
||||
# path: /spec/template/spec/containers/0/env/-
|
||||
# value:
|
||||
# name: CSI_PARENT_MODULE_NAME
|
||||
# value: "billing"
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bm-invoice
|
||||
name: csi-bm-invoice
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-bm-invoice-java-service
|
||||
type: ClusterIP
|
@ -0,0 +1,102 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-bm-billing-java-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-bm-billing-java-service
|
||||
tier: backend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bm-billing-java-service
|
||||
tier: backend
|
||||
track: stable
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- csi-bm-billing-java-service
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
containers:
|
||||
- env:
|
||||
- name: namespace
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: configserver
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: config_server
|
||||
name: service-configs
|
||||
- name: active_profile
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: active_profile
|
||||
name: service-configs-bm
|
||||
- name: hostname
|
||||
value: csi-bm-billing
|
||||
- name: FEIGN_HYSTRIX_ENABLED
|
||||
value: 'false'
|
||||
- name: CSI_JPA_EVENT_ISREPORT
|
||||
value: 'false'
|
||||
- name: JVM_OPTS
|
||||
value: "-Xms256m -Xmx2048m"
|
||||
- name: JAVA_OPTS
|
||||
value: "-XX:MaxMetaspaceSize=256m -Xms256m -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/app/heapdumps/bm-java-heap-dump.hprof"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: service-configs
|
||||
- configMapRef:
|
||||
name: service-configs-bm
|
||||
- secretRef:
|
||||
name: service-configs-secret
|
||||
- secretRef:
|
||||
name: service-bm-secret
|
||||
image: harbor.moh.gov.sa/vidamoh/csi-bm-billing-java-service:4.5.77.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-bm-billing-java-service
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /billing/actuator/health/liveness
|
||||
port: http
|
||||
initialDelaySeconds: 800
|
||||
timeoutSeconds: 30
|
||||
periodSeconds: 40
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /billing/actuator/health
|
||||
port: http
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 40
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 30
|
||||
resources:
|
||||
limits:
|
||||
memory: 3Gi
|
||||
requests:
|
||||
cpu: 500m
|
||||
memory: 1Gi
|
||||
volumeMounts:
|
||||
- name: heapdumps-volume
|
||||
mountPath: /app/heapdumps
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
volumes:
|
||||
- name: heapdumps-volume
|
||||
hostPath:
|
||||
path: /heapdumps
|
||||
type: DirectoryOrCreate
|
@ -0,0 +1,23 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-bm-billing-java-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: csi-bm-billing-java-service # 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: "150"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bm-billing
|
||||
name: csi-bm-billing
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-bm-billing-java-service
|
||||
type: ClusterIP
|
@ -0,0 +1,44 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-bm-invoice-ui
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
#replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-bm-invoice-ui
|
||||
tier: frontend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bm-invoice-ui
|
||||
tier: frontend
|
||||
track: stable
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- csi-bm-invoice-ui
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
containers:
|
||||
- image: harbor.moh.gov.sa/vidamoh/bm-invoice-ui:4.2.207.22
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-bm-invoice-ui
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
memory: 100Mi
|
||||
requests:
|
||||
cpu: 2m
|
||||
memory: 25Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,19 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-bm-invoice-ui
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: csi-bm-invoice-ui
|
||||
pollingInterval: 30
|
||||
cooldownPeriod: 300
|
||||
minReplicaCount: 1
|
||||
maxReplicaCount: 2
|
||||
triggers:
|
||||
- type: cpu
|
||||
metadata:
|
||||
type: Utilization
|
||||
value: "100"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
#- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bm-invoice-ui-service
|
||||
name: csi-bm-invoice-ui-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-bm-invoice-ui
|
||||
type: ClusterIP
|
@ -0,0 +1,128 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-bm-inte-bridge-java-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
#replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-bm-inte-bridge-java-service
|
||||
tier: backend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bm-inte-bridge-java-service
|
||||
module: billing
|
||||
tier: backend
|
||||
track: stable
|
||||
spec:
|
||||
# initContainers:
|
||||
# - env:
|
||||
# - name: CSI_MODULENAME
|
||||
# value: "csi-bm-invoice-java-service"
|
||||
# - name: CSI_DATA_VERSION
|
||||
# value: "4.2.502.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: init-database-configs
|
||||
# - secretRef:
|
||||
# name: init-database-secrets
|
||||
# - configMapRef:
|
||||
# name: service-configs
|
||||
# - secretRef:
|
||||
# name: service-configs-secret
|
||||
# image: 'registry.cloudsolutions.com.sa/vida-qa/csi-database-initiator:V1.0.0.27'
|
||||
# imagePullPolicy: IfNotPresent
|
||||
# name: csi-bm-invoice-java-service-init
|
||||
# resources:
|
||||
# limits:
|
||||
# cpu: 300m
|
||||
# memory: 1Gi
|
||||
# requests:
|
||||
# cpu: 250m
|
||||
# memory: 256Mi
|
||||
containers:
|
||||
- env:
|
||||
- name: configserver
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: config_server
|
||||
name: service-configs
|
||||
- name: active_profile
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: active_profile
|
||||
name: service-configs-bm
|
||||
- name: hostname
|
||||
value: csi-bm-inte-bridge
|
||||
- name: FEIGN_HYSTRIX_ENABLED
|
||||
value: 'false'
|
||||
- name: CSI_JPA_EVENT_ISREPORT
|
||||
value: 'false'
|
||||
- name: JAVA_OPTS
|
||||
value: "-Xms256m -Xmx1024m"
|
||||
- name: JVM_OPTS
|
||||
value: "-Xms256m -Xmx1024m"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: service-configs
|
||||
- configMapRef:
|
||||
name: service-configs-bm
|
||||
- secretRef:
|
||||
name: service-configs-secret
|
||||
- secretRef:
|
||||
name: service-bm-secret
|
||||
image: harbor.moh.gov.sa/vidamoh/csi-bm-inte-bridge-java-service:4.2.131.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-bm-inte-bridge-java-service
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /inte-bridge/actuator/health
|
||||
port: http
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 40
|
||||
timeoutSeconds: 30
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /inte-bridge/actuator/health
|
||||
port: http
|
||||
initialDelaySeconds: 1200
|
||||
periodSeconds: 40
|
||||
timeoutSeconds: 30
|
||||
resources:
|
||||
limits:
|
||||
memory: 2Gi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 750Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,23 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-bm-inte-bridge-java-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: csi-bm-inte-bridge-java-service # 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: AverageValue
|
||||
# value: "2500Mi"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bm-inte-bridge
|
||||
name: csi-bm-inte-bridge
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-bm-inte-bridge-java-service
|
||||
type: ClusterIP
|
@ -0,0 +1,58 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-bm-promotion-java-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
#replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-bm-promotion-java-service
|
||||
tier: backend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bm-promotion-java-service
|
||||
module: billing
|
||||
tier: backend
|
||||
track: stable
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: active_profile
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: active_profile
|
||||
name: service-configs-bm-promotional
|
||||
- name: hostname
|
||||
value: csi-bm-prm
|
||||
- name: JAVA_OPTS
|
||||
value: "-Xms256m -Xmx1024m"
|
||||
- name: JVM_OPTS
|
||||
value: "-Xms256m -Xmx1024m"
|
||||
envFrom:
|
||||
# - configMapRef:
|
||||
# name: service-configs
|
||||
- configMapRef:
|
||||
name: service-configs-bm-promotional
|
||||
- configMapRef:
|
||||
name: service-configs
|
||||
# - secretRef:
|
||||
# name: service-configs-secret
|
||||
- secretRef:
|
||||
name: service-bm-secret
|
||||
image: harbor.moh.gov.sa/vidamoh/csi-bm-promotion-java-service:4.6.0.10
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-bm-promotion-java-service
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
memory: 2Gi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 256Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,23 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-bm-promotion-java-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: csi-bm-promotion-java-service # 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: "150"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bm-prm
|
||||
name: csi-bm-prm
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-bm-promotion-java-service
|
||||
type: ClusterIP
|
@ -0,0 +1,35 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-bloodbank-ui-mgmt
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
#replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-bloodbank-ui-mgmt
|
||||
tier: frontend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bloodbank-ui-mgmt
|
||||
module: bloodbank
|
||||
tier: frontend
|
||||
track: stable
|
||||
spec:
|
||||
containers:
|
||||
- image: harbor.moh.gov.sa/vidamoh/bloodbank-ui-mgmt:4.1.29.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-bloodbank-ui-mgmt
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
memory: 100Mi
|
||||
requests:
|
||||
cpu: 2m
|
||||
memory: 25Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bloodbank-ui-mgmt-service
|
||||
name: csi-bloodbank-ui-mgmt-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-bloodbank-ui-mgmt
|
||||
type: ClusterIP
|
@ -0,0 +1,122 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-java-bb-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
# replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-java-bb-service
|
||||
tier: backend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-java-bb-service
|
||||
tier: backend
|
||||
track: stable
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: configserver
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: config_server
|
||||
name: service-configs
|
||||
- name: active_profile
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: active_profile
|
||||
name: service-config-pharmacy
|
||||
- name: SPRING_DATASOURCE_URL
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: bloodbank-db-url
|
||||
name: service-config-bloodbank
|
||||
- name: SPRING_DATASOURCE_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: bloodbank-db-username
|
||||
name: service-bloodbank-secret
|
||||
- name: SPRING_DATASOURCE_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: bloodbank-db-password
|
||||
name: service-bloodbank-secret
|
||||
- name: SPRING_DATASOURCE_JPA_DATABASE_PLATFORM
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: bloodbank-db-platform
|
||||
name: service-config-bloodbank
|
||||
- name: KAFKA_BOOTSTRAP-SERVERS
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: bootstrap-servers
|
||||
name: service-config-pharmacy
|
||||
- name: ADT-DISCHARGE-START-NOTIFICATION_T
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: discharge-start-notification
|
||||
name: service-config-pharmacy
|
||||
- name: KAFKA_TOPIC_DISCHARGE-CLEAR-NOTIFICATION
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: discharge-clear-notification
|
||||
name: service-config-pharmacy
|
||||
- name: KAFKA_TOPIC_DISCHARGE-SUMMARY-CLEAR-NOTIFICATION
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: discharge-summary-clear-notification
|
||||
name: service-config-pharmacy
|
||||
- name: AUTH_CLIENT_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: phrbase-client-id
|
||||
name: service-pharmacy-secret
|
||||
- name: AUTH_CLIENT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: phrbase-client-secret
|
||||
name: service-pharmacy-secret
|
||||
- name: hostname
|
||||
value: csi-java-bb-service
|
||||
- name: JAVA_OPTS
|
||||
value: "-Xms256m -Xmx1024m"
|
||||
- name: JVM_OPTS
|
||||
value: "-Xms256m -Xmx1024m"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: service-configs
|
||||
- secretRef:
|
||||
name: service-configs-secret
|
||||
image: harbor.moh.gov.sa/vidamoh/csi-java-bb-service:4.1.20.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/actuator/health
|
||||
port: http
|
||||
initialDelaySeconds: 800
|
||||
timeoutSeconds: 30
|
||||
periodSeconds: 40
|
||||
name: csi-java-bb-service
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/actuator/health
|
||||
port: http
|
||||
initialDelaySeconds: 20
|
||||
timeoutSeconds: 30
|
||||
periodSeconds: 40
|
||||
resources:
|
||||
limits:
|
||||
memory: 2Gi
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 1Gi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,23 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-java-bb-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: csi-java-bb-service # 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: "90"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-java-bb-service
|
||||
name: csi-java-bb-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-java-bb-service
|
||||
type: ClusterIP
|
@ -0,0 +1,56 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-net-bloodbnk
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-net-bloodbnk
|
||||
tier: backend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-net-bloodbnk
|
||||
tier: backend
|
||||
track: stable
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- csi-net-bloodbnk
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
containers:
|
||||
- env:
|
||||
- name: ASPNETCORE_URLS
|
||||
value: http://+:80
|
||||
- name: ASPNETCORE_ENVIRONMENT
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: net_environment
|
||||
name: service-configs
|
||||
- name: config_server
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: config_server
|
||||
name: service-configs
|
||||
image: harbor.moh.gov.sa/vidamoh/bb-donation-srv:4.2.9.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-net-bloodbnk
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
memory: 1500Mi
|
||||
requests:
|
||||
cpu: 150m
|
||||
memory: 512Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,24 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: csi-net-bloodbnk
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1 # Optional. Default: apps/v1
|
||||
kind: Deployment # Optional. Default: Deployment
|
||||
name: csi-net-bloodbnk # 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: "90"
|
||||
|
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
||||
- hpa.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-net-bloodbnk
|
||||
name: csi-net-bloodbnk
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-net-bloodbnk
|
||||
type: ClusterIP
|
@ -0,0 +1,34 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: csi-bloodbank-ui
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
#replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-bloodbank-ui
|
||||
tier: frontend
|
||||
track: stable
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bloodbank-ui
|
||||
tier: frontend
|
||||
track: stable
|
||||
spec:
|
||||
containers:
|
||||
- image: harbor.moh.gov.sa/vidamoh/bloodbank-ui:4.1.49.5
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: csi-bloodbank-ui
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
resources:
|
||||
limits:
|
||||
memory: 100Mi
|
||||
requests:
|
||||
cpu: 2m
|
||||
memory: 25Mi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
- Deployment.yaml
|
@ -0,0 +1,16 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
generateName: test-suite-
|
||||
annotations:
|
||||
argocd.argoproj.io/hook: PostSync
|
||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: bvt-suite
|
||||
image: curlimages/curl
|
||||
command:
|
||||
restartPolicy: Never
|
||||
backoffLimit: 2
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: csi-bloodbank-ui-service
|
||||
name: csi-bloodbank-ui-service
|
||||
namespace: moh-prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: csi-bloodbank-ui
|
||||
type: ClusterIP
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue