Zero-to-jupyterhub-k8s: Error while setting up Z2JH with K8s

Created on 11 Feb 2019  路  9Comments  路  Source: jupyterhub/zero-to-jupyterhub-k8s

unable to install the chart configured by your config.yaml by running this command from the directory that contains your config.yaml:

Suggested values: advanced users of Kubernetes and Helm should feel

free to use different values.

RELEASE=jhub
NAMESPACE=jhub

helm upgrade --install $RELEASE jupyterhub/jupyterhub \
--namespace $NAMESPACE \
--version=0.8.0-beta.1 \
--values config.yaml

Error :
Release "jhub" does not exist. Installing it now.
Error: render error in "jupyterhub/templates/proxy/autohttps/service.yaml": template: jupyterhub/templates/proxy/autohttps/service.yaml:1:26: executing "jupyterhub/templates/proxy/autohttps/service.yaml" at <.Values.proxy.https....>: can't evaluate field https in type interface {}

Any assistance appreciated

Most helpful comment

@consideRatio the lack of a space between secretToken: and the hex value seemed to be the problem. Thanks for the help!!

All 9 comments

@KVSSetty can you provide us with your config.yaml file (where you obfuscate your secrets)?

my config file contains nothing more than the random hex string representing 32 bytes to use as a security token generated using the command:
openssl rand -hex 32 , as per the tutorial.
I tried by changing the version of the Helm chart from 0.8.0 beta to just 0.8.0 and also to 0.7.0 ,but nothing works.

Can you copy paste it anyhow for me to better conclude details regarding to yaml-syntax?

If you paste it within a block like below, it will show up with spacing etc intact.

```yaml
proxy:
  secretToken: asdfasdfasdf
```

I am having the same problem when running:

helm upgrade --install jhub jupyterhub/jupyterhub\ --namespace jhub\ --version=0.8.2\ --values config.yaml

I get:
@cloudshell:~ (googleaccountxxxxx)$ helm upgrade --install jhub jupyterhub/jupyterhub --namespace jhub --version=0.8.2 --values config.yaml Release "jhub" does not exist. Installing it now. Error: render error in "jupyterhub/templates/proxy/autohttps/service.yaml": template: jupyterhub/templates/proxy/autohttps/service.yaml:1:26: executing "jupyterhub/templates/proxy/autohttps/service.ya ml" at <.Values.proxy.https....>: can't evaluate field https in type interface {}

config.yaml is just the following as suggested in the z2jh guide:
proxy:
secretToken: ""

I am using Google Kubernetes Engine. I also tried doing chmod on config.yaml, but same error. I am going to keep trying and will post if I figure it out, but I was following the z2jh recipe, so haven't gotten into the details yet. If anyone figures it out, I would appreciate it!

@azbones suspect a formatting error in your config.yaml, that there is too little space or similar between proxy and secretToken.

Or, perhaps you exactly written the following and that cause some issue but I don't think that would be noticed in this manner.

proxy:
  secretToken: "<hex generated from openssl rand -hex 32>"

What it should look like is something like this, where you have replaced the "<hex generated from openssl rand -hex 32>" part with something generated from openssl rand -hex 32

proxy:
  secretToken: "asf7as98f5a0s9d8f7b7987bc89b7a987cb7987asdf"

This is the actual file. I changed the token though...

image

@consideRatio I cut and paste the spaces, but there appear to be 9 on the second row. I will try changing it to 2.

@consideRatio thanks for taking a look though! Everything was going great until this point. I appreciate all the support.

@consideRatio the lack of a space between secretToken: and the hex value seemed to be the problem. Thanks for the help!!

;D nice your welcome!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

consideRatio picture consideRatio  路  3Comments

jonathanballs picture jonathanballs  路  3Comments

consideRatio picture consideRatio  路  3Comments

consideRatio picture consideRatio  路  4Comments

aurashn picture aurashn  路  4Comments