This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from panchul/alekp_kubeflow_install
Adding ssh-port-forwarding instructions, and other updates.
- Loading branch information
Showing
7 changed files
with
129 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
38 changes: 38 additions & 0 deletions
38
Research/kubeflow-on-azure-stack/pytorch-on-kubeflow/tb_pytorch.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: tensorboard | ||
name: tensorboard | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: tensorboard | ||
template: | ||
metadata: | ||
labels: | ||
app: tensorboard | ||
spec: | ||
volumes: | ||
- name: samba-share-volume2 | ||
persistentVolumeClaim: | ||
claimName: samba-share-claim | ||
containers: | ||
- name: tensorboard | ||
image: tensorflow/tensorflow:1.10.0 | ||
imagePullPolicy: Always | ||
command: | ||
- /usr/local/bin/tensorboard | ||
args: | ||
- --logdir | ||
- /tmp/tensorflow/logs | ||
volumeMounts: | ||
- mountPath: /tmp/tensorflow | ||
subPath: pytorch-tb | ||
name: samba-share-volume2 | ||
ports: | ||
- containerPort: 6006 | ||
protocol: TCP | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always |
This file contains 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
2 changes: 1 addition & 1 deletion
2
...tensorflow-on-kubeflow/mnist-w-tb/tb.yaml → ...sorflow-on-kubeflow/mnist-w-tb/tb_tf.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: extensions/v1 | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
|
36 changes: 36 additions & 0 deletions
36
Research/kubeflow-on-azure-stack/working_with_tensorboard.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Working with Tensorboard | ||
|
||
Tensorboard is an application that helps visualizing data. It was built to visualize | ||
TensorFlow, but could be used more broadly. For example, in our tutorial we demo | ||
how to use it for TensorFlow and Pytorch. | ||
|
||
We could use a generic Tensorboard deplolyment, see `tb_generic.yaml`: | ||
|
||
$ kubectl create -f tb_generic.yaml | ||
|
||
Then as long as your application logs to the same folder that Tensorboard loads from, you will | ||
see the UI. | ||
|
||
You might contact your cloud administrator to help you establish network access, or you can | ||
use ssh port forwarding to see it via your desktop's `localhost` address and port 6006. | ||
This is how it looks like(run it on the machine where your web browser is): | ||
|
||
$ ssh -NfL 6006:localhost:6006 -i id_rsa_for_kubernetes azureuser@<public_ip_address_or_dns_name> | ||
|
||
An alternative would be to create an RDP and XWindows server at the master node and RDP to it. | ||
If you did the ssh port fowarding, you do not need it. | ||
|
||
Now you can access the port you forward from your Kubernetes environment: | ||
|
||
$ export PODNAME=$(kubectl get pod -l app=tensorboard -o jsonpath='{.items[0].metadata.name}') | ||
$ kubectl port-forward ${PODNAME} 6006:6006 | ||
|
||
It will look something like this: | ||
|
||
![pics/tensorboard_graph.png](pics/tensorboard_graph.png) | ||
|
||
|
||
# Links | ||
|
||
- https://www.tensorflow.org/tensorboard/ | ||
|