apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp
  labels:
    app: drone-app
spec:
  replicas: 1
  selector:
    matchLabels:
      app: drone-app
  template:
    metadata:
      labels:
        app: drone-app
    spec:
      terminationGracePeriodSeconds: 0
      affinity:
          podAntiAffinity:
            requiredDuringSchedulingIgnoredDuringExecution:
              - labelSelector:
                  matchExpressions:
                    - key: "app"
                      operator: In
                      values:
                      - drone-app
                topologyKey: "kubernetes.io/hostname"
      containers:
      - name: drone-app
        image: rvennam/drone-app:latest
        # imagePullPolicy: Always
        ports:
        - containerPort: 3000
        resources:
          requests:
            memory: "64Mi"
            cpu: "50m"
          limits:
            memory: "128Mi"
            cpu: "100m"
