fabric8io / fabric8-installer

To install fabric8 into a Kubernetes, OpenShift or Atomic environment
12 stars 37 forks source link

invalid value "/var/lib/kubelet/:/var/lib/kubelet:rw,shared" for flag --volume: bad mode specified: rw,shared #106

Open Maxcp opened 8 years ago

Maxcp commented 8 years ago

Trying to install fabric8 with Vagrant 1.8.5 on a CentOS machine i got this error after kubectl download. Also I've tried on a Ubuntu16 but received the same error.

==> default: Running Kubernetes version: v1.3.4 with DNS domain: cluster.local and DNS server IP: 10.0.0.10 ==> default: invalid value "/var/lib/kubelet/:/var/lib/kubelet:rw,shared" for flag --volume: bad mode specified: rw,shared ==> default: See 'docker run --help'. ==> default: cluster "default" set. ==> default: context "default" set. ==> default: switched to context "default".

jshankarc commented 8 years ago

Even I am facing the same issue while setting up on Windows 10 Please help us resolving this issue!

rawlingsj commented 8 years ago

Is this a custom vagrant + kubernetes setup that you've put together or is this using the fabric8 vagrant image? https://github.com/fabric8io/fabric8-installer/tree/master/vagrant/kubernetes

FWIW we recommend folks use either minikube or minishift (the openshift flavour) to easily run a single node kubernetes cluster, which works better than using vagrant + virtualbox for local development. http://fabric8.io/guide/getStarted/index.html

jshankarc commented 8 years ago

Using fabric8 vagrant image to install Facing difficulty in installing minishift on Windows 10 OS

Maxcp commented 8 years ago

rawlingsj this is the default vagrant provisioning that came in the Vagrantfile you mentioned. All I did was add a vm.ssh.insert_key = false and a public_network ip. I'm trying to create a internal LAN server with fabric8 but I didn't find any documentation about it, so my idea is to deploy it with vagrant and access the vm and use iptable or some other thing to foward the external request, but I'm facing this error.

I tried to use Openshift and it ran fine but the provisioning set a internal IP and I can't access fabric8 outside my server. Any ideas?

jstrachan commented 8 years ago

@jshankarrepo gofabric8 & minishift should work on Windows 10 OS. Any chance you could raise an issue for what went wrong for you?

jshankarc commented 8 years ago

@jstrachan Thanks for the reply! Getting below error when trying to execute this command minikube-windows-amd64.exe start --memory=4000 Starting local Kubernetes cluster... E0913 14:44:06.520184 8832 start.go:87] Error starting host: Error getting state for host: machine does not exist. Retrying. E0913 14:44:06.632621 8832 start.go:87] Error starting host: Error getting state for host: machine does not exist. Retrying. E0913 14:44:06.693984 8832 start.go:87] Error starting host: Error getting state for host: machine does not exist. Retrying. E0913 14:44:06.693984 8832 start.go:93] Error starting host: Error getting state for host: machine does not exist Error getting state for host: machine does not exist Error getting state for host: machine does not exist I could not find any documentation which guides us to install minishift on windows

jshankarc commented 8 years ago

@jstrachan Thanks for insisting to use minishift and gofabric8 minishit was heavy on system so choose minikube.

If anyone facing issues in installing minikube and gofabrics on Windows 10, please follow below steps

  1. Open command prompt using Administrator
  2. download minikube for window (https://github.com/kubernetes/minikube/releases/download/v0.9.0/minikube-windows-amd64.exe) , rename minikube and set path in system variables
  3. minikube delete
  4. minikube start --memory=3000 --vm-driver=virtualbox
  5. kubectl get pods --context=minikube
  6. minikube dashboard
  7. kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --hostport=8000 --port=8080
  8. kubectl get pods
  9. gofabric8 deploy -y
  10. gofabric8 validate
  11. minikube service fabric8

I followed these steps and it worked for me, hope this will help! Thanks everyone for contributing!

rawlingsj commented 8 years ago

@jshankarrepo thanks for the steps! We've started a gofabric8 install command which doesn't support windows yet but hopefully using above we can add in real soon.

Ideally where we want to get to for Windows / OSX / Linux is

curl -sS  https://get.fabric8.io/ | bash
gofabric8 start

The dashboard opens after images have downloded and teh console pod is running.

We're not there yet but thats the aim. @jshankarrepo when we get close it would be great if you fancied helping out as a lot of us don't have access to windows machines.

jshankarc commented 8 years ago

@rawlingsj I will surely do it!

davsclaus commented 7 years ago

I think I heard that some OS3 users with the CDK had issues with Vagrant 1.8.5. But downgrading to 1.8.4 works.