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.
102 lines
3.1 KiB
102 lines
3.1 KiB
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: csi-bm-billing-java-service
|
|
namespace: moh-prod
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: csi-bm-billing-java-service
|
|
tier: backend
|
|
track: stable
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: csi-bm-billing-java-service
|
|
tier: backend
|
|
track: stable
|
|
spec:
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchExpressions:
|
|
- key: app
|
|
operator: In
|
|
values:
|
|
- csi-bm-billing-java-service
|
|
topologyKey: "kubernetes.io/hostname"
|
|
containers:
|
|
- env:
|
|
- name: namespace
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- 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-billing
|
|
- name: FEIGN_HYSTRIX_ENABLED
|
|
value: 'false'
|
|
- name: CSI_JPA_EVENT_ISREPORT
|
|
value: 'false'
|
|
- name: JVM_OPTS
|
|
value: "-Xms256m -Xmx2048m"
|
|
- name: JAVA_OPTS
|
|
value: "-XX:MaxMetaspaceSize=256m -Xms256m -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/app/heapdumps/bm-java-heap-dump.hprof"
|
|
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-billing-java-service:4.5.77.1
|
|
imagePullPolicy: IfNotPresent
|
|
name: csi-bm-billing-java-service
|
|
livenessProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /billing/actuator/health/liveness
|
|
port: http
|
|
initialDelaySeconds: 800
|
|
timeoutSeconds: 30
|
|
periodSeconds: 40
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
readinessProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /billing/actuator/health
|
|
port: http
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 40
|
|
successThreshold: 1
|
|
timeoutSeconds: 30
|
|
resources:
|
|
limits:
|
|
memory: 3Gi
|
|
requests:
|
|
cpu: 500m
|
|
memory: 1Gi
|
|
volumeMounts:
|
|
- name: heapdumps-volume
|
|
mountPath: /app/heapdumps
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
volumes:
|
|
- name: heapdumps-volume
|
|
hostPath:
|
|
path: /heapdumps
|
|
type: DirectoryOrCreate |