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.6 KiB
112 lines
3.6 KiB
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 |