Commit Graph

449 Commits (ad8ea13de0397cafdfc4cc6b753330c8a862bd93)

Author SHA1 Message Date
Matt Rickard ad8ea13de0 Merge pull request #1933 from r2d4/windows-fix
Use os.Chmod instead of File.Chmod
2017-09-11 13:40:18 -07:00
Kent Rancourt c571912b2d generate distinct cert for use by client 2017-09-08 17:54:58 -04:00
Matt Rickard f8c1651ed9 Use os.Chmod instead of File.Chmod
os.Chmod is cross platform, while File.Chmod seems not to be.
2017-09-08 10:39:04 -07:00
Matt Rickard f022a68e37 Merge pull request #1918 from krancour/request-header-certs
manage proxy-client / aggregator certs
2017-09-08 10:34:36 -07:00
Matt Rickard 0e6e930a7d Merge pull request #1881 from r2d4/cache-images-4-minikube
Cache images in minikube
2017-09-06 15:43:04 -07:00
Kent Rancourt ce2ac65d7f manage proxy-client / aggregator certs 2017-09-06 18:11:59 -04:00
Aaron Prindle 020acf57c6 added .minikube/files dir which gets ssh'd into VM on start 2017-09-06 14:33:59 -07:00
Matt Rickard 3fb711c8ea Add feature flag for cache-images 2017-09-06 13:36:25 -07:00
Matt Rickard ac65b58363 Review feedback 2017-09-06 10:22:09 -07:00
Aaron Prindle 8c6e412548 Added retriable error the service.go 2017-09-05 19:19:28 -07:00
Matt Rickard 55b41415ed Cache images for localkube
This PR introduces caching of localkube images.  It makes a best effort
to cache the essential images localkube needs as minikube starts up.
Currently, the list of cached images is hardcoded, but future work might
entail

1. Cached images as a property of the cluster bootstrapper - to allow
localkube and kubeadm to cache their respective images.
2. Addons contain image information.  Then, we can selectively cache and
preload only the addon images that are enabled.
2017-08-30 22:36:16 -07:00
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