apiVersion: apps/v1
kind: Deployment
metadata:
  name:  nodeapp
  namespace: default
  labels:
    app:  nodeapp
spec:
  selector:
    matchLabels:
      app: nodeapp
  #replicas: 1
  replicas: 2
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      labels:
        app:  nodeapp
    spec:
      containers:
      - name:  nodeapp
        image:  ricardocosta94/kga:latest
        resources:
          requests:
            cpu: 100m
            memory: 100Mi
          limits:
            cpu: 100m
            memory: 100Mi
        ports:
        - containerPort:  3000
          name:  nodeapp