apiVersion: v1
kind: ServiceAccount
metadata:
  name: tensorboard-sa
  namespace: bionemo-training
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: job-reader
  namespace: bionemo-training
rules:
- apiGroups: ["batch"]
  resources: ["jobs"]
  verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: tensorboard-job-reader
  namespace: bionemo-training
subjects:
- kind: ServiceAccount
  name: tensorboard-sa
  namespace: bionemo-training
roleRef:
  kind: Role
  name: job-reader
  apiGroup: rbac.authorization.k8s.io