apiVersion: batch/v1
kind: Job
metadata:  
  labels:
    app: logger
  name: logger
spec:
  parallelism: 6
  template:
    metadata:      
      labels:
        app: logger        
    spec:
      topologySpreadConstraints:
      - maxSkew: 1
        topologyKey: kubernetes.io/hostname
        whenUnsatisfiable: DoNotSchedule
        labelSelector:
          matchLabels:
            app: logger
      restartPolicy: Never  
      containers:
      - image: nickytd/log-generator
        name: log-generator
        args:
          - -wait 
          - "-1"
          - -count 
          - "1000000"
        resources:
          requests:
            cpu: 100m
          limits:
            cpu: 1000m
