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.
64 lines
1.8 KiB
64 lines
1.8 KiB
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: csi-net-bloodbnk-mgt
|
|
namespace: moh-prod
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: csi-net-bloodbnk-mgt
|
|
tier: backend
|
|
track: stable
|
|
version: v1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: csi-net-bloodbnk-mgt
|
|
module: lab
|
|
tier: backend
|
|
track: stable
|
|
version: v1
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: ASPNETCORE_URLS
|
|
value: http://+:80
|
|
- name: ASPNETCORE_ENVIRONMENT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: net_environment
|
|
name: service-configs
|
|
- name: config_server
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: config_server
|
|
name: service-configs
|
|
image: 'harbor.moh.gov.sa/vidamoh/csi-net-bb-mgt-srv:4.0.0.0-a9'
|
|
imagePullPolicy: IfNotPresent
|
|
name: csi-net-bloodbnk-mgt
|
|
readinessProbe:
|
|
httpGet: # make an HTTP request
|
|
path: /health/ready # endpoint to hit
|
|
port: 80 # port to use
|
|
initialDelaySeconds: 30 # how long to wait before checking
|
|
failureThreshold: 10 # how many failures to accept before failing
|
|
periodSeconds: 20 # how long to wait between checks
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health/live
|
|
port: 80
|
|
initialDelaySeconds: 60
|
|
failureThreshold: 10
|
|
periodSeconds: 30
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
resources:
|
|
limits:
|
|
memory: 3Gi
|
|
requests:
|
|
cpu: 150m
|
|
memory: 512Mi
|
|
imagePullSecrets:
|
|
- name: regcred
|