apiVersion: batch/v1
kind: Job
metadata:
  name: dframe-master
spec:
  template:
    metadata:
      labels:
        app: dframe-master
    spec:
      serviceAccountName: dframe-master
      containers:
        - name: dframe-master
          args:
            [
              "request",
              "-processCount",
              "1",
              "-workerPerProcess",
              "10",
              "-executePerWorker",
              "10",
              "-workerName",
              "SampleWorker",
            ]
          env:
            - name: DFRAME_MASTER_CONNECT_TO_HOST
              value: "dframe-master.dframe-fargate.svc.cluster.local"
            - name: DFRAME_WORKER_IMAGE_NAME
              value: 431046970529.dkr.ecr.ap-northeast-1.amazonaws.com/dframe-k8s
            - name: DFRAME_WORKER_IMAGE_TAG
              value: "0.1.0"
            - name: DFRAME_WORKER_POD_CREATE_TIMEOUT
              value: "300"
        # - name: tcpdump
        #   image: corfr/tcpdump
        #   args: ["-i", "eth0", "-A", "-w", "/var/productpage.pcap"]
