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.

72 lines
1.9 KiB

apiVersion: apps/v1
kind: Deployment
metadata:
name: csi-net-lab-scheduled
namespace: moh-prod
spec:
# replicas: 1
selector:
matchLabels:
app: csi-net-lab-scheduled
tier: backend
track: stable
template:
metadata:
labels:
app: csi-net-lab-scheduled
tier: backend
track: stable
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- csi-net-lab-scheduled #csi-net-labsrvcs
topologyKey: "kubernetes.io/hostname"
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/lab-scheduled:4.0.19.0
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 10
httpGet:
path: /health/live
port: 80
initialDelaySeconds: 60
periodSeconds: 30
name: csi-net-lab-scheduled
ports:
- containerPort: 80
name: http
readinessProbe:
failureThreshold: 10
httpGet:
path: /health/ready
port: 80
initialDelaySeconds: 30
periodSeconds: 20
resources:
limits:
memory: 2Gi
requests:
cpu: 500m
memory: 750Mi
imagePullSecrets:
- name: regcred