apiVersion: v1
kind: Pod
metadata:
  name: flask
  labels:
    name: flask
    app: devops-challenge
spec:
  containers:
    - name: flask
      image: jotabustosigz/devops-challenge-flask:3.0
      ports:
        - containerPort: 8080
      env:
        - name: MONGODB_DATABASE
          value: "flaskdb"
        - name: MONGODB_USERNAME
          value: "flaskuser"
        - name: MONGODB_PASSWORD
          value: "your_mongodb_password"
        - name: MONGODB_HOSTNAME
          value: "mongodb"
      imagePullPolicy: Always