apiVersion: apps/v1
kind: Deployment
metadata:
  name: flask-mongo-deployment
  labels:
    app: flask-mongo-app
spec:
  replicas: 1
  selector:
    matchLabels:
      app: flask-mongo-app
  template:
    metadata:
      labels:
        app: flask-mongo-app
    spec:
      containers:
      - name: flask-mongo-app
        image: flask-mongo-api:1.14.2
        ports:
        - containerPort: 5001