Commit f5d2b3f4 authored by Christian Salzmann-Jaeckel's avatar Christian Salzmann-Jaeckel
Browse files

update README

parent 4c46cfa2
Pipeline #23291 passed with stages
in 12 seconds
# scipopt-demo
scipoptsuite Kubernetes Deployment
## generate Token
generate base64-encoded secret …
```
export TOKEN="6efc47365e5566c9c6365eabd380dac8"
ENCODED_TOKEN=$(echo -n $RAW_TOKEN | base64)
echo $ENCODED_TOKEN
```
… and insert this into the *secret* spec (replace the value of data.token with $ENCODED_TOKEN)
```
apiVersion: v1
kind: Secret
metadata:
labels:
k8s-app: scipopt-demo
name: scipopt-jupyter-token
namespace: scipopt-demo
type: Opaque
data:
token: "NmVmYzQ3MzY1ZTU1NjZjOWM2MzY1ZWFiZDM4MGRhYzg="
```
## start deployment
```
kubectl apply -f deployment.yaml
```
## access notebook
1. get k8s node name
```
kubectl get nodes
```
2. construct url
collect
* the TOKEN generated above
* the NODE_NAME found in step 1
```
echo "URL: http://${NODE_NAME}:32001/?token=${TOKEN}"
URL: http://rise-node-110:32001/?token=6efc47365e5566c9c6365eabd380dac8
```
3. browse url
......@@ -34,7 +34,7 @@ metadata:
namespace: scipopt-demo
type: Opaque
data:
token: "6efc47365e5566c9c6365eabd380dac8"
token: "NmVmYzQ3MzY1ZTU1NjZjOWM2MzY1ZWFiZDM4MGRhYzg="
---
......@@ -57,9 +57,6 @@ spec:
k8s-app: scipopt-demo
spec:
containers:
- name: scipopt-demo-nginx
image: registry.git.zib.de/salzmann-jaeckel/scipopt-demo/nginx
imagePullPolicy: Always
- name: scipopt-demo-jupyter
image: registry.git.zib.de/salzmann-jaeckel/scipopt-demo/jupyter
imagePullPolicy: Always
......@@ -79,4 +76,3 @@ spec:
volumes:
- name: tmp-volume
emptyDir: {}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment