# 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}:32080/?token=${TOKEN}" URL: http://rise-node-110:32080/?token=6efc47365e5566c9c6365eabd380dac8 ``` 3. browse url