apiVersion: apps/v1
kind: Deployment
metadata:
  name: test-app
spec:
  selector:
    matchLabels:
      app: test-app
  replicas: 2
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: test-app
    spec:
      containers:
      - name: test-app
        image: antonk2234/test-app:latest
        resources:
          limits:
            memory: "512Mi"
            cpu: "500m"
        ports:
        - containerPort: 80
