apiVersion: apps/v1 kind: Deployment metadata: name: flask-app namespace: production spec: replicas: 2 selector: matchLabels: app: flask-app template: metadata: labels: app: flask-app spec: containers: - name: flask-app image: registry.gitlab.no/ikt206-g-26v-devops/Group23/flask/:latest imagePullPolicy: Always ports: - containerPort: 5000 env: - name: FLASK_ENV value: production - name: DATABASE_URL value: postgresql://postgres:password@postgres-service:5432/appdb