kind: Deployment
apiVersion: apps/v1
metadata:
  name: betterdev
  namespace: opty
  labels:
    app: betterdev
spec:
  replicas: 1
  selector:
    matchLabels:
      app: betterdev
  template:
    metadata:
      labels:
        app: betterdev
        name: betterdev
    spec:
      terminationGracePeriodSeconds: 60
      containers:
      - image: yeospace/betterdev
        imagePullPolicy: Always
        name: betterdev
        ports:
        - containerPort: 1605
        env:
          - name: MONGO_URI
            value: "mongodb://mg0.getopty.com:27017"
          - name: AWS_REGION
            value: us-west-2
          - name: AWS_ACCESS_KEY_ID
            valueFrom:
              secretKeyRef:
                name: betterdev
                key: AWS_ACCESS_KEY_ID
          - name: AWS_SECRET_ACCESS_KEY
            valueFrom:
              secretKeyRef:
                name: betterdev
                key: AWS_SECRET_ACCESS_KEY
          - name: AWS_REGION
            value: us-west-2
