As I am reading the first part of this chapter. there seems to be - that is missing next to image
$ kubectl run test -image=luksa/kubectl-proxy:1.6.2 -n foo
deployment "test" created
$ kubectl create ns bar
namespace "bar" created
$ kubectl run test -image=luksa/kubectl-proxy:1.6.2 -n bar
deployment "test" created 

Also while trying the first example of the rolebinding (service-reader.yaml) namespace: foo is missing from the code.
and I was hit with this error.

kubectl create -f pv-reader.yaml -n foo 
Error from server (Forbidden): error when creating "pv-reader.yaml": clusterroles.rbac.authorization.k8s.io "pv-reader" is forbidden: attempt to grant extra privileges: [{[get] [] [persistentvolumes] [] []} {[list] [] [persistentvolumes] [] []}] user=&{[b]MYEMAIL[/b] [system:authenticated] map[]} ownerrules=[{[create delete deletecollection get list patch update watch] [] [pods pods/attach pods/exec pods/portforward pods/proxy] [] []} {[create delete deletecollection get list patch update watch] [] [configmaps endpoints persistentvolumeclaims replicationcontrollers replicationcontrollers/scale secrets serviceaccounts services services/proxy] []

it turns out that I needed to grant cluster-role for my user.
kubectl create clusterrolebinding myname-cluster-admin-binding --clusterrole=cluster-admin --user=myname@example.org

this is for GKE.


Thank you so much for this book. I found almost everything I need when it comes to networking. but the information was scatter between the chapters. it would be great to include a chapter or even appendix to elaborate more about networking when it comes to kube.

Thank you