apiVersion: v1
kind: Pod
metadata:
  name: spark-thrift-server
  labels:
    app: spark-thrift-server
spec:
  serviceAccountName: spark
  containers:
  - name: spark-thrift-server-container
    imagePullPolicy: IfNotPresent
    image: $CONTAINER_IMAGE
    args: ["/opt/home/spark-thrift-server.sh"]
    volumeMounts:
      - name: spark-conf-volume 
        mountPath: /opt/home/conf
    envFrom:
    - configMapRef:
        name: spark-thrift-server-configmap
  volumes:
    - name: spark-conf-volume 
      configMap:
        # Provide the name of the ConfigMap containing the files you want
        # to add to the container
        name: spark-thrift-server-conf