You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
129 lines
4.0 KiB
129 lines
4.0 KiB
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
|