Hi Deependra, I was unable to resolve the issue mentioned in this email thread but I was able to install kubernetes by first installing vagrant using [1] and then following [2] to install kubernetes by giving the KUBERNETES_PROVIDER as vagrant.
[1] http://www.olindata.com/blog/2014/07/installing-vagrant-and-virtual-box-ubuntu-1404-lts [2] http://kubernetes.io/docs/getting-started-guides/binary_release/ Thanks and Regards. On Sun, May 1, 2016 at 6:50 PM, Deependra Ariyadewa <[email protected]> wrote: > It looks your kubernetes client ( kubectl ) is not compatible with the > server. > > On Sun, May 1, 2016 at 2:29 PM, Sabra Ossen <[email protected]> wrote: > >> I added the runtime config as follows and ran the command again. But >> still it did not work. >> >> docker run \ >> --volume=/:/rootfs:ro \ >> --volume=/sys:/sys:ro \ >> --volume=/var/lib/docker/:/var/lib/docker:rw \ >> --volume=/var/lib/kubelet/:/var/lib/kubelet:rw \ >> --volume=/var/run:/var/run:rw \ >> --net=host \ >> --pid=host \ >> --privileged=true \ >> --name=kubelet \ >> -d \ >> gcr.io/google_containers/hyperkube-amd64:${K8S_VERSION} >> <http://gcr.io/google_containers/hyperkube-amd64:$%7BK8S_VERSION%7D> \ >> /hyperkube kubelet \ >> --containerized \ >> --hostname-override="127.0.0.1" \ >> --address="0.0.0.0" \ >> --api-servers=http://localhost:8080 \ >> --config=/etc/kubernetes/manifests \ >> --cluster-dns=10.0.0.10 \ >> --cluster-domain=cluster.local \ >> --allow-privileged=true --v=2 \ >> * --runtime-config=extensions/v1beta1/daemonsets=true* >> >> Thanks and Regards. >> >> On Sat, Apr 30, 2016 at 1:02 PM, Deependra Ariyadewa <[email protected]> >> wrote: >> >>> It looks you have not enabled optional RUNTIME_CONFIG in the Kubernetes >>> installation. >>> >>> On Sat, Apr 30, 2016 at 11:17 AM, Sabra Ossen <[email protected]> wrote: >>> >>>> Additional details. >>>> >>>> *kubectl version* >>>> Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.3", >>>> GitCommit:"882d296a99218da8f6b2a340eb0e81c69e66ecc7", GitTreeState:"clean"} >>>> error: failed to negotiate an api version; server supports: map[], >>>> client supports: map[authorization.k8s.io/v1beta1:{} >>>> <http://authorization.k8s.io/v1beta1:%7B%7D> v1:{} metrics/v1alpha1:{} >>>> extensions/v1beta1:{} componentconfig/v1alpha1:{} batch/v1:{} >>>> autoscaling/v1:{}] >>>> >>>> *docker version* >>>> Client: >>>> Version: 1.11.1 >>>> API version: 1.23 >>>> Go version: go1.5.4 >>>> Git commit: 5604cbe >>>> Built: Tue Apr 26 23:30:23 2016 >>>> OS/Arch: linux/amd64 >>>> >>>> Server: >>>> Version: 1.11.1 >>>> API version: 1.23 >>>> Go version: go1.5.4 >>>> Git commit: 5604cbe >>>> Built: Tue Apr 26 23:30:23 2016 >>>> OS/Arch: linux/amd64 >>>> >>>> On Sat, Apr 30, 2016 at 10:12 AM, Sabra Ossen <[email protected]> wrote: >>>> >>>>> Hi All, >>>>> >>>>> I am installing app cloud in my machine. As a prerequisite I need to >>>>> install docker and kubernetes which I have done using [1] and [2] >>>>> respectively. Once I run "kubectl get nodes", mentioned in [2] , the >>>>> result is *error: failed to negotiate an api version; server >>>>> supports: map[], client supports: map[v1:{} metrics/v1alpha1:{} >>>>> extensions/v1beta1:{} componentconfig/v1alpha1:{} batch/v1:{} >>>>> autoscaling/v1:{} authorization.k8s.io/v1beta1:{} >>>>> <http://authorization.k8s.io/v1beta1:%7B%7D>]*. >>>>> >>>>> Any help on understanding the issue is appreciated and request any >>>>> additional details if needed. >>>>> >>>>> [1] https://docs.docker.com/engine/installation/linux/ubuntulinux/ >>>>> >>>>> [2] http://kubernetes.io/docs/getting-started-guides/docker/ >>>>> >>>>> Thanks and Regards. >>>>> >>>>> -- >>>>> *Sabra Ossen* >>>>> *Software Engineer* >>>>> Email: [email protected] >>>>> Mobile: +94 767 837356 >>>>> >>>> >>>> >>>> >>>> -- >>>> *Sabra Ossen* >>>> *Software Engineer* >>>> Email: [email protected] >>>> Mobile: +94 767 837356 >>>> >>> >>> >>> >>> -- >>> Deependra Ariyadewa >>> WSO2, Inc. http://wso2.com/ http://wso2.org >>> >>> email [email protected]; cell +94 71 403 5996 ; >>> Blog http://risenfall.wordpress.com/ >>> PGP info: KeyID: 'DC627E6F' >>> >>> *WSO2 - Lean . Enterprise . Middleware* >>> >> >> >> >> -- >> *Sabra Ossen* >> *Software Engineer* >> Email: [email protected] >> Mobile: +94 767 837356 >> > > > > -- > Deependra Ariyadewa > WSO2, Inc. http://wso2.com/ http://wso2.org > > email [email protected]; cell +94 71 403 5996 ; > Blog http://risenfall.wordpress.com/ > PGP info: KeyID: 'DC627E6F' > > *WSO2 - Lean . Enterprise . Middleware* > -- *Sabra Ossen* *Software Engineer* Email: [email protected] Mobile: +94 767 837356
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
