Skip to content

Commit

Permalink
attach service account to tensorboard pod
Browse files Browse the repository at this point in the history
  • Loading branch information
IronPan committed Nov 15, 2018
1 parent 74270cb commit 9bd5779
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions frontend/server/k8s-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ export async function newTensorboardPod(logdir: string): Promise<void> {
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,
Expand Down

0 comments on commit 9bd5779

Please sign in to comment.