This is a simple setup for running Tensorboard with Kubernetes.
- Create PVC
kubectl apply -f tensorboard-pvc.yml
- Create Deployment
kubectl apply -f tensorboard-deployment.yml
- Create Service
kubectl apply -f tensorboard-service.yml
You can access your tensorboard instance by port-forwarding your pod from kubernetes to your local system. After port-forwarding you can simply open localhost:6006 in your browser.
kubectl port-forward tensorboard-REPLACE-HASH 6006:6006
To log new runs to your tensorboard instance you need to mount the tensorboard pvc and log your files to this directory.
...
volumeMounts:
- name: tensorboard-persistent-storage
mountPath: /pv/tensorboard
...
volumes:
- name: tensorboard-persistent-storage
persistentVolumeClaim:
claimName: tensorboard-pvc
...