apiVersion: apps/v1
kind: Deployment
metadata:
  name: saas-honeycomb-ordermgr
  namespace: ordermgr
spec:
  selector:
    matchLabels:
      app: saas-honeycomb-ordermgr
  replicas: 1
  template:
    metadata:
      labels:
        app: saas-honeycomb-ordermgr
    spec:
      containers:
      - name: saas-honeycomb-ordermgr
        image: hzhyvinskyi/saas-honeycomb-ordermgr:latest
        env:
        - name: PORT
          value: "8091"
        - name: MONGODB_URI
          valueFrom:
            configMapKeyRef:
              name: ordermgr-config
              key: mongodb-uri
        ports:
        - containerPort: 8091
          name: http-port
        readinessProbe:
          tcpSocket:
            port: 8091
          initialDelaySeconds: 5
          periodSeconds: 2
