#
# (C) Copyright IBM Corp. 2021, 2021
#
# SPDX-License-Identifier: Apache-2.0
#

apiVersion: v1
kind: Pod
metadata:
  name: POD_NAME_PLACEHOLDER
  namespace: CLUSTER_NAMESPACE_PLACEHOLDER
  labels:
    app: POD_NAME_PLACEHOLDER
spec:
  restartPolicy: Never
  imagePullSecrets:
    - name: all-icr-io
  containers:
  - name: spark-fvt-test-app
    image: us.icr.io/vpc-dev-cohort-rns/cohort-spark-fvt:1.0.0
    command: ["sleep"]
    args: ["28800"]
    securityContext:
      privileged: true
      runAsUser: 0
    volumeMounts:
    - name: cos-files
      mountPath: /spark-cos
  volumes:
    - name: cos-files
      persistentVolumeClaim:
        claimName: cohort-data-tenant2
  serviceAccountName: spark
    