Created
July 6, 2017 22:19
-
-
Save jlewi/dbc77a7e8daf7439856e968c4ba20086 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: tensorboard | |
spec: | |
ports: | |
# Accept traffic sent to port 80 | |
- name: http | |
port: 80 | |
targetPort: 80 | |
selector: | |
# Loadbalance traffic across Pods matching | |
# this label selector | |
app: tensorboard | |
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: tensorboard | |
spec: | |
replicas: 1 | |
selector: | |
app: tensorboard | |
template: | |
metadata: | |
name: tensorboard | |
labels: | |
app: tensorboard | |
spec: | |
# TODO(jlewi): We should use helm to parameterize this. | |
containers: | |
- name: tensorboard | |
image: gcr.io/tensorflow/tensorflow:latest | |
command: | |
- /usr/local/bin/tensorboard | |
- --logdir=gs://bucket/training-output-dirdir | |
- --port=80 | |
ports: | |
- containerPort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment