diff --git a/frontend/server/k8s-helper.ts b/frontend/server/k8s-helper.ts index c57302b1d3f..928711b1f55 100644 --- a/frontend/server/k8s-helper.ts +++ b/frontend/server/k8s-helper.ts @@ -62,6 +62,20 @@ export async function newTensorboardPod(logdir: string): Promise { ports: [{ containerPort: 6006, }], + env: [{ + name: 'GOOGLE_APPLICATION_CREDENTIALS', + value: '/secret/gcp-credentials/user-gcp-sa.json' + }], + volumeMounts: [{ + mountPath: '/secret/gcp-credentials', + name: 'gcp-credentials', + }], + }], + volumes:[{ + name: 'gcp-credentials', + secret:{ + secretName: 'user-gcp-sa', + }, }], selector: { app: podName,