apiVersion: apps/v1 kind: Deployment metadata: name: csi-net-bloodbnk namespace: moh-prod spec: selector: matchLabels: app: csi-net-bloodbnk tier: backend track: stable template: metadata: labels: app: csi-net-bloodbnk tier: backend track: stable spec: affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app operator: In values: - csi-net-bloodbnk 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/bb-donation-srv:4.2.9.1 imagePullPolicy: IfNotPresent name: csi-net-bloodbnk ports: - containerPort: 80 name: http resources: limits: memory: 1500Mi requests: cpu: 150m memory: 512Mi imagePullSecrets: - name: regcred