apiVersion: apps/v1
kind: Deployment
metadata:
  name: nestjs
spec:
  selector:
    matchLabels:
      app: nestjs
  template:
    metadata:
      labels:
        app: nestjs
    spec:
      containers:
        - name: nestjs
          image: imgabreuw/imersao-fullcycle-6-nestjs:latest
          envFrom:
            - secretRef:
                name: nestjs-secret
          ports:
            - containerPort: 3000
