Skip to content

Commit

Permalink
add website to ToC
Browse files Browse the repository at this point in the history
  • Loading branch information
stmorse committed Dec 12, 2024
1 parent 7d17812 commit 85b2c89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
url: /hpc-gitbook/k8s/python_conda.html
- title: Creating custom images
url: /hpc-gitbook/k8s/creating-an-image.html
- title: Accessing a Pod from a Browser
url: /hpc-gitbook/k8s/setting-up-website.html
- title: Setting up Torch
url: /hpc-gitbook/k8s/envWithPod.html
- title: One Pod Torch with Data
Expand Down
7 changes: 4 additions & 3 deletions k8s/setting-up-website.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Hosting a website on the cluster

This is an explanation of how to set up port forwarding so that you can view a website hosted on a pod in a local web browser.
The basic idea is that we will create a SOCKS5 proxy to tunnel into the cluster, then access the website via the pod's internal IP.
This is an explanation of how to set up port forwarding so that you can view a website hosted on a pod in a local web browser. The basic idea is that we will create a SOCKS5 proxy to tunnel into the cluster, then access the website via the pod's internal IP. This can be useful to, for example: test services running with a pod/deployment, or to access a Jupyter kernel running in a container from a browser on your local machine.

## Correctly exposing th application

## Correctly exposing the application

Ensure your Docker container is correctly serving your application.
This will likely involve exposing a port in your Dockerfile
Expand Down Expand Up @@ -87,4 +87,5 @@ kubectl get pod <POD-NAME> -o jsonpath="{.status.podIP}"
```

with the name of your pod.

Access this address in Chrome at the exposed port, `http://<POD-IP>:<EXTERNAL-PORT>`. You should see your site.

0 comments on commit 85b2c89

Please sign in to comment.