Commit fd01be11 authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

create pass if not given, removing containerPerSession, adding imageReStr

parent acdb6226
......@@ -2,7 +2,6 @@ k8component: {
image: {
imageType: beaker
imageSubtype: default1
keysToProtect: ["imageType","containerPerSession"]
image: "labdev-nomad.esc.rzg.mpg.de:5000/nomadlab/notebook:v1.11.5-7-g851b73b-dirty",
port: 8801,
prefix: "/beaker",
......
......@@ -2,7 +2,6 @@ k8component: {
image: {
imageType: creedo
imageSubtype: default1
keysToProtect: ["containerPerSession"]
image: "labdev-nomad.esc.rzg.mpg.de:5000/nomadlab/creedo:v0.4.2-2017-09-29",
port: 8080,
prefix: "/Creedo",
......
......@@ -2,7 +2,6 @@ k8component: {
image: {
name: jupyter
subtype: default1
keysToProtect: ["containerPerSession"]
image: "labdev-nomad.esc.rzg.mpg.de:5000/nomadlab/notebook-jupyter-libatoms-tutorial:v0.4",
port: 8888,
prefix: "/jupyter",
......
......@@ -2,7 +2,6 @@ k8component: {
image: {
name: remotevis
subtype: default1
keysToProtect: ["containerPerSession"]
image: "labdev-nomad.esc.rzg.mpg.de:5000/nomadlab/notebook-jupyter-libatoms-tutorial",
port: 8809,
prefix: "/jupyter",
......
......@@ -49,12 +49,12 @@ k8component: {
templatePath: "defaultTemplate.yaml"
keysToProtect: ["keysToProtect", "keysToSkip"]
keysToSkip: ["templateCacheTtlMaxMs", "templateCacheNMax", "keysToSkip", "keysToProtect", "images", "entryPoint", "commands"]
containerPerSession: false
image: {
imageType: beaker
imageSubtype: default
keysToProtect: ["imageType", "containerPerSession"]
image: "labdev-nomad.esc.rzg.mpg.de:5000/nomadlab/notebook:v1.8.0-214-gdd60aa28-dirty"
keysToProtect: ["imageType", "imageReStr"]
imageReStr: "^(labdev-nomad\\.esc\\.rzg\\.mpg.de|analytics-toolkit\\.nomad-coe\\.eu)(:[0-9]+)?/([-a-z0-9]*)/([-a-z0-9]*(:[a-z.-])$".
image: ""
port: 8801
prefix: "/beaker"
homePath: "/home/beaker"
......
target_hostname=${target_hostname:-$HOSTNAME}
cat <<EOF
# once (create secrets)
if [ ! -e redis-session-db-pwd.txt ]; then
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 > redis-session-db-pwd.txt
fi
kubectl create secret generic redis-session-db-pwd --from-file=./redis-session-db-pwd.txt
helm install --name redis-session-db -f redis-session-db-values.yaml stable/redis
if [ ! -e redis-user-db-pwd.txt ]; then
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 > redis-user-db-pwd.txt
fi
kubectl create secret generic redis-user-db-pwd --from-file=./redis-user-db-pwd.txt
helm install --name redis-session-db -f redis-session-db-values.yaml stable/redis
kubectl apply -f redis-user-db-volume-$target_hostname.yaml
helm install --name redis-user-db -f redis-user-db-values.yaml stable/redis
EOF
Supports Markdown
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