apiVersion: v1
kind: ReplicationController
metadata:
  name: stf-api
  labels:
    app: stf-api
spec:
  replicas: 1
  selector:
    app: stf-api
  template:
    metadata:
      labels:
        app: stf-api
    spec:
      containers:
      - name: stf-api
        image: dimasaryoprakoso/stf:latest
        command: ["stf"]
        args: 
        - api
        - --secret
        - "YOUR SECRET HERE"
        - --port
        - "3000"
        - --connect-sub
        - "tcp://stf-triproxy-app:7150"
        - --connect-push
        - "tcp://stf-triproxy-app:7170"
        env:
        - name: RETHINKDB_PORT_28015_TCP
          value: "tcp://rethinkdb-proxy:28015"
        ports:
        - containerPort: 3000
        resources:
          limits:
            cpu: 100m
            memory: 256Mi
          
