apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    kube-burner: perf-tests
  name: nginx
spec:
  replicas: 0
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      affinity:                                          
        nodeAffinity:                                    
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:                           
            - matchExpressions:                          
              - key: node-role.kubernetes.io/worker      
                operator: Exists                         
              - key: node-role.kubernetes.io/infra       
                operator: DoesNotExist                   
      containers:
      - image: quay.io/cloud-bulldozer/nginx:latest
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 4
          httpGet:
            path: /
            port: 8080
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        name: netty
        ports:
        - containerPort: 8080
          name: repo-endpoint
          protocol: TCP
        readinessProbe:
          failureThreshold: 20
          httpGet:
            path: /
            port: 8080
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        resources:
          limits:
            cpu: 100m
            memory: 200M
          requests:
            cpu: 50m
            memory: 100M
      restartPolicy: Always
      terminationGracePeriodSeconds: 1
