apiVersion: apps/v1
kind: Deployment
metadata:
  name: api-deploy
spec:
  replicas: 2
  selector:
    matchLabels:
      app: spinny-label
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 1
      maxSurge: 1
  template:
    metadata:
      labels:
        app: spinny-label
    spec:
      containers:
        - name: api-pod
          image: alexiscrack3/spinny-api:latest
          ports:
            - containerPort: 3000
