@@ -74,19 +74,6 @@ settings for the pod. The final section you'll see is a list of recent
74
74
events. These can be particularly informative, as often an error will
75
75
show up in this section.
76
76
77
- **Real world scenario:** In our case, one of the lines in the events page
78
- displays an error :
79
-
80
- ` ` `
81
- $ kubectl describe pod jupyter-choldgraf --namespace <k8s-namespace>
82
- ...
83
- 2m 52s 4 kubelet, gke-jhubtest-default-pool-52c36683-jv6r spec.containers{notebook} Warning Failed Failed to pull image "jupyter/scipy-notebook:v0.4": rpc error: code = 2 desc = Error response from daemon: {"message":"manifest for jupyter/scipy-notebook:v0.4 not found"}
84
- ...
85
- ` ` `
86
-
87
- It seems there is indeed something wrong with the Docker image. Let's confirm
88
- this by getting another view on the events that have transpired in the pod.
89
-
90
77
# ## `kubectl logs`
91
78
92
79
If you only want to see the latest logs for a pod, use the following command :
@@ -99,37 +86,7 @@ This will show you the logs from the pod, which often contain useful
99
86
information about what is going wrong. Parse these logs
100
87
to see if something is generating an error.
101
88
102
- **Real world scenario:** In our case, we get this line back:
103
-
104
- ```
105
- $ kubectl logs jupyter-choldgraf --namespace <k8s-namespace >
106
- Error from server (BadRequest): container "notebook" in pod "jupyter-choldgraf" is waiting to start: trying and failing to pull image
107
- ```
108
-
109
- Now we are sure that something is wrong with our Dockerfile. Let's check
110
- our `config.yaml` file for the section where we specify the user's
111
- Docker image. Here we see our problem:
112
-
113
- ```yaml
114
- singleuser:
115
- image:
116
- name: jupyter/scipy-notebook
117
- ```
118
-
119
- We haven't specified a ` tag ` for our Docker image! Not specifying a tag
120
- will cause it to default to ` v0.4 ` , which isn't what we want and is causing
121
- the pod to fail.
122
-
123
- To fix this, let's add a tag to our ` config.yaml ` file:
124
-
125
- ``` yaml
126
- singleuser :
127
- image :
128
- name : jupyter/scipy-notebook
129
- tag : ae885c0a6226
130
- ` ` `
131
-
132
- Then run a helm upgrade:
89
+ When you have identified the error edit your `config.yaml` if necessary, then run a helm upgrade :
133
90
134
91
` ` `
135
92
helm upgrade --cleanup-on-fail jhub jupyterhub/jupyterhub --version=<chart-version> -f config.yaml
0 commit comments