apiVersion: apps/v1
kind: Deployment
metadata:
  name: flask-app
  labels:
    app: flask-app
spec:
  replicas: 2
  selector:
    matchLabels:
      app: flask-app
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: flask-app
    spec:
      containers:
        - image: public.ecr.aws/v0u2j1d8/flask:latest
          name: flask-app
          imagePullPolicy: Always
          ports:
            - containerPort: 5000
              
      imagePullSecrets:
        - name: regcred

