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.
106 lines
3.3 KiB
106 lines
3.3 KiB
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: csi-rms-reservation
|
|
namespace: moh-prod
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: csi-rms-reservation
|
|
tier: backend
|
|
track: stable
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: csi-rms-reservation
|
|
tier: backend
|
|
track: stable
|
|
spec:
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchExpressions:
|
|
- key: app
|
|
operator: In
|
|
values:
|
|
- csi-rms-reservation
|
|
topologyKey: "kubernetes.io/hostname"
|
|
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-pms-rms-reservation
|
|
- 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: "-Xms512m -Xmx2048m"
|
|
- name: JVM_OPTS
|
|
value: "-Xms512m -Xmx2048m"
|
|
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-reservation-java-sev:4.1.45.3
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: http
|
|
initialDelaySeconds: 800
|
|
failureThreshold: 3
|
|
timeoutSeconds: 30
|
|
periodSeconds: 40
|
|
name: csi-rms-reservation
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: http
|
|
initialDelaySeconds: 20
|
|
failureThreshold: 3
|
|
timeoutSeconds: 10
|
|
resources:
|
|
limits:
|
|
cpu: 1500m
|
|
memory: 3Gi
|
|
requests:
|
|
cpu: 200m
|
|
memory: 1Gi
|
|
imagePullSecrets:
|
|
- name: regcred |