You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -191,7 +191,7 @@ Notice that APIs that fetch a list, have the entities in a field named `item`, a
191
191
192
192
```julia
193
193
julia>collect(item.metadata.name for item in (get(ctx, :Namespace)).items)
194
-
3-element Array{String,1}:
194
+
3-element Vector{String}:
195
195
"default"
196
196
"kube-public"
197
197
"kube-system"
@@ -201,16 +201,16 @@ And similarly a list of pods:
201
201
202
202
```julia
203
203
julia>collect(item.metadata.name for item in (get(ctx, :Pod)).items)
204
-
0-element Array{Any,1}
204
+
Any[]
205
205
```
206
206
207
207
We do not have any pods in the default namespace yet, because we have not started any! But we must have some system pods running in the "kube-system" namespace. We can switch namespaces and look into the "kube-system" namespace:
208
208
209
209
```julia
210
-
julia>set_ns(ctx, "kube-system")
210
+
julia>set_ns(ctx, "kube-system");
211
211
212
212
julia>collect(item.metadata.name for item in (get(ctx, :Pod)).items)
213
-
9-element Array{String,1}:
213
+
9-element Vector{String}:
214
214
"heapster-779db6bd48-pbclv"
215
215
"kube-dns-v20-b8ff799f7-fjtw9"
216
216
"kube-dns-v20-b8ff799f7-mhdkp"
@@ -225,6 +225,8 @@ julia> collect(item.metadata.name for item in (get(ctx, :Pod)).items)
225
225
There! Now let's get back to the default namespace and start something of our own. How about a nginx webserver that we can access over the internet? Kubernetes entities can be created from their JSON specification with the `kuber_obj` utility API provided with Kuber.jl.
0 commit comments