Matt Rickard
b0db008b87
Merge pull request #1886 from r2d4/localkube-bootstrapper
...
Add localkube as a bootstrapper
2017-08-30 10:51:24 -07:00
Matt Rickard
48fd6ecb65
Add localkube as a bootstrapper
...
Introduce the --bootstraper or -b flag that toggles the cluster
bootstrapper. The default bootstrapper (and only bootstrapper at this
time) is localkube.
The bootstrapper interface contains all the functions needed to
bootstrap a kubernetes cluster. It ingests a KubernetesConfig, which
contains all the configuration for the cluster, as well as a
CommandRunner, which is the interface upon which it will run commands
and transfer files to possibly remotely set up the cluster.
This moves the localkube functions out of cluster.go into their own
package at k8s.io/minikube/pkg/minikube/bootstrapper/localkube.
2017-08-28 13:23:41 -07:00
Matt Rickard
531e81103f
Rename kvm driver to kvm2
2017-08-28 11:52:39 -07:00
Matt Rickard
48b165808c
Bring KVM driver in-tree
...
Add boilerplate
Review feedback
2017-08-28 11:52:35 -07:00
Matt Rickard
1052dda37a
Move CalculateDiskSizeInMB to utils to use in kvm
2017-08-28 11:27:34 -07:00
Matt Rickard
3a0d03f93b
Merge pull request #1844 from r2d4/command-runner
...
Add CommandRunner interface
2017-08-24 15:07:51 -07:00
dlorenc
a05a4fe35a
Code review feedback.
2017-08-24 11:54:59 -07:00
dlorenc
1ac4166b10
Add darwin build tag.
2017-08-24 11:54:59 -07:00
dlorenc
b4202d6d02
Unit tests.
2017-08-24 11:54:59 -07:00
dlorenc
e3d239929b
Jenkins/Makefile targets.
2017-08-24 11:54:59 -07:00
dlorenc
28f9d5dc1a
Initial hyperkit driver implementation.
2017-08-24 11:54:59 -07:00
Matt Rickard
cac45c3ed8
Use syncmap instead of sync.Atomic
2017-08-23 15:08:32 -07:00
Matt Rickard
fd37e6daec
Move setupCerts to use CommandRunners
2017-08-23 14:33:34 -07:00
Matt Rickard
8d4e1d48be
Add comments for exported CommandRunner functions
2017-08-23 14:33:34 -07:00
Matt Rickard
7f558f1a11
Move tests over to use FakeCommandRunner
2017-08-23 14:33:34 -07:00
Matt Rickard
5a9ecbe672
Add CommandRunner interface
...
Two implementations, SSHRunner and ExecRunner allow commands to be run
either through SSH or os.Exec respectively. This allows the cluster
bootstrappers to be unaware of how they are actually executing the
commands they need. Copy and Remove functions provide a nice
convenience function for running commands that copy and remove files
respectively.
2017-08-23 14:33:34 -07:00
Aaron Prindle
99d8237f8b
Fix status issue with none driver where CombinedOutput was causing errors
2017-08-22 11:34:54 -07:00
dlorenc
9b2dd165b3
Restart docker after configuration.
2017-08-21 18:00:13 -07:00
Matt Rickard
0db44af93c
Rewrite configureAuth
...
The current implementation assumes that we already have docker running.
This switches it to not remove any previous docker configuration
(since there isn't any), and uses our native file transfer utils
instead of the printf commands.
2017-08-20 22:44:19 -07:00
Matt Rickard
f19fab24b4
Rename localkube status to cluster status
2017-08-18 11:55:28 -07:00
Sunny
e07eb01366
fix(cmd/start): prevent k8s version downgrades
...
- Create Config struct to store MachineConfig and KubernetesConfig as cluster
configuration.
- Write cluster configuration under $MINIKUBE_HOME/profiles/ directory
when a cluster is launched.
- Load the cluster configuration at `start` and compare the loaded k8s
version with the requested version. Prevent any version downgrade requests.
2017-08-11 18:29:34 +05:30
Matt Rickard
5531a63b8d
go lint/vet fixes
2017-08-04 13:42:10 -07:00
dlorenc
8837045970
Stop using insecure serving.
2017-07-26 14:38:57 -07:00
dlorenc
e9795ca1a7
Fix ssh_mock to handle shells.
2017-07-26 14:26:45 -07:00
dlorenc
eafb4fcdbe
Ensure we use the native SSH driver with docker machine.
...
This gives me a huge speedup with the xhyve driver.
2017-07-26 14:26:45 -07:00
Matt Rickard
45eabf66eb
Merge pull request #1720 from r2d4/etcd3
...
Use etcd embed package, switch apiserver to use etcdv3
2017-07-26 13:42:21 -07:00
Aaron Prindle
4798185b47
Fix storage provisioner to use insecure address variable
2017-07-25 13:46:29 -07:00
Matt Rickard
a682bbbfe0
Use embeded etcd package, switch to etcdv3
2017-07-20 11:39:04 -07:00
Aaron Prindle
c98ac207ab
Merge pull request #1717 from q3aiml/restore-mount-cmd
...
Restore mount command and unswap port and mountVersion
2017-07-20 10:21:09 -07:00
Andy Clayton
1f1076d7ed
Unswap port and mountVersion on mount cmd
...
Seeing since 6f42d58:
sudo mount -t 9p -o trans=tcp,port=9p2000.u,dfltuid=1001,dfltgid=1001,version=32777,msize=262144 192.168.42.1 /opt/host-persist;
sudo chmod 775 /opt/host-persist;
SSH cmd err, output: <nil>: mount: wrong fs type, bad option, bad superblock on 192.168.42.1,
2017-07-19 19:51:28 -05:00
Matt Rickard
d56d41b956
Add duration as a configurable type for localkube
2017-07-19 14:16:33 -07:00
Aaron Prindle
6f42d583d2
Added msize and 9p-version flags to mount. Also changed their defaults to be more usable
2017-07-17 11:02:56 -07:00
Matt Rickard
afb7c63d92
Restore some kube-proxy defaults
...
Set some kube-proxy defaults that got unset through the new way of
configuring kube-proxy. Add more delay to the ip tables syncing reduces
idle CPU load a lot.
See
https://github.com/kubernetes/minikube/issues/1158#issuecomment-315308205
2017-07-14 10:58:21 -07:00
Matt Rickard
9b249158ae
Fix broken service test
...
Also switch out-of-order format strings in test output.
2017-07-13 09:19:46 -07:00
Matt Rickard
0b595b7a43
minikube: Url parse changes for go 1.8
2017-07-13 09:19:44 -07:00
Matt Rickard
81fa73d2df
Structural changes to kube-proxy and apiserver
2017-07-13 09:19:44 -07:00
dlorenc
c5b57b0479
Manual changes for 1.7 update.
2017-07-13 09:16:43 -07:00
Matt Rickard
5271dd1f40
Don't fetch localkube when version specified is default
...
Instead, use the binary that is already bundled with go-bindata.
2017-07-12 15:21:20 -07:00
dlorenc
11ce2369d2
Move kubecfg utils from minikube to util.
...
We'll need to also write a kubecfg inside the VM going forward as we
remove the InsecureServing path.
2017-07-05 17:25:36 -07:00
Aaron Prindle
a021ab679f
Merge pull request #1653 from aaron-prindle/check-err-none
...
Updated CopyFileLocal to catch all errrors and have better error mess…
2017-06-30 14:28:17 -07:00
Aaron Prindle
d421074c69
Updated CopyFileLocal to catch all errrors and have better error messaging
2017-06-30 13:27:22 -07:00
Matt Rickard
2bf1a3e323
Add start flag --disable-driver-mounts
...
Allows users to disable the filesystem mounts created by the xhyve and
virtualbox drivers.
2017-06-28 14:23:07 -07:00
Aaron Prindle
fc40d7d8b7
Merge pull request #1654 from aaron-prindle/precreate-none
...
Added checking for docker on the path in the precreate check for none…
2017-06-27 15:10:15 -07:00
Aaron Prindle
b5fd8436a9
Merge pull request #1651 from aaron-prindle/configurable-service-wait
...
Added wait and interval time flags to minikube service command
2017-06-27 09:47:32 -07:00
Aaron Prindle
cb8d3c027c
Added checking for docker on the path in the precreate check for none driver
2017-06-26 10:35:46 -07:00
Aaron Prindle
32316acd49
Merge pull request #1643 from aaron-prindle/fix-mount-uid-gid
...
Fixed flags to use 9p syntax for uid and gid
2017-06-26 10:16:40 -07:00
Aaron Prindle
79b9e10054
Added wait and interval time flags to minikube service command
2017-06-25 13:07:01 -07:00
Aaron Prindle
40b0533147
Merge pull request #1482 from aaron-prindle/remove-old-mounts
...
Removing old mounting methods
2017-06-23 11:23:59 -07:00
Aaron Prindle
62c56d7d9a
Fixed flags to use 9p syntax for uid and gid
2017-06-23 11:07:49 -07:00
Travis Cline
c5becb3607
Allow control of user and group ids for mount
2017-06-22 11:29:56 -07:00