apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: dev
  name: store-hl7
spec:
  replicas: 1
  selector:
    matchLabels:
      app: store-hl7
  template:
    metadata:
      labels:
        app: store-hl7
    spec:
      serviceAccountName: hl7storeirsa
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: role
                operator: In
                values:
                - sandbox
      containers:
        - name: store-hl7
          image: 279855623390.dkr.ecr.us-east-2.amazonaws.com/hl7_store:latest
          resources:
            requests:
              memory: "1Gi"
            limits:
              memory: "1Gi"
          ports:
            - containerPort: 5000
