apiVersion: v1
kind: Pod
metadata:
  annotations:
    akey1: aval1
    akey2: aval2
  labels:
    cluster: azkaban
    execution-id: execid-1
    app: azkaban-exec-server
    service: flow-azkaban-1
    lkey1: lvalue1
    lkey2: lvalue2
  name: fc-dep-azkaban-1
  namespace: dev-namespace
spec:
  containers:
  - env:
    - name: AZ_CLUSTER
      value: azkaban
    - name: AZ_CONF_VERSION
      value: 9.1.1
    - name: FLOW_EXECUTION_ID
      value: '1'
    - name: VERSION_SET_ID
      value: '1'
    image: path1:7.0.4
    imagePullPolicy: IfNotPresent
    name: az-flow-container
    resources:
      limits:
        cpu: '2'
        memory: 4Gi
        ephemeral-storage: 12Gi
      requests:
        cpu: '2'
        memory: 4Gi
        ephemeral-storage: 12Gi
    volumeMounts:
    - mountPath: /export/apps/azkaban/azkaban-exec-server/current/plugins/jobtypes/spark
      name: jobtype-volume-spark
    - mountPath: /export/apps/azkaban/azkaban-exec-server/current/plugins/dependencies/dependency1
      name: dependency-volume-dependency1
    - mountPath: /var/azkaban/private
      name: azkaban-k8s-secret
  initContainers:
  - env:
    - name: AZ_CLUSTER
      value: azkaban
    - name: JOBTYPE_MOUNT_PATH
      value: /data/jobtypes/spark
    image: path3:8.0
    imagePullPolicy: IfNotPresent
    name: jobtype-init-spark
    volumeMounts:
    - mountPath: /data/jobtypes/spark
      name: jobtype-volume-spark
  - env:
    - name: AZ_CLUSTER
      value: azkaban
    - name: DEPENDENCY_MOUNT_PATH
      value: /data/dependencies/dependency1
    image: path5:6.4
    imagePullPolicy: IfNotPresent
    name: dependency-init-dependency1
    volumeMounts:
    - mountPath: /data/dependencies/dependency1
      name: dependency-volume-dependency1
  restartPolicy: NEVER
  volumes:
  - emptyDir: {}
    name: jobtype-volume-spark
  - emptyDir: {}
    name: dependency-volume-dependency1
  - name: azkaban-k8s-secret
    secret:
      defaultMode: 256
      secretName: azkaban-k8s-secret
