apiVersion: apps/v1
kind: Deployment
metadata: 
  name: db-noticias-deployment
spec:
  template:
    metadata: 
      name: db-noticias
      labels: 
        app: db-noticias
    spec:
      containers: 
        - name: db-noticias-container
          image: aluracursos/mysql-db:1
          ports:
            - containerPort: 80
          envFrom: 
            - configMapRef:
                name: db-configmap
  replicas: 1
  selector: 
    matchLabels: 
      app: db-noticias
            