The user you are authenticating with doesn't have proper permissions. In
particular it looks like you are trying to use a kubectl from a node which
generally aren't allowed to create deployments.

Learn more here: https://kubernetes.io/docs/admin/authorization/rbac/

Good luck.

Brandon

On Fri, Jan 26, 2018 at 2:45 PM m k <mkan...@gmail.com> wrote:

> Greetings...
>
> I am to new kubernetes. I have set up the master & worker. While trying to
> create a pod on the worker, I get the following:
>
> Any pointers & help would be very much appreciated.
>
> Thanks,
> Murali
> -----------------
>
> [root@soljumpstart manifest]# kubectl get pods
> No resources found.
>
> [root@soljumpstart manifest]# kubectl run example --image=httpd --port=80
> Error from server (Forbidden): deployments.extensions is forbidden: User
> "system:node:soljumpstart" cannot create deployments.extensions in the
> namespace "default"
>
> [root@soljumpstartt]# kubectl version
> Client Version: version.Info{Major:"1", Minor:"8+",
> GitVersion:"v1.8.4+2.0.1.el7",
> GitCommit:"538ac53c74231a70b7ceca01b8f8d09a735b4ffb", GitTreeState:"\"git",
> BuildDate:"2017-12-14T22:28:43Z", GoVersion:"go1.8.3", Compiler:"gc",
> Platform:"linux/amd64"}
> Server Version: version.Info{Major:"1", Minor:"8+",
> GitVersion:"v1.8.4+2.0.1.el7",
> GitCommit:"538ac53c74231a70b7ceca01b8f8d09a735b4ffb", GitTreeState:"\"git",
> BuildDate:"2017-12-14T22:28:43Z", GoVersion:"go1.8.3", Compiler:"gc",
> Platform:"linux/amd64"}
>
> [root@soljumpstart manifest]# cat /etc/redhat-release
> Red Hat Enterprise Linux Server release 7.4 (Maipo)
>
> [root@soljumpstart manifest]# kubectl get nodes
> NAME             STATUS    ROLES     AGE       VERSION
> soljumpstart     Ready     <none>    2d        v1.8.4+2.0.1.el7
> yumoel1-m1-inf   Ready     master    2d        v1.8.4+2.0.1.el7
>
> cat example.yaml
>
> ---
> apiVersion: v1
> kind: Pod
> metadata:
> name: web
> spec:
> containers:
> - name: front
>   image: httpd
>   port:
> - containerPort: 80
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q&A" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
CTO, CoreOS, Inc
Tectonic is enterprise Kubernetes
https://coreos.com/tectonic

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to