apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: jira-clone
    tier: backend
    service: backend
  name: backend
  namespace: mi-espacio
spec:
  replicas: 1
  selector:
    matchLabels:
      app: jira-clone
      tier: backend
      service: backend
  strategy: {}
  template:
    metadata:
      labels:
        app: jira-clone
        tier: backend
        service: backend
    spec:
      containers:
        - env:
            - name: DB_DATABASE
              valueFrom:
                secretKeyRef:
                  key: DB_DATABASE
                  name: backend-env
            - name: DB_HOST
              valueFrom:
                secretKeyRef:
                  key: DB_HOST
                  name: backend-env
            - name: DB_PASSWORD
              valueFrom:
                secretKeyRef:
                  key: DB_PASSWORD
                  name: backend-env
            - name: DB_PORT
              valueFrom:
                secretKeyRef:
                  key: DB_PORT
                  name: backend-env
            - name: DB_USERNAME
              valueFrom:
                secretKeyRef:
                  key: DB_USERNAME
                  name: backend-env
            - name: JWT_SECRET
              valueFrom:
                secretKeyRef:
                  key: JWT_SECRET
                  name: backend-env
            - name: NODE_ENV
              valueFrom:
                secretKeyRef:
                  key: NODE_ENV
                  name: backend-env
          image: us.gcr.io/main-cyclist-310615/api
          name: backend-jira-clone
          ports:
            - containerPort: 3000
          resources: {}
      restartPolicy: Always
status: {}
