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.

99 lines
3.0 KiB

apiVersion: apps/v1
kind: Deployment
metadata:
name: csi-rms-morgue
namespace: moh-prod
spec:
#replicas: 1
selector:
matchLabels:
app: csi-rms-morgue
tier: backend
track: stable
template:
metadata:
labels:
app: csi-rms-morgue
module: rms
tier: backend
track: stable
spec:
containers:
- env:
- name: configserver
valueFrom:
configMapKeyRef:
key: config_server
name: service-configs
- name: active_profile
valueFrom:
configMapKeyRef:
key: activeProfile
name: service-configs
- name: CACHE_TYPE
valueFrom:
configMapKeyRef:
key: cache_type
name: service-configs
- name: hostname
value: csi-rms-morgue
- name: FEIGN_HYSTRIX_ENABLED
value: 'false'
- name: SPRING_DATASOURCE_TOMCAT_MIN-EVICTABLE-IDLE-TIME-MILLIS
value: '60000'
- name: SPRING_DATASOURCE_TOMCAT_MAX-ACTIVE
value: '225'
- name: SPRING_DATASOURCE_TOMCAT_MAX-IDLE
value: '40'
- name: SPRING_DATASOURCE_TOMCAT_MIN-IDLE
value: '5'
- name: TIMING_DEDICATED-RESOURCE_RELEASE_INTERVAL
value: '60000'
- name: TIMING_DEDICATED-RESOURCE_RELEASE_BED_OFFSET-MINS
value: '1'
- name: SPRING_JPA_PROPERTIES_HIBERNATE_TEMP_USE_JDBC_METADATA_DEFAULTS
value: 'true'
- name: JAVA_OPTS
value: "-Xms256m -Xmx1024m"
- name: JVM_OPTS
value: "-Xms256m -Xmx1024m"
envFrom:
- configMapRef:
name: service-configs
- secretRef:
name: service-configs-secret
- configMapRef:
name: service-configs-adt
- secretRef:
name: service-adt-secret
image: harbor.moh.gov.sa/vidamoh/csi-rms-morgue-java-service:4.1.64.0
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 1200
failureThreshold: 3
periodSeconds: 40
timeoutSeconds: 30
name: csi-rms-morgue
ports:
- containerPort: 80
name: http
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
failureThreshold: 3
periodSeconds: 40
timeoutSeconds: 30
resources:
limits:
memory: 1Gi
requests:
cpu: 150m
memory: 600Mi
imagePullSecrets:
- name: regcred