apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: anchor-app
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: anchor-app
    spec:
      containers:
      - name: anchor
        resources:
          limits:
            cpu: 0.3
            memory: 500Mi
        image: gcr.io/stellar-wilson/app:0.111
        command:
          - "sh"
          - "-c"
          - "npm run stellar-to-btc"
        env:
          - name: GET_HOSTS_FROM
            value: dns
          - name: DB_HOST
            value: redis-server-srv
          - name: API_BITCORE_HOST
            value: bitcore-srv
          - name: ANCHOR_ENV
            value: "TEST"
          - name: API_PORT
            value: "3000"
        ports:
        - port: 3000
          name: anchor
