apiVersion: v1
kind: Pod
metadata:
  name: z-tb-pod-tmp5-deeplearningconda38
  # labels:
  #   k8s-app: tensorboard
  #   user: rui
spec:
  # replicas: 1
  # selector:
  #   matchLabels:
  #     k8s-app: tensorboard
  # template:
  #   metadata:
  #     labels:
  #       k8s-app: tensorboard
  #   spec:
  containers:
  - name: tensorboard
    command: ["/bin/sh", "-c"]
    args: ["tensorboard --logdir / --port 6008"]  # specify the directory to watch
    # args:
    # - ". /root/anaconda3/etc/profile.d/conda.sh"
    # image: docker.io/jerrypiglet/rui_conda_pod6
    # image: docker.io/ak3636/deeplearning:latest
    image: docker.io/jerrypiglet/deeplearningconda38
    # ports:
    # - containerPort: 6006
    resources:
      requests:
        cpu: "32"
        memory: "5Gi"
        # nvidia.com/gpu: 2
      limits:
        cpu: "64"
        memory: "50Gi"
        # nvidia.com/gpu: 2
    volumeMounts:
    - name: viscompfs
      mountPath: /viscompfs
    - name: eccv20dataset
      mountPath: /eccv20dataset
    - name: siggraphasia20dataset
      mountPath: /siggraphasia20dataset
    - name: ruidata
      mountPath: /ruidata

  volumes:
  - name: viscompfs
    flexVolume:
      driver: ceph.rook.io/rook
      fsType: ceph
      options:
        fsName: nautilusfs
        clusterNamespace: rook
        path: /viscompfs
        mountUser: viscompfs
        mountSecret: ceph-fs-secret
  - name: eccv20dataset
    persistentVolumeClaim:
        claimName: eccv20dataset 
  - name: siggraphasia20dataset
    persistentVolumeClaim:
        claimName: siggraphasia20dataset
  - name: ruidata
    persistentVolumeClaim:
        claimName: ruidata


      
