apiVersion: apps/v1
kind: Deployment
metadata:
  name: ml-api-adapter-service
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: ml-api-adapter-service
  template:
    metadata:
      labels:
        app.kubernetes.io/name: ml-api-adapter-service
    spec:
      containers:
      - name: ml-api-adapter-service
        image: mojaloop/ml-api-adapter:v11.2.0
        command:
        - node
        - src/api/index.js
        ports:
        - containerPort: 3000
        envFrom:
        - configMapRef:
            name: ml-api-adapter-service
        readinessProbe:
          timeoutSeconds: 5 # the default is prone to failure on lower-resource clusters
          httpGet:
            path: /health
            port: 3000
        livenessProbe:
          timeoutSeconds: 5 # the default is prone to failure on lower-resource clusters
          httpGet:
            path: /health
            port: 3000
