Skip to content

Instantly share code, notes, and snippets.

@wbuchwalter
Created May 14, 2017 18:49
Show Gist options
  • Select an option

  • Save wbuchwalter/2ab29a7b7998be380bdba1febe380536 to your computer and use it in GitHub Desktop.

Select an option

Save wbuchwalter/2ab29a7b7998be380bdba1febe380536 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
labels:
app: tensorboard
name: tensorboard
spec:
ports:
- port: 80
targetPort: 6006
selector:
app: tensorboard
type: LoadBalancer
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: tensorboard
name: tensorboard
spec:
template:
metadata:
labels:
app: tensorboard
spec:
volumes:
- name: azurefile
azureFile:
secretName: azure-secret
shareName: data
readOnly: true
containers:
- name: tensorboard
command: ["/bin/sh", "-c"]
args: ["tensorboard --logdir /data/logs"]
image: tensorflow/tensorflow
ports:
- containerPort: 6006
volumeMounts:
- mountPath: "/data"
name: azurefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment