Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Christian Salzmann-Jaeckel
scipopt-demo
Commits
dcb70901
Commit
dcb70901
authored
Jul 03, 2020
by
Christian Salzmann-Jaeckel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update README
parent
4c46cfa2
Pipeline
#23290
passed with stages
in 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
5 deletions
+46
-5
README.md
README.md
+45
-0
deployment.yaml
deployment.yaml
+1
-5
No files found.
README.md
View file @
dcb70901
# scipopt-demo
scipoptsuite Kubernetes Deployment
## generate Token
generate base64-encoded secret …
```
export TOKEN="6efc47365e5566c9c6365eabd380dac8"
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
deployment.yaml
View file @
dcb70901
...
...
@@ -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
:
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment