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

update README

parent 4c46cfa2
Pipeline #23292 passed with stages
in 12 seconds
# scipopt-demo # scipopt-demo
scipoptsuite Kubernetes Deployment
## generate Token
generate base64-encoded secret …
```
export TOKEN="6efc47365e5566c9c6365eabd380dac8"
ENCODED_TOKEN=$(echo -n $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: ...@@ -34,7 +34,7 @@ metadata:
namespace: scipopt-demo namespace: scipopt-demo
type: Opaque type: Opaque
data: data:
token: "6efc47365e5566c9c6365eabd380dac8" token: "NmVmYzQ3MzY1ZTU1NjZjOWM2MzY1ZWFiZDM4MGRhYzg="
--- ---
...@@ -57,9 +57,6 @@ spec: ...@@ -57,9 +57,6 @@ spec:
k8s-app: scipopt-demo k8s-app: scipopt-demo
spec: spec:
containers: containers:
- name: scipopt-demo-nginx
image: registry.git.zib.de/salzmann-jaeckel/scipopt-demo/nginx
imagePullPolicy: Always
- name: scipopt-demo-jupyter - name: scipopt-demo-jupyter
image: registry.git.zib.de/salzmann-jaeckel/scipopt-demo/jupyter image: registry.git.zib.de/salzmann-jaeckel/scipopt-demo/jupyter
imagePullPolicy: Always imagePullPolicy: Always
...@@ -79,4 +76,3 @@ spec: ...@@ -79,4 +76,3 @@ spec:
volumes: volumes:
- name: tmp-volume - name: tmp-volume
emptyDir: {} 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