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.
112 lines
3.3 KiB
112 lines
3.3 KiB
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: csi-ehr-specializedclinic
|
|
namespace: moh-prod
|
|
spec:
|
|
# replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: csi-ehr-specializedclinic
|
|
tier: backend
|
|
track: stable
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: csi-ehr-specializedclinic
|
|
tier: backend
|
|
track: stable
|
|
spec:
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchExpressions:
|
|
- key: app
|
|
operator: In
|
|
values:
|
|
- csi-ehr-specializedclinic
|
|
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_DATASOURCE_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: db-spe-url
|
|
name: ehr-database-configs
|
|
- name: SPRING_DATASOURCE_USERNAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: db-spe-username
|
|
name: ehr-database-secret
|
|
- 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: SPRING_DATASOURCE_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: db-spe-password
|
|
name: ehr-database-secret
|
|
- name: hostname
|
|
value: csi-java-ehr-specializedclinic
|
|
- name: JVM_OPTS
|
|
value: "-Xms256m -Xmx1024m"
|
|
- name: JAVA_OPTS
|
|
value: "-Xms256m -Xmx1024m"
|
|
envFrom:
|
|
- configMapRef:
|
|
name: service-configs
|
|
image: harbor.moh.gov.sa/vidamoh/csi-ehr-specialized-clinic-java-sev:4.0.105.0 #4.0.95.0 #4.0.89.2 #V1.0.59
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: http
|
|
initialDelaySeconds: 800
|
|
failureThreshold: 3
|
|
timeoutSeconds: 30
|
|
periodSeconds: 40
|
|
name: csi-ehr-specializedclinic
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
protocol: TCP
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: http
|
|
initialDelaySeconds: 20
|
|
failureThreshold: 3
|
|
timeoutSeconds: 30
|
|
periodSeconds: 40
|
|
resources:
|
|
limits:
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 750Mi
|
|
imagePullSecrets:
|
|
- name: regcred
|