Commit Graph

8637 Commits (revert-19748-fix_wait)

Author SHA1 Message Date
Marcus Heese 34ee59192b
kvm2 driver: be more robust with creating of the network, don't delete the network if it is in use 2018-09-21 10:28:47 -07:00
Marcus Heese b35e908dec
kvm2 driver: generate separate random MACs for default and private network NICs 2018-09-21 10:28:43 -07:00
Marcus Heese c4ef7ad197
kvm2 driver: separated activating and creating of networks 2018-09-21 10:28:37 -07:00
Marcus Heese d1995d24f0
kvm2 driver: fixed private network creation and setup 2018-09-21 10:28:33 -07:00
Balint Pato effccd52e6
Merge pull request #3114 from doodlesbykumbi/patch-1
fix: --format outputs any string, --https only subsitute http URL scheme
2018-09-20 08:49:50 -07:00
Kumbirai Tanekha 33a9e39bd3 fix: --format outputs any string, --https only subsitute http URL scheme
cmd/minikube service
--format: outputs arbitrarily formatted strings
--https: https only substituted when the URL scheme is http
2018-09-19 18:19:29 +01:00
Anders F Björklund 3b97276f70 Change default docker storage driver to overlay2
The "aufs" storage driver has been deprecated,
changed in Docker 17.09 for "overlay2" instead.

See https://github.com/docker/machine/pull/4558

This only affects the "boot2docker" provisioner,
since it is already being used by "buildroot".

Closes #3078
2018-09-10 12:13:03 -05:00
AdamDang 22ab50aa7e Correct typo in the returned message
coundn't->couldn't
2018-09-04 05:49:04 -05:00
NsLib a7a5ede68e fix(cli): \`minikube start --mount --mountsting\` without wirte permission 2018-09-04 05:48:03 -05:00
Jason Stangroome 9b21d3c7e4 Allow certificates to be optionally embedded in .kube/config
Opt-in with `minikube config set embed-certs true`. Similar to the
behaviour of `kubectl config set-credentials --embed-certs`.

Enables Minikube on Windows to produce a .kube/config file that
can be shared directly with kubectl inside the Windows Subsystem
for Linux (WSL) without needing to perform additional translation
of the certificate paths within the configuration file.
2018-09-03 15:34:50 -05:00
Sebastien Collin e551231ec5 Allow to specify api server port through CLI 2018-09-01 15:07:27 +02:00
dlorenc 86f44ad4ff Manual changes for go-containerregistry update. 2018-08-22 20:24:46 -05:00
yanxuean c4ee50b9e8 support to conveniently use containerd
Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2018-08-21 09:28:33 -07:00
Sandeep Rajan f8c16a7bbb Make coredns default 2018-08-20 07:43:53 -07:00
Viktor Safronov 477ece9a50 Revert "Remove untainting logic."
This reverts a part of commit eec47aaa71.
2018-08-06 08:36:10 -07:00
dlorenc 232080ae0c Remove some more vendored k8s. 2018-07-26 08:23:21 -07:00
Aaron Prindle a4606583e4 remove all localkube references from code, change /var/lib/localkube to /var/lib/minikube 2018-07-24 12:36:42 -07:00
dlorenc 15b035748c Manual changes to remove localkube. 2018-07-24 12:36:42 -07:00
dlorenc 23fc22e532 Fix docs for kvm2 2018-07-23 09:02:33 -07:00
Rohit Agarwal 87d7a3208a Update KVM driver installation instructions.
Move the latest instructions out of the comments and move old instructions into the comments.
2018-07-20 07:57:14 -07:00
dlorenc eec47aaa71 Remove untainting logic. 2018-07-16 11:14:24 -07:00
kairen ad576faae9 Reuse the FeatureGates field to parse kubeadm and component feature gates 2018-07-16 08:09:09 -07:00
kairen ca1e7388cb Update kubeadm config template 2018-07-16 08:09:09 -07:00
kairen ee178b0a8b Fix generate config failed 2018-07-16 08:09:09 -07:00
kairen ccaec1db0e Add feature gates support for Kubeadm 2018-07-16 08:09:09 -07:00
Rohit Agarwal 96079478a7 Add nvidia-driver-installer and nvidia-gpu-device-plugin addons. 2018-07-08 22:25:48 -07:00
Rohit Agarwal 268c932240 Add GPU support to minikube. 2018-07-08 22:25:48 -07:00
Luke Weber 05161c1b18 Fixes https://github.com/kubernetes/minikube/issues/2274 2018-07-04 09:26:50 -07:00
Jimmi Dyson dc49833df8 Add missing controlPlaneEndpoint to fix kubeadm templates test 2018-07-04 09:22:41 -07:00
dlorenc 47dd092e60 Code review feedback. 2018-07-04 09:22:41 -07:00
dlorenc 81440feabb Fix Kubernetes 1.11 builds
Add a versioned flag for the enable-admission-control flags
Add a second step to call "kubeadm alpha phase addon all" which seems to be required now to get coredns running.

I tested this all the way back to 1.9.0.
2018-07-04 09:22:41 -07:00
Aaron Prindle 525c615a17
added minikube version and os to user agent in update checks 2018-06-20 15:16:18 -07:00
dlorenc 2b0e10c9ec Fix gofmt. 2018-06-18 08:39:11 -07:00
Peter Trotman 1921679f9c Use constants.DefaultNodeName in kubeadm 2018-06-18 08:39:11 -07:00
Peter Trotman 3dfea62fd4 Changed the nodes within the VM to use a NodeName variable that is
seperate from the VM Machine Name to ensure proper functionality when
using different profile names.
2018-06-18 08:39:11 -07:00
dlorenc 4b060b26fb Manual changes for go-containerregistry. 2018-06-14 10:09:06 -07:00
dlorenc a2218d2e7e Add two more kubeadm preflight ignores to make e2e tests pass. 2018-06-12 13:48:29 -07:00
dlorenc 79682c2059 Fix the minikube status command.
There were a few cases where stdout wasn't getting flushed correctly,
leading to flakiness in e2e tests.
2018-06-12 10:27:55 -07:00
Rohit Agarwal 0df67ee4af Changes to make 'virsh console minikube' work. 2018-06-11 08:45:59 -07:00
ruicao 6a2020d8a1 Typo fix: Explictly -> Explicitly 2018-06-07 09:01:54 -07:00
dlorenc 305e803316 Bump Docker API Verson. 2018-06-05 13:45:01 -07:00
Mark Gibbons e37d6157eb Updated to make code clearer for newer versions and remove duplication of image names 2018-06-05 08:15:38 -07:00
Mark Gibbons abdcd2ce1d changed to use MustParseRange 2018-06-05 08:15:38 -07:00
Mark Gibbons 376380e74e Update code to cache correct images for different k8s versions 2018-06-05 08:15:38 -07:00
AdamDang fb5f548c14 Typo fix: formating->formatting
formating->formatting
2018-06-04 09:57:31 -07:00
seborama ee73cbde6b Added hyperkit options for enterprise VPN support
The purpose of these changes is to enhance Hyperkit support from the
minikube command line for better integration with enterprise networks
behind a VPN.

uuid: Provide VM UUID to restore MAC address (only supported with
      Hyperkit driver).
vpnkitSock: Location of the VPNKit socket used for networking. If empty,
            disables Hyperkit VPNKitSock, if 'auto' uses Docker for Mac
            VPNKit connection, otherwise uses the specified VSock."
vsockPorts: List of guest VSock ports that should be exposed as sockets
            on the host (Only supported on with hyperkit now).

Note:
tests pass but file:
`vendor/github.com/google/certificate-transparency/go/x509/root_darwin.go`
has to be edited to correct an issue - not committed since this is in
the vendor directory.
2018-06-04 09:46:20 -07:00
mlgibbons e9b95df587 Update to catch any errors in loading of cached images into Docker cache in VM which were previously being ignored and leading to unreliable "minikube start" especially in offline mode. 2018-06-04 08:15:12 -07:00
Michal Rostecki 1468a4c8a7 kubeadm: Check for GetClientset error
`elevateKubeSystemPrivileges` was using `GetClientset` function
and getting the err object from, but err wasn't checked.
2018-05-30 22:37:52 -07:00
kairen dadb7adf23 Update pre-cache images to correct version
Signed-off-by: kairen <kyle.b@inwinstack.com>
2018-05-23 13:18:44 -07:00
Ivan Hamilton 4bdba1f20b Issue certificates with NotBefore set 1 day prior to avoid drift/timezone issues in VM 2018-05-23 13:18:26 -07:00
Ivan Hamilton 52cf7de475 Load cached images using VM path separators 2018-05-21 08:05:21 -07:00
dlorenc 8c6afecc88 Move the etc data directory to data/minikube to make cleanup safer. 2018-05-17 13:27:19 -07:00
dlorenc b54950fb2b Start the default network for the kvm2 driver. 2018-05-11 13:07:19 -07:00
dlorenc fe971d8a53 Fix 1.9.x versions of Kubernetes.
This was a silly typo on my part.
2018-05-10 20:35:39 +02:00
kairen d7737980b7 Fix addon enable broken issue for Ingress 2018-05-08 11:27:26 +02:00
AdamDang 6bb278a958 Typo fix: priviledges->privileges
priviledges->privileges
2018-05-03 12:06:25 +02:00
Arnaud MAZIN b25f82759f Create empty map if Nil 2018-04-29 18:24:25 -07:00
Arnaud MAZIN 3f9350da72 fmt 2018-04-29 18:24:25 -07:00
Arnaud MAZIN cc41522545 added map[string]string argument parsing for eviction-like arguments 2018-04-29 18:24:25 -07:00
AdamDang 3c50dee461
Update config.go 2018-04-23 20:10:55 +08:00
AdamDang d01d8e5773
Update cluster.go 2018-04-23 20:10:04 +08:00
Viktor Safronov 9ad5b4a190 Disable dnsmasq on minikube-net network for kvm driver 2018-04-20 07:40:43 -07:00
dlorenc 258d1e149c Add none driver to the supported list. 2018-04-17 13:42:37 -07:00
PI-Victor 84bb1cba26 config: make hyperkit and kvm2 available as supported drivers 2018-04-17 13:22:17 -07:00
Anders F Björklund 8e299f4a67 Add the CRI preflight ignore, lost in refactoring
Also move the corresponding comments to the code
2018-04-16 08:54:22 -07:00
dlorenc 2ec4692cf0 Fix gofmt. 2018-04-13 20:33:53 -07:00
awalker125 6158dd406e swith filepath.join for path.join 2018-04-13 08:35:32 -07:00
Anders F Björklund fc9f45f426 Use --skip-preflight-checks for k8s < 1.9 2018-04-13 08:34:05 -07:00
dlorenc 0bf5166e14 Deprecate localkube. 2018-04-09 13:24:07 -07:00
Tim Hockin b27a989c86 Pass 2: k8s GCR vanity URL 2018-04-09 08:36:59 -07:00
Matt Rickard d0755b6819 kubeadm: increase mark master timeout 2018-04-05 14:38:27 -07:00
dlorenc cc356e63c4 Miscellaneous none driver fixes. 2018-04-04 13:58:50 -07:00
Anders F Björklund 5b54dd6e16 Ignore preflight errors from CRI (dockershim.sock)
kubeadm init is running `crictl -r /var/run/dockershim.sock info`
before the socket actually exists (kubelet hasn't started up yet)
2018-03-30 08:32:19 -07:00
dlorenc dcb5c2cc50 Manual changes for 1.10.
localkube now has to be non-statically compiled :(
2018-03-27 23:13:34 -07:00
Matt Rickard c98115f172
Merge pull request #2590 from dlorenc/validating
Add the ValidatingAdmissionWebhook controller.
2018-03-12 10:27:03 -07:00
Yongkun Anfernee Gui 0fa64b3bd8 Reorganize the minikube drivers
- Add registry to register all supported drivers in different platforms.
- Add DriverDef to define driver's metadata.
- All driver support logic moved to pkg/minikube/drivers, removed all
  driver name switches scattered in different packages.
2018-03-11 13:41:30 -07:00
Yongkun Anfernee Gui ab9f3b234d Remove OS dependent SupportedVMDrivers
Use ListDrivers() method to get the list of VM drivers.
SupportedVMDrivers become the whole list of VM drivers on all
platforms, which is used in gendocs only.
2018-03-11 13:41:30 -07:00
Yongkun Anfernee Gui 1057edfa8f Add registry to discover driver in different platforms
Different platform has differnet list of supported drivers. The
registry contains the correct list of drivers that are supported. In
future we could add commands like `minikube list-drivers`
2018-03-11 13:41:30 -07:00
dlorenc 3cce3ca727 Make ResourceQuota last. 2018-03-06 20:50:22 -08:00
dlorenc b227d6d5e9 Add the ValidatingAdmissionWebhook controller. 2018-03-06 09:12:38 -08:00
Matt Rickard f4c1a3568c
Merge pull request #2403 from afbjorklund/preflight
Remove --skip-preflight-checks, ignore unwanted checks
2018-02-26 22:38:11 -08:00
Matt Rickard 6e49d6a711
Merge pull request #2566 from dvdmuckle/master
Add metrics-server as an addon
2018-02-22 13:53:38 -08:00
Fabian Deutsch ee58133538 kvm2: Switch to CPU passthrough mode by default
With passthrough mode we can enable KVM nesting for guests.

Fixes #2553

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2018-02-22 10:42:20 -08:00
Fabian Deutsch b08b8ab8ae Revert "kvm: Passthrough host CPU in order to allow nesting"
This reverts commit 7a4babe1d6.

For now we just hard-code passthrough.

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2018-02-22 10:42:20 -08:00
Fabian Deutsch 3ddf9d65f6 kvm: Passthrough host CPU in order to allow nesting
Before this patch the virtual CPU was the stock qemu CPU, in the sense that
the virtual CPU features were set according to the default qemu CPU.

With this change the CPU features of the host will be copied at start to the
domain definition. This includes features like svm and vmx, which in turn allow
to run nested virtualization if the host is configured accordingly i.e.
`kvm_intel nested=y` in `/etc/modprobe.d/kvm.conf`.

To turn on nesting, a user has to specify `--kvm-cpu-model host-model` when
creating the VM.

Resolves #2553

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2018-02-22 10:42:20 -08:00
David Muckle adb30393d1 Add metrics-server as an addon 2018-02-21 15:33:27 -05:00
Matt Rickard f0f098af45
Merge pull request #2384 from r2d4/kubeadm-default
Switch default bootstrapper to kubeadm
2018-02-20 14:57:34 -08:00
dlorenc 9fe9154614 Make a crio restart failure a warning instead of an error.
This is a mismatch issue between new minikube versions and old ISO versions. It's
also unlikely to cause a real issue because it requires users to opt-into crio and
modify crio-specific settings to cause trouble.
2018-02-15 11:52:24 -08:00
dlorenc ce6a727fc0 Make the admission controllers shared between localkube and kubeadm. 2018-02-15 11:51:57 -08:00
dlorenc 6492095398 Add the MutatingAdmissionWebhook admission controller. 2018-02-15 11:51:57 -08:00
dlorenc 23d9fde284 Fix none driver stop commands. 2018-02-15 11:51:37 -08:00
Hank Jacobs b6f3cd0163 Use host's name when running VBox manage command to determine VM host IP 2018-02-14 08:18:19 -08:00
Matt Rickard a2665d0dd8
Merge pull request #2545 from jeis2497052/master
Propose fix a typo
2018-02-13 13:49:44 -08:00
John Eismeier 7f3a46bfb3
Propose fix a typo 2018-02-13 14:48:11 -05:00
Matt Rickard 7cea97d92a
Merge pull request #2541 from budhrg/refactor-get-downloadurl
Refactor get download url for minikube
2018-02-12 10:25:11 -08:00
Budh Ram Gurung 68285d1779 Refactor get download url for minikube 2018-02-12 13:15:06 +05:30
Matt Rickard 38f4a767bc
Merge pull request #2534 from anfernee/permission
Fix more permissions
2018-02-09 16:01:38 -08:00
Matt Rickard b5ba9093f5
Merge pull request #2535 from anfernee/local-rm
Use stdlib to remove a local file
2018-02-09 16:01:24 -08:00
Yongkun Anfernee Gui 9a0d2e9c12 Use stdlib to remove a local file
Make it portable across platforms
2018-02-09 14:49:02 -08:00
Yongkun Anfernee Gui c07258b45a Fix more permissions 2018-02-09 14:32:53 -08:00
Matt Rickard ce310f4070
Merge pull request #2533 from anfernee/permission
Chmod -x kubernetes.go
2018-02-09 13:58:01 -08:00
Yongkun Anfernee Gui 49757dccfa Chmod -x kubernetes.go 2018-02-09 12:12:13 -08:00
Yongkun Anfernee Gui ac123c48a9 Close file after reading 2018-02-09 10:51:38 -08:00
Chen Li 82ea016de7 Redirect command Stdout & Stderr for command_runner
CombinedOutput function return after command complete.
When we run a long run command, such as continuously get
new log entries, it failed to get run results.

Fixes: https://github.com/kubernetes/minikube/issues/2447
2018-02-05 09:18:49 -08:00
Anders F Björklund 0e674ef3fa Make sure to enable docker, to please kubeadm
The kubeadm preflight looks if the docker service is enabled,
rather than checking the docker socket... So make it happy.
2018-02-05 09:17:19 -08:00
adolphlwq 14ef5f6b9a use better package name according to https://blog.golang.org/package-names 2018-02-05 08:11:23 -08:00
Anders F Björklund 95067859d2 Fix gendocs, function DefaultMountDir was missing 2018-01-28 08:07:30 -08:00
Matt Rickard ec1b443722
Merge pull request #2423 from kairen/add-freshpod-addon
Add freshpod as a new addon
2018-01-23 13:15:01 -08:00
Bin Liu 3fb4cadef1
Fix typo 2018-01-19 19:17:09 +08:00
Chen Li aa32282e3f Use IPSliceVar for apiServerIPs 2018-01-17 08:22:25 -08:00
Chen Li a3f3286f50 Allow add new server names and IPs to apiserver x509 certificate 2018-01-17 08:22:25 -08:00
Chen Li 7709a2b39e Fix the usage of --apiserver-name
Fixes  #2361
2018-01-17 08:22:25 -08:00
kairen 53d6e9d7a2 Change freshpod from Deployment to RC 2018-01-13 02:14:26 +08:00
kairen 250d602085 Add freshpod as a new addon 2018-01-12 22:57:32 +08:00
basp cebd704bd7 Issue #2416: Added UUID to hyperkit driver section in minikube configuration to be able to regenerate the same mac address for the machine after restarts to give DHCP a change of assigning the previously used IP address. 2018-01-11 09:41:35 -08:00
kairen 08f4677511 Change kubernetes-dashboard from RC to Deployment 2018-01-10 02:15:07 +08:00
kairen b1091853cc Bump kube-addon-manager to v6.5 2018-01-08 14:06:29 -08:00
Anders F Björklund fc9fe5fa21 Make sure to keep other files in kube-proxy ConfigMap
The data was being overwritten with the new file map,
which caused the "config.conf" file to be deleted (!).

Compared to the original "kubeconfig.conf" generated,
the template also inserted an extra newline character.
2018-01-08 08:39:03 -08:00
Anders F Björklund 747e4551fe Remove --skip-preflight-checks, ignore unwanted checks
Better to ignore the checks that we don't want, rather than
disabling all of them in case something important appears...

Currently known failing checks:
	[WARNING SystemVerification]: docker version is greater than
the most recently validated version. Docker version: 17.06.0-ce. Max validated version: 17.03
	[WARNING FileExisting-crictl]: crictl not found in system path
	[WARNING Service-Docker]: docker service is not enabled, please run 'systemctl enable docker.service'
	[ERROR DirAvailable--etc-kubernetes-manifests]: /etc/kubernetes/manifests is not empty
	[ERROR Swap]: running with swap on is not supported. Please disable swap
2018-01-07 17:07:42 +01:00
Suraj Deshmukh 5d7d751db8 Change the cri-o socket location to upstream default
Right now the cri-o socket is placed in `/var/run/crio.sock`, this
commit changes it to `/var/run/crio/crio.sock` which is similar to
upstream.

Signed-off-by: Suraj Deshmukh <surajd.service@gmail.com>
2018-01-04 10:35:08 -08:00
Hugues Alary bc55b8b8be Cleanup NFS Exports after stop and delete 2018-01-03 10:21:04 -08:00
Matt Rickard 8ac130046d Switch default bootstrapper to kubeadm 2018-01-03 09:54:49 -08:00
Anders F Björklund 87f48f1731 Add config to avoid warning about the none driver
Even when starting up minikube in a dedicated virtual machine,
there will be a warning against running it on your workstation.
2018-01-03 09:47:24 -08:00
dlorenc 59274b22da Code review feedback. 2018-01-02 16:18:54 -08:00
dlorenc e3f3727b4d Move GetNetAddr.
The build constraints in vmnet.go cause issues.
2018-01-02 16:18:54 -08:00
Mohit Gupta 7d9413ccd1 remove the hyperkit prefix so we can move this to other drivers as well with time and fix vendoring issue 2018-01-02 16:18:54 -08:00
Mohit Gupta e1903b7423 support NFS sharing with the hyperkit driver 2018-01-02 16:18:54 -08:00
dlorenc 5df299c7e9 Make other lifecycle commands work. 2018-01-02 12:01:37 -08:00
dlorenc fcdd1404e8 Use the real GetIP function. 2018-01-02 12:01:37 -08:00
dlorenc 3d13450846 Make rbac creation idempotent.
Also cleanup the etcd data dir in jenkins.
2018-01-02 12:01:37 -08:00
Matt Rickard 4077763003 Make none driver work with kubeadm 2018-01-02 12:01:37 -08:00
Tim Hockin 51ee9a1423 Convert registry to k8s.gcr.io 2017-12-22 09:55:16 -08:00
dlorenc 5661ba0b5e More manual changes. 2017-12-21 14:15:48 -08:00
dlorenc 030a4c747f Manual changes for 1.9 update. 2017-12-21 14:15:48 -08:00
kairen 50dcda4ba9 Fix the image cache delete 2017-12-14 08:54:17 -08:00
dlorenc 8f91c37bba Properly support the "minikube-net" network. 2017-12-13 21:18:00 -08:00
Boberg c8a5d1f3fd Add mount support for kvm2 driver 2017-12-13 20:25:15 -08:00
kairen 289e8f688b Revert system image cache 2017-12-12 21:43:39 -08:00
kairen 797925f183 Update ingress controller, and fix integration test 2017-12-12 21:43:39 -08:00
Zak B. Elep 56608e418d kvm2: Set group executable bit on machine-specific directory and up
Ensure that the directories leading to the KVM image have enough
permission for libvirt/QEMU to traverse, especially in the case where
libvirt/QEMU group is set to to `kvm`/`users`.
2017-12-10 17:49:54 -08:00
dlorenc e150cec3e8 Fix hyperkit mounting. 2017-12-08 13:46:56 -06:00
kairen 777b44695f Improve cache list command 2017-12-08 13:37:55 -06:00
Matt Rickard d9e5283218 Verify checksum for localkube 2017-11-30 11:04:48 -08:00
dlorenc 9491ce6dbe Add deprecation notices for kvm and xhyve. 2017-11-29 13:55:29 -08:00
Matt Rickard fc916f7af1
Merge pull request #2110 from r2d4/files-rootfs
~/.minikube/files as rootfs "layer"
2017-11-29 13:54:16 -08:00
Matt Rickard 43e4b0c655
Merge pull request #2203 from priyawadhwa/cache-images
Add cache command to cache non-minikube images
2017-11-29 13:51:53 -08:00
Priya Wadhwa 6344d0bef9
set config map 2017-11-28 15:59:08 -08:00
ijl bbb53c99c2 VirtualBox driver uses virtio network driver
Kernel has CONFIG_VIRTIO_NET=y.

Read more at https://www.virtualbox.org/manual/ch06.html
2017-11-27 08:32:44 -08:00
dlorenc fdf906cf3b Add an error message when running hyperkit without permissions. 2017-11-26 17:31:01 -08:00
Matt Rickard 236d742460
Merge pull request #2205 from ulyssessouza/issue_2129
#2129 Set proper profile when getting client info
2017-11-23 09:37:53 -08:00
Priya Wadhwa 6652e7a903
Delete paths to cached images 2017-11-20 16:31:34 -08:00
dlorenc bc20281f1e Update hyperkit go driver. 2017-11-20 11:52:20 -05:00
ulyssessouza 2b02aa30a7 Issue #2129 Set proper profile (instead of default 'minikube') when getting client info 2017-11-20 09:15:31 +01:00
Patrik Erdes 9b3322a759 Make it known that get-k8s-versions is only relevant for localkube
Added a reference to localkube in the help text and in the output from
the command.
2017-11-17 08:55:14 +01:00
Priya Wadhwa 9f8ca7481c
Merge branch 'cache-images' of github.com:priyawadhwa/minikube into cache-images 2017-11-16 17:05:25 -08:00
Priya Wadhwa 3477e4bd8f Add cache flag to minikube 2017-11-16 14:07:55 -08:00
kairen 7066946a59 [addon] Update heapster to v1.5.0 2017-11-10 17:02:49 +08:00
dlorenc 1ee84442f8 Add 10.0.0.10 back to the cert. 2017-11-08 13:04:59 -08:00
Matt Rickard e73844c303
Merge pull request #2147 from kairen/add-efk
[addons] Add addon support for EFK logging
2017-11-02 10:33:05 -07:00
Matt Rickard f368ac4999
Merge pull request #2137 from priyawadhwa/storage-provisioner-as-pod
Run storage provisioner as pod
2017-11-01 14:00:57 -07:00
Priya Wadhwa c342ed4d57 Added storage prov deps to Makefile and rewrote main file 2017-11-01 10:54:17 -07:00
kairen c549bc61bf Add addon support for EFK logging 2017-11-02 01:00:38 +08:00
Matt Rickard 9fc8eed51d
Merge pull request #2076 from r2d4/kvm-mac
Use mac instead of hostname to find IP
2017-11-01 08:40:55 -07:00
Matt Rickard afc991ad3f fix tests 2017-10-31 10:11:50 -07:00
Matt Rickard 30667cb406 Calculate ServiceClusterIP and DNS IP from CIDR 2017-10-31 10:06:51 -07:00
Matt Rickard e2dd95ed39 update kubeadm 2017-10-31 10:06:51 -07:00
Matt Rickard 3fceab3b51 Download localkube in e2e test 2017-10-31 09:40:26 -07:00
Priya Wadhwa 7098431c6a Small changes 2017-10-30 13:52:45 -07:00
Priya Wadhwa 71b38d1e4e Tests passing with storage-provisioner in addons 2017-10-30 13:45:31 -07:00
Priya Wadhwa a8fedc86e1 Create main file for storage provisioner 2017-10-30 13:07:48 -07:00
Matt Rickard c20ebde431 Bypass version check for localkube file URI 2017-10-30 09:22:33 -07:00
Mahdi Mohammadi ab6e73ab8d Use minikube context instead of relying on current kubcetl context 2017-10-27 13:29:13 +00:00
Matt Rickard 633fc4ac93 Handle leading 0 2017-10-23 15:37:41 -07:00
Matt Rickard 9728679371 Transfer ~/.minikube/files last
To allow users to overwrite some of the files that we download
(kubelet, kubeadm, etc.)
2017-10-23 15:21:52 -07:00
Matt Rickard 998b01b3ba More verbose output for ssh scp command 2017-10-23 15:05:07 -07:00
Matt Rickard fc84bfde0b Apply MINIKUBE_HOME/files as "rootfs" layer
Instead of scping these files to just /files, we mimic the directory
structure relative to the ~/.minikube/files directory and place the
binaries there.  This can be useful for development.
2017-10-23 15:03:28 -07:00
Matt Rickard 2c2c45d7a6 DOM_SHUTDOWN should return state.Running
Technically, DOMAIN_SHUTDOWN just means that the VM is in the process
of shutting down.  We should still return state.Running so that we
don't return from `minikube stop` before the domain is actually
stopped.  This should fix a few flakes.
2017-10-23 11:23:58 -07:00
Yisui Hu ea31492976 use consistent path for localkube.service
/usr/lib/systemd/system is not consistent across different distribution
/etc/systemd/system should be used.

See issue: #2098
2017-10-20 14:09:03 -07:00
Matt Rickard d9089c3d77 Merge pull request #2089 from r2d4/no-localkube
Remove localkube from bindata
2017-10-20 12:29:48 -04:00
Matt Rickard a19f90fd91 import erorr 2017-10-19 16:23:47 -04:00
Matt Rickard 02f0d41c1d Split out hyperkit into CGO needed stub
This allows us to use the hyperkit Driver struct in minikube, without
needing CGO_ENABLED=1.  For the hyperkit driver binary, the
CGO_ENABLED=1 function will work.
2017-10-19 16:07:38 -04:00
Matt Rickard 7e90add4a9 Merge pull request #2087 from r2d4/hyperkit-home
Hyperkit install to GOBIN
2017-10-19 13:42:45 -04:00
Matt Rickard a7d568441c Remove localkube from bindata
This makes the minikube build simpler and the the binary smaller.
Localkube will always be remotely fetched and locally cached on the
host.
2017-10-19 12:56:29 -04:00
Matt Rickard b7012aefcc Use mac instead of hostname to find IP 2017-10-19 09:16:24 -07:00
Matt Rickard f582814c9d Add hyperkit to supported driver list 2017-10-19 10:39:27 -04:00
Matt Rickard c7f03444b5 Merge branch 'master' into docker-17.05 2017-10-19 07:23:11 -07:00
Matt Rickard 33584026c1 Merge pull request #2078 from r2d4/verbose-logging
Add verbose logging
2017-10-17 16:45:23 -07:00
Matt Rickard 8894ed78b9 Add verbose logging 2017-10-17 15:16:02 -07:00
Matt Rickard 5ccaae8998 Merge pull request #2068 from vbatts/crio-insecure-registry
buildroot: output flags for crio
2017-10-17 15:12:28 -07:00
Matt Rickard 0df72cadd5 Merge pull request #2052 from r2d4/cri-o
Add convenience container-runtime flag for kubeadm
2017-10-17 14:36:24 -07:00
Vincent Batts 50570f6133
buildroot: output flags for crio
This adds an environment variable file for crio.service to source.
And a step for the buildroot provisioner to write flags, initially just
insecure-registry.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-10-17 13:39:06 -04:00
dlorenc 9dd3d9bc64 Fix non-systemd none driver. 2017-10-17 10:31:06 -07:00
Matt Rickard 37456d22e0 Review feedback 2017-10-17 10:08:07 -07:00
dlorenc c0d838fc71 Force the none driver to use netgo. 2017-10-16 19:41:55 -07:00
Matt Rickard 6bb07b32c4 Merge pull request #2037 from r2d4/kubeadm-feature-gates
[kubeadm] Pass features gates to components
2017-10-16 13:22:13 -07:00
Matt Rickard 6a53c0c06c Merge pull request #2060 from r2d4/k8s18
K8s 1.8
2017-10-16 13:11:39 -07:00
Matt Rickard 901c844a00 localkube changes 2017-10-13 10:21:16 -07:00
Matt Rickard e5002afa8c add vendor 2017-10-13 10:21:09 -07:00
Matt Rickard 1a38ef74b2 Use path instead of filepath for cross platform 2017-10-12 10:39:41 -07:00
Matt Rickard 800be7edc7 Add convenience container-runtime flag for kubeadm
To enable the cri-o runtime you may now just use

`minikube start --container-runtime=cri-o --bootstrapper=kubeadm`
or
`minikube start --container-runtiume=crio --bootstrapper=kubeadm`
or
`minikube start --extra-config=kubelet.container-runtime=remote
--extra-config=kubelet.container-runtime-endpoint=/var/run/crio.sock
--extra-config=image-service-endpoint=/var/run/crio.sock`
2017-10-11 13:57:18 -07:00
Matt Rickard 967913b9a6 Extra arguments need to be quoted 2017-10-11 10:18:10 -07:00
Matt Rickard dd50d76e3d [kubeadm] Pass features gates to components 2017-10-10 11:13:09 -07:00
Matt Rickard 23d7dde268 Bump cached DNS addon version 2017-10-10 11:06:28 -07:00
Matt Rickard b4de04fac8 Merge pull request #1995 from rajansandeep/coredns
Adding CoreDNS as an addon
2017-10-09 14:59:34 -07:00
Aaron Prindle 8dbe63d697 Merge pull request #1985 from r2d4/kubelet-config-kubeadm
Implement extra-config for kubeadm components
2017-10-04 16:16:50 -07:00
Aaron Prindle c6d2e491a3 Merge pull request #1774 from aaron-prindle/none-docker-rm-kill
Added command to remove and kill all kubernetes containers from docke…
2017-10-04 11:30:57 -07:00
Matt Rickard a139ccd0ab Implement extra-config for kubeadm kubelet 2017-10-04 11:26:15 -07:00
Matt Rickard e1fd9de778 Merge pull request #1984 from r2d4/cleanup-drivers
Clean up unused files, add tar rules
2017-10-04 10:41:19 -07:00
Matt Rickard 8e319bd08e Merge pull request #2000 from hirsim/enable-cache-image-for-windows
Enable cache image for Windows
2017-10-03 08:27:22 -07:00
adolphlwq b71446b2cd correct url of reference code
Signed-off-by: adolphlwq <kenan3015@gmail.com>
2017-10-03 01:57:50 -07:00
Aaron Prindle 10e6e6ade1 added cleanup for docker containers in none driver 2017-10-02 11:48:35 -07:00
Hiroshi Nomura 7f8f3bb5d4 Add unit tests 2017-09-30 20:43:51 +09:00
Aaron Prindle ec17df3e59 Added sshd, kubeconfig and insecure-serving flags to localkube for dind image 2017-09-28 16:05:51 -07:00
Matt Rickard a90b6a446a Merge pull request #1998 from vbatts/crio-bin
minikube-iso: add cri-o runtime
2017-09-27 10:05:34 -07:00
Vincent Batts 2788714cc5
minikube-iso: add cri-o runtime
https://github.com/kubernetes-incubator/cri-o

Updated the runc version to its latest master commit.
Got crio into the automounter to get off the tmpfs

This feature bubbles up to the minikube command by reusing the
`--container-runtime=` flag, by enabling the value of "`crio`"
(`minikube start --container-runtime=crio`), while the flags/config
passed to localkube are more like k8s (`--container-runtime=remote
--remote-runtime-endpoint=/var/run/crio.sock`)

This is mostly ready for review. It is still lacking having
--insecure-registry plumbed through, but for now the policy.json is
open.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-09-27 09:12:15 -04:00
yuvipanda d7bb7c343b provisioner: Use chmod instead of umask
umask affects the entire process, while this is clearer
2017-09-27 01:40:19 -07:00
yuvipanda f64234b1b8 Set umask to 0 before creating hostpath volumes 2017-09-27 01:40:19 -07:00
Hiroshi Nomura 6ee6a82d0a Enable cache image for Windows 2017-09-23 19:08:35 +09:00
Sandeep Rajan 06b3e74fb8 rectified incorrect path 2017-09-21 10:47:38 -04:00
Sandeep Rajan eba63d86cd adding coredns as an addon 2017-09-21 10:28:45 -04:00
Matt Rickard 547d22f638 Clean up unused files, add tar rules 2017-09-19 15:45:18 -07:00
Hiroshi Nomura 442f746f6a Fixed make a image cache directory for Windows 2017-09-20 00:43:33 +09:00
Hiroshi Nomura 068a076b98 Fixed join of cert file path in kubeconfig 2017-09-19 22:24:09 +09:00
Matt Rickard 17ecbcd76e Merge pull request #1969 from r2d4/kubeadm-use-right-kubelet
Don't check kubernetes-version for kubeadm
2017-09-15 11:46:30 -07:00
Matt Rickard ac7d49c124 Don't check kubernetes-version for kubeadm 2017-09-15 10:06:43 -07:00
Aaron Prindle e654879413 Merge pull request #1903 from r2d4/kubeadm-v2
Kubeadm bootstrapper
2017-09-14 16:04:43 -07:00
Matt Rickard 2b7fd32bdd Merge pull request #1959 from aaron-prindle/path-fix-windows
use path.join instead of filepath.join for ssh copy
2017-09-14 14:29:41 -07:00
Matt Rickard b291b0f85c Add restart for kube-proxy 2017-09-14 13:51:41 -07:00
Matt Rickard 72f7628d35 Add caching for kubeadm 2017-09-14 13:51:41 -07:00
Matt Rickard 49d471f4ba Add experimental kubeadm bootstrapper 2017-09-14 13:51:37 -07:00
Matt Rickard 1e4d8de881 Only warn when can't get all localkube versions 2017-09-14 11:53:38 -07:00
Aaron Prindle e575585c2c fixed path errors on windows, replaced filepath w/ path 2017-09-14 11:21:27 -07:00
Matt Rickard ebbc34d2ba Move drivers to pkg/drivers, share utils
Share most of the disk image setup between hyperkit and kvm drivers.
Move and remove a lot of shared configuration between all the in-tree
drivers: kvm, hyperkit, none.
2017-09-12 14:29:22 -07:00
Matt Rickard 3180e2e897 Merge pull request #1938 from r2d4/integration-test-cleanup-
Integration test cleanup
2017-09-12 14:28:28 -07:00
Matt Rickard cc64fb0544 Merge pull request #1940 from r2d4/vet
golint, go vet, etc. changes
2017-09-11 15:30:52 -07:00
Matt Rickard 53341aa30d golint, go vet, etc. changes 2017-09-11 14:17:58 -07:00
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
Matt Rickard 9747484e9e Move k8s utils to pkg/util 2017-09-08 20:14:28 -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
Bryan Larsen 4022957d78 docker daemon must be started as 'dockerd' in newer versions of docker 2017-08-01 11:33:19 -04: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
Aaron Prindle 6639b2d91b Removed systemd dependency from minikube, updated none driver to reflect this 2017-06-20 09:55:14 -07:00
Matthew Fisher 135a920d80 fixup default --insecure-registry CIDR address
The default CIDR should be 10.0.0.0/24 rather than 10.0.0.1.
Accidental off-by-one error. :)
2017-06-19 11:39:18 -07:00
Aaron Prindle 745e4945c7 Merge pull request #1575 from tdemaret/master
Force create /usr/lib/systemd/system
2017-06-19 07:45:59 -07:00
Thibaut Démaret 577eb8d565 After gofmt 2017-06-19 08:37:40 +02:00
XrXr 5d39878baa Don't treat stopping stopped hosts as error
Running `minikube stop` while nothing is running results in a crash.
This patch makes `cluster.StopHost()` swallow the stop-while-stopped
error libmachine returns.
2017-06-18 22:47:31 -04:00
Matthew Fisher 5e1db75db5 add registry addon
This addon installs a docker registry into the cluster.
2017-06-16 10:36:10 -07:00
Thibaut Démaret 8921282a34 Add error check 2017-06-15 18:31:43 +02:00
Shane Ramey 084eeaff66 fix gofmt errors 2017-06-15 07:48:37 -07:00
Shane Ramey 2b88806330 use --dns-domain for k8s API server cert 2017-06-15 07:48:37 -07:00
Thibaut Demaret a1e55b0e15 Merge branch 'master' of https://github.com/kubernetes/minikube 2017-06-14 21:22:26 +02:00
Thibaut Demaret 1405711619 Move mkdir just for none driver use case 2017-06-14 20:36:25 +02:00
Aaron Prindle e524e8a9aa Merge pull request #1578 from abbytiz/update-context
Added update-context and kubeconfig to status
2017-06-14 10:45:15 -07:00
dlorenc 09f683bb1d More cleanup. 2017-06-14 09:45:09 -07:00
dlorenc 2486a8b612 Fix tests. 2017-06-14 09:45:09 -07:00
dlorenc 5b5442be11 Move more code into the local host implementation. 2017-06-14 09:45:09 -07:00
Abby Tisdale 577816311e Added update-context and kubeconfig to status. 2017-06-13 16:22:56 -07:00
dlorenc ae51e5fec8 Pass legacy systemd boot parameter in xhyve driver. 2017-06-13 13:04:49 -07:00
Thibaut Démaret ec12b62d8f Fix syntax to use package os 2017-06-12 17:03:12 +02:00
Thibaut Démaret 9bccf55fd7 import os package 2017-06-12 16:54:19 +02:00
Thibaut Démaret 8707a2c2f9 Force create /usr/lib/systemd/system 2017-06-12 16:40:40 +02:00
Gerard Braad 03d3e1f031 Fix interactive shell when using native-client 2017-06-09 17:38:42 +08:00
Aaron Prindle 5a59bb596f moved none driver into subdirectory 2017-05-30 10:06:59 -07:00
Aaron Prindle a7c2ff3e84 Merge pull request #1173 from aaron-prindle/minikube-no-vm
None driver
2017-05-26 15:22:01 -07:00
Aaron Prindle f4a8ece0ae Additional none driver changes 2017-05-26 13:33:26 -07:00
Nick Kubala 344f6d94dd fix broken service url unit test (#1529) 2017-05-26 10:20:06 -07:00
Aaron Prindle 88613090a9 Added none driver 2017-05-19 14:51:19 -07:00
Aaron Prindle 847b52d50f Fixed mount daemon to be off by default and to use different directories than the current mounts until they are turned off. 2017-05-19 14:00:18 -07:00
Aaron Prindle c9767886f6 Added mount daemon process that is starts/stops w/ minikube start/stop 2017-05-17 11:50:24 -07:00
Matt Rickard 4a81362d52 Merge pull request #1490 from r2d4/k8s-version-check
Validate k8s version before starting VM
2017-05-16 15:58:53 -07:00
Matt Rickard 7f294b2a54 Review feedback 2017-05-16 15:31:15 -07:00
Aaron Prindle d66bcb8af8 added way to find interface for vbox and ip flag to mount 2017-05-16 13:27:22 -07:00
Matt Rickard 652c4c668d Validate k8s version before starting VM
Also, cache in memory localkube versions in multiple calls to the GCS
bucket.  These versions will not change during the life of the minikube
process once fetched and are used multiple times.
2017-05-12 15:07:15 -07:00
Aaron Prindle 327f7ee4b1 Removing old mounting methods 2017-05-11 14:30:40 -07:00
Aaron Prindle e91641c70c Changed --name to --profile and added minikube profile command 2017-05-08 10:09:11 -07:00
dlorenc 4c22593d35 Move more of the libmachine code up into minikube. 2017-05-01 10:18:58 -07:00
Dale Hamel 94ef3d88b9 Add support for using raw disks with xhyve (#1360)
* Add support for using raw disks with xhyve, default it to true

* Fix formatting issue

* Prefix disk-driver with xhyve to make it clear it is only for xhyve

* Add missing config
2017-04-25 10:51:43 -07:00
Aaron Prindle b1a69c653f Merge pull request #1388 from aaron-prindle/mount-interface
Fixed mount command to bind on specific VM ip address instead of all …
2017-04-24 15:34:22 -07:00
Aaron Prindle b4936d023f Fixed mount command to bind on specific VM ip address instead of all interfaces 2017-04-24 09:59:12 -07:00
dlorenc ca4f2914d1 Add order to localkube startup. (#1371)
* Add order to localkube startup.

This adds a "ready" concept to localkube servers.

* Add unit tests.
2017-04-24 09:22:05 -07:00
Aaron Prindle 0f0dfb65ab Merge pull request #1320 from aaron-prindle/multiple-vms
Added --name flag and MINIKUBE_NAME env var for vm machine name
2017-04-19 12:05:55 -07:00
Aaron Prindle 41c5ba7663 Merge pull request #1350 from aaron-prindle/mount-vm-path
Changed mount syntax to be host-path:vm-path
2017-04-19 12:03:22 -07:00
Aaron Prindle 1b79cfd566 Added --name flag and MINIKUBE_NAME env var for vm machine name 2017-04-19 11:37:40 -07:00
Aaron Prindle b3ad7539b1 Changed mount syntax to be host-path:vm-path 2017-04-19 10:15:04 -07:00
Matt Rickard 2455da4b88 Merge pull request #1357 from r2d4/dns-1.14
Upgrade kube-dns to 1.14.1
2017-04-14 13:02:41 -07:00
Matt Rickard a765d57d53 Upgrade kube-dns to 1.14.1 2017-04-12 10:01:04 -07:00
Aaron Prindle a11b47160f Removed dependency on localkube to wait for the network to be up 2017-04-12 08:38:14 -07:00
Mike Grass 7cc510e180 Document the `ExecStart=` behavior for the dockerd config 2017-04-10 04:38:14 -07:00
Mike Grass 6cd08d4756 Update systemd docker config to clear ExecStart
docker/machine made a change (https://github.com/docker/machine/pull/3966) to use a systemd drop-in unit (https://coreos.com/os/docs/latest/using-systemd-drop-in-units.html) instead of overwriting the dockerd configuration. This necessitates clearing the ExecStart list inherited from the base config prior to the ExecStart directive in GenerateDockerOptions -- otherwise, docker.service fails to start with log output like "docker.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing."
2017-04-07 12:39:21 -07:00
Matt Rickard 09e8cce24d Merge pull request #1314 from r2d4/k8s-v1.6-rebase-1
Upgrade to k8s v1.6 as default version
2017-04-06 14:37:51 -07:00
Aaron Prindle 4b94b14459 Merge pull request #1293 from aaron-prindle/switch-mount
Update mount implementation, add mount integration tests, and check t…
2017-04-06 14:33:22 -07:00
Aaron Prindle 8e801e3975 Update mount implementation, add mount integration tests, and check that path exists. 2017-04-06 13:39:25 -07:00
Aaron Prindle f475961cde Added --dns-domain flag to localkube 2017-04-03 10:25:25 -07:00
Matt Rickard a5ee627d05 Manual fix for storage class client 1.6 2017-03-31 13:33:14 -07:00
Matt Rickard b279d733ad Minikube changes for v1.6.0-beta.2 2017-03-31 13:24:03 -07:00
Matt Rickard 3b46c27b16 Minikube changes for v1.6.0-alpha.1 2017-03-31 13:23:59 -07:00
Aaron Prindle c7bd5eb4fd Merge pull request #1300 from aaron-prindle/remove-b2d-commands
Removed B2D start commands and also a reference of B2D in docker_test
2017-03-31 10:39:09 -07:00
Eric Chiang cdffcdf258 pkg/minikube: print error messages to stderr 2017-03-30 19:11:09 -07:00
Aaron Prindle 6ca6a8993b Removed B2D start commands and also a reference of B2D in docker_test 2017-03-29 13:57:46 -07:00
Matt Rickard 4b3459ed5b Merge pull request #1289 from r2d4/disable-default-provisioner
Disable the default provisioner addon
2017-03-29 10:11:03 -07:00
Matt Rickard bf32cee2cd Merge pull request #1287 from r2d4/no-parallel
Don't run TestGetLogs in parallel
2017-03-27 11:24:54 -07:00
Srini Brahmaroutu 41f41646a5 Fixed the certification generation to use the correct IP.
When invoking localkube a certificate is not correctly generated for the
target ip. For example, when network 10.0.0.1/24 is parsed it generates
a certificate for 10.0.0.0 instead of 10.0.0.1.

Fixed #1215. (with @mhbauer)
2017-03-24 17:02:28 -07:00
Matt Rickard f996c79330 Disable the default provisioner addon
We have to do this through client-go directly, since the addon manager
and kubectl ignore the storageclass resource.
2017-03-24 10:01:57 -07:00
Matt Rickard 046d76796d Don't run TestGetLogs in parallel
Concurrent map writes
2017-03-23 11:29:24 -07:00
Matt Rickard 918b36ad6e Check APIServerName against default
If the apiserver is something other than the default, pass in the flag.
 This won't be compatible with the old versions of localkube.  Old
versions of localkube will work as long as apiserver-name is not
specified in minikube, always using the default.
2017-03-23 10:28:42 -07:00
Matt Rickard 12e41aeaba Merge pull request #1273 from r2d4/logs
Add -f --folow option to minikube logs
2017-03-21 11:44:10 -07:00
Matt Rickard c9a5152e21 Add -f --folow option to minikube logs
Allows tailing of the logs
2017-03-21 11:04:35 -07:00
Max Lavrenov ae153c6348 add --docker-opt parameter which passes flags to docker daemon 2017-03-20 23:39:55 +01:00
Matt Rickard bc10d55097 Only pass in APIServerName flag is specified
Otherwise, compatibility with old versions of localkube is broken in
all cases.  APIServerName flag can still only be specified in v1.5.3 or
newer.
2017-03-15 15:37:22 -07:00
dlorenc 964ff65f39 Fix gofmt. 2017-03-14 10:07:34 -07:00
dlorenc 63ac7e8a76 Fix tests. 2017-03-13 10:21:14 -07:00
dlorenc c220ada63b Fix tests. 2017-03-07 15:00:19 -05:00
Dale Hamel 107e3324a6 Add support for parsing CIDRs to config 2017-03-07 14:59:36 -05:00
Eden Li c632321122 support componentconfigs with native type aliases
Some componentconfig options are aliased to native convertible types
(e.g. ProxyMode) but FindAndSet() was unable to detect that and so it
wasn't possible to set these values via `--extra-config`.

This change addresses that by using the reflected value's Kind instead
of a type assertion on its interface.

It's also worth noting that any value with the type Duration (e.g.
proxy.IPTablesSyncPeriod) is also unable to be set for the same reason,
but this commit does not address that.

See https://github.com/kubernetes/minikube/issues/1217
2017-03-03 01:29:46 -08:00
Matt Rickard 3b6d4672ac Remove vendored in kvm driver
The vendored in KVM driver make minikube dynamically linked to libvirt
libraries, even for virtualbox users.
2017-03-02 17:09:33 -08:00
dlorenc e969ebe87b Add an external hostpath provisioner to localkube. 2017-03-01 11:05:14 -08:00
Davanum Srinivas 8584cf8761 Fix test break 2017-02-27 21:47:30 -05:00
Aaron Prindle 56d4824456 Merge pull request #1149 from aaron-prindle/api-name-configurable
Added API Name as configuration option
2017-02-27 15:18:56 -08:00
Aaron Prindle 9b539db1ff Merge pull request #1143 from upmc-enterprises/registryCredsPrompt
Allow for addons to prompt for data input
2017-02-27 11:19:02 -08:00
Steve Sloka 706d02b926 Fix go-client / Refactor k8s util code 2017-02-27 12:52:33 -05:00
Steve Sloka c3d962b58c Allow for addons to prompt for data input 2017-02-27 11:09:09 -05:00
Dongsu Park ac513ebb1e pkg: fix host IP address for KVM driver for 9pfs mount
In case of KVM driver, "minikube mount" does not work, when mounting any
host directory via 9pfs. That's because in case of the KVM driver, a
different IP address is assigned to the host, 192.168.42.1, while other
drivers assign 10.0.2.2. That's why the following command hangs forever
inside the VM.

```
$ sudo mount -t 9p -o trans=tcp -o port=5640 10.0.2.2 /mount-9p
```

Fix it by changing the host IP address for the KVM driver.
2017-02-27 14:15:33 +01:00
Dan Lorenc b7a5ebed1b Add a default storage class/provisioner. 2017-02-25 14:48:04 -08:00
Aaron Prindle 60a5910f88 Added 9p server as well as minikube mount command 2017-02-25 10:08:45 -08:00
Matt Rickard b26f0aa66b Merge pull request #1154 from r2d4/svc-tests
Refactor service package and add test coverage
2017-02-24 13:19:07 -08:00
Dongsu Park 4eb9e92dff pkg: fix data race around KubeConfigFile
TestSetupKubeConfig fails when running "go test --race", because of
concurrent accesses from multiple goroutines.

```
WARNING: DATA RACE
Write at 0x00c4201cc4b8 by goroutine 16:
k8s.io/minikube/pkg/minikube/kubeconfig.TestSetupKubeConfig.func1()
    k8s.io/minikube/pkg/minikube/kubeconfig/config_test.go:103 +0x23a
testing.tRunner()
    /usr/local/golang/src/testing/testing.go:657 +0x107
```

To fix that, convert KubeConfigFile to an atomic value that stores
string. Callers should run helper functions, SetKubeConfigFile() and
GetKubeConfigFile() instead of direct access to the value.
2017-02-24 17:58:59 +01:00
Dongsu Park 6cf5ba7a28 pkg: fix data race around CommandToOutput
TestGetLocalkubeStatus fails when running "go test --race", because of
concurrent accesses from multiple goroutines.

```
WARNING: DATA RACE
Read at 0x00c420435378 by goroutine 43:
k8s.io/minikube/pkg/minikube/tests.(*SSHServer).Start.func1.1()
    k8s.io/minikube/pkg/minikube/tests/ssh_mock.go:122 +0x389

Previous write at 0x00c420435378 by goroutine 40:
k8s.io/minikube/pkg/minikube/cluster.TestGetLocalkubeStatus()
    k8s.io/minikube/pkg/minikube/cluster/cluster_test.go:359 +0x540
testing.tRunner()
    /usr/local/golang/src/testing/testing.go:657 +0x107
```

To fix that, convert CommandToOutput to an atomic value that stores
the map. Callers should run helper functions, SetCommandToOutput() and
GetCommandToOutput() instead of direct access to the value.
2017-02-24 17:58:59 +01:00
Dongsu Park e22b268f7f pkg: fix data race around HasASessionRequested
TestCreateSSHShell fails when running "go test --race", because of
concurrent accesses from multiple goroutines.

```
WARNING: DATA RACE
Read at 0x00c42025b730 by goroutine 42:
k8s.io/minikube/pkg/minikube/cluster.TestCreateSSHShell()
    k8s.io/minikube/pkg/minikube/cluster/cluster_test.go:523 +0x543
testing.tRunner()
    /usr/local/golang/src/testing/testing.go:657 +0x107

Previous write at 0x00c42025b730 by goroutine 49:
k8s.io/minikube/pkg/minikube/tests.(*SSHServer).Start.func1.1()
    k8s.io/minikube/pkg/minikube/tests/ssh_mock.go:95 +0x743
```

To fix that, convert HadASessionRequested to an atomic variable.
Callers should run helper functions, SetSessionRequested() and
IsSessionRequested() instead of direct access to the variable.
2017-02-24 17:58:10 +01:00
Aaron Prindle f247803779 Merge pull request #1146 from aaron-prindle/transfer-refactor
Refactored file transfer code to better abstract ssh
2017-02-23 14:07:01 -08:00
Andreas Kohn bba2ef86ee
Add the 'minikube' user to the 'system:masters' group 2017-02-23 14:20:15 +01:00
Matt Rickard b78fb926bc Merge pull request #1160 from r2d4/kubeconfig-tests
Add test coverage for SetupKubeConfig
2017-02-22 13:25:54 -08:00
Matt Rickard c4196b65be Add test coverage for SetupKubeConfig 2017-02-22 11:39:55 -08:00
Aaron Prindle 574c543f4a Refactored file transfer code to better abstract ssh 2017-02-22 09:46:51 -08:00
Aaron Prindle 68973786d6 Added test coverage for ParseSHAFromURL 2017-02-21 21:33:40 -08:00
Matt Rickard 213857032a Merge pull request #1156 from r2d4/client-tests
Add test coverage for pkg/minikube/machine
2017-02-21 10:26:38 -08:00
Matt Rickard 45e61ab75a Add test coverage for pkg/minikube/machine 2017-02-21 10:26:10 -08:00
Aaron Prindle 3d91f91ede Merge pull request #1159 from aaron-prindle/downloader-tests
Added unit tests to downloader.go
2017-02-21 10:17:57 -08:00
Matt Rickard e0a5dbc4f8 Add test coverage for GenerateSignedCert 2017-02-21 10:16:59 -08:00
Matt Rickard 69f0a9f99a Refactor service package and add test coverage 2017-02-20 11:24:36 -08:00
Aaron Prindle 6959aa0ce2 Added unit tests to downloader.go 2017-02-19 21:01:01 -08:00
Aaron Prindle 3433a3028c Added API Name as configuration option 2017-02-18 15:49:49 -08:00
Aaron Prindle ffcccbd646 Merge pull request #1145 from aaron-prindle/etcd-access
Change etcd to be accessible within pods
2017-02-17 15:41:44 -08:00
Aaron Prindle d3531c9eec Change etcd to be accessible within pods 2017-02-17 15:40:48 -08:00
Matt Rickard 88f8782d97 Merge pull request #1140 from r2d4/service-refactor
Refactor services into its own package
2017-02-17 15:39:36 -08:00
Matt Rickard 86b1fd1916 Refactor services into its own package
pkg/minikube/cluster has become too crowded with service related
functions.  I've moved these to their own package, which will make
updating client-go easier because everything will be in one place.

There is still a little bit of work to be done with making
pkg/minikube/cluster free of references to kubernetes packages
2017-02-17 09:58:22 -08:00
Davanum Srinivas 39df4cb543 Force libmachine to use Native Go SSH client
Some platforms looking up and finding the ssh executable can be
problematic, so let's just use the same Go based SSH everywhere.

Fixes #1086
2017-02-17 12:04:29 -05:00
Matt Rickard a125157f44 Detect and test against ISO changes
When changes are made to the ISO folder, rebuild and upload the newly
modified image.  Use this uploaded image as the default in the e2e test
binaries, so that the e2e test suite runs against the PR's changes.

TODO: Subsequent PRs (no changes to ISO) will still run against the
default version in the makefile.  We should figure out if we want to
always run tests against the "latest" image.
2017-02-14 13:42:20 -08:00
Matt Rickard 2410b268f7 Slim down driverGetter type
Remove unused driverName from this type
2017-02-13 10:58:09 -08:00
Aaron Prindle c418095c38 Added MINIKUBE_HOME env variable which sets .minikube directory 2017-02-09 11:07:44 -08:00
Matt Rickard d9355d89e7 Merge pull request #1074 from r2d4/release-iso
Add release-iso Makefile rule
2017-02-08 18:40:59 -08:00
Matt Rickard b9a115b3ae Add LocalClient to bypass RPC for drivers
This adds a new libmachine API implementation that skips RPC and instead
uses a vendored in driver directly.  This removes the need to download a
separate driver binary.  Currently, only the "core" drivers, and kvm are
supported as vendored in.  This means that xhyve is the only driver that
requires a separate binary for now.
2017-02-06 21:17:22 -08:00
Matt Rickard a080737eff Add release-iso Makefile rule
This also tracks the ISO version in the makefile and passes it with
ldflags to automatically bump the default version in the minikube
binary.
2017-02-03 12:01:32 -08:00
Matt Rickard 7ea9da0372 Merge pull request #1076 from dlorenc/iso
Bump the iso to 1.0.6
2017-02-02 14:25:25 -08:00
dlorenc e75daa5a8b Bump the iso to 1.0.6 2017-02-02 13:15:15 -08:00
Matt Rickard b638b101a2 Embed mock service interface from client-go
We use the default implementation by embedding fake.FakeServices which
implements ServiceInterface.
2017-02-02 10:56:51 -08:00
Matt Rickard 1fbd936b39 Move iso download funcs to interface for testing
Also reorg types found in cluster.go into types.go
2017-01-31 13:45:56 -08:00
Matt Rickard ceb25dfd43 Merge pull request #1054 from r2d4/meta-linter
Fixes from gometalinter
2017-01-31 11:58:34 -08:00
Matt Rickard dfdbc6a768 Fixes from gometalinter 2017-01-30 15:39:35 -08:00
Dan Lorenc d5febb60e5 Switch the default iso to v1.0.5, which I just built in Jenkins. 2017-01-30 13:34:09 -08:00
dlorenc d1accc36e2 Merge pull request #1048 from dlorenc/conncheck
Get rid of the default connchecker.
2017-01-27 10:20:09 -08:00
dlorenc 6b2d966bc6 Get rid of the default connchecker. 2017-01-26 13:42:14 -08:00
Matt Rickard a638cce9ba Check minimum disksize before creating minikube VM
We use docker/go-units for human readable disk sizes on the --disk-size
flag.  However, sometime a user use wrong syntax and specify a disk
size that they didn't mean.  Fixes #976
2017-01-19 11:55:03 -08:00
Matt Rickard e4df3abc6f Merge pull request #1015 from r2d4/addons-open
Fixes nil dereference on error and addons open
2017-01-19 11:40:27 -08:00
Matt Rickard 69c3b5b818 Fixes nil dereference on error and addons open
Some addons don't have a 'minikube addons open' endpoint defined, so
don't retry and wait for them.
2017-01-17 11:50:25 -08:00
Aaron Prindle 628835964f Updated minikube-iso to v1.0.3 to include a fix for Windows 2017-01-17 11:47:14 -08:00
Steve Sloka ae2ae8f23c Rename awsecr-creds to registry-creds & update version which now supports Google Registry 2017-01-13 10:54:30 -05:00
Jimmi Dyson 23a1e4ada4
Allow setting string slices in extra config 2017-01-12 12:10:53 +00:00
Matt Rickard 7e313451c1 Merge pull request #977 from r2d4/feature-gates
Support enabling alpha features with feature gates
2017-01-10 10:55:09 -08:00
Matt Rickard 89cdd44197 Support enabling alpha features with feature gates
This sets the feature gates on every kube-system component (apiserver,
kubelet, etc.)

Fixes #896
2017-01-09 13:55:39 -08:00
Matt Rickard 1c962e7e8f Update default ISO to v1.0.2 2017-01-09 11:28:24 -08:00
dlorenc d5c01e7ab3 Add a PodCIDR for kubenet. 2017-01-05 14:50:28 -08:00
dlorenc 903de1de51 Merge pull request #961 from dlorenc/enable
Add 'enable' to the systemd commands for localkube.
2017-01-05 14:16:04 -08:00
dlorenc df3395cef9 Also declare that localkube depends on the network being active. 2017-01-05 13:32:54 -08:00
Dan Lorenc 391b927712 Add 'enable' to the systemd commands for localkube. 2017-01-05 09:46:17 -08:00
Brandon L. Gauthier d28cea779d Added --keep-context flag for 'minikube start' 2017-01-03 17:56:06 -05:00
Xinbo Weng f91f428634 fix duplicated 'the' and some 'a/an' errors
Signed-off-by: Xinbo Weng <xihuanbo_0521@zju.edu.cn>
2016-12-23 19:46:04 +08:00
Matt Rickard 427bde79ca Change default ISO to minikube-iso v1.0.1 (buildroot) 2016-12-20 15:34:07 -08:00
dlorenc f8d4a1c429 Merge pull request #935 from dlorenc/cfgtest
Add some unit tests for config.
2016-12-19 10:47:20 -08:00
dlorenc 18bca6f04c Merge pull request #934 from dlorenc/tests
Add some tests to our cert generation.
2016-12-19 10:47:04 -08:00
Dan Lorenc eef12a1403 Add some unit tests for config. 2016-12-17 11:08:44 -08:00
Dan Lorenc 17b7e8ae72 Add some tests to our cert generation. 2016-12-17 09:27:08 -08:00
Chris Broadfoot 922db9a8c6 pkg/minikube: fix uses of errors.Wrapf 2016-12-15 22:28:39 -08:00
dlorenc 01a029dc26 Add a cert generator with a larger timeout. 2016-12-15 13:36:45 -08:00
Aaron Prindle ab8e852e74 Merge pull request #838 from aaron-prindle/localkube-in-systemd
WIP Working on adding localkube to minikube-iso.  Need to add ability to …
2016-12-13 13:07:35 -08:00
Matt Rickard 12c5973fbf Manual changes for k8s v1.5.0-beta.1
The internal k8s client has now been taken out of the kubernetes repo
and is fully at k8s.io/client-go.  Minikube should only reference the
client-go library, while Localkube can continue to reference both
internal k8s components as well as client-go.

make gendocs
2016-12-13 11:21:44 -08:00
Aaron Prindle 8ebdafa3ce Working on adding localkube to minikube-iso. Have added check for which iso is running to support both isos. Added localkube restarting. 2016-12-13 11:15:57 -08:00
Steve Sloka 7e989d1ce2 Enable awsecr-creds addon which will setup credentials to AWS ECR for downloading docker images 2016-12-09 08:46:05 -05:00
Matt Rickard f1fb26adc6 Add ingress controller to addons
This uses a custom version of the ingress controller.  We should move
it over to the official one when it is released.
2016-12-08 12:01:31 -08:00
Matt Rickard f6e3e12655 Group addon yamls into folders 2016-12-07 11:28:22 -08:00
Dan Lorenc bd0acdf480 Fix the type referenced for PortRange. 2016-11-23 09:04:38 -08:00
David Lyle 3a3b3f6a32 Update logs pkg reference 2016-11-22 16:15:35 -07:00
dlorenc 1868bafeb0 Merge pull request #837 from dlorenc/pr
Add PortRange to the extra-config parser.
2016-11-22 10:39:12 -08:00
dlorenc f72dadbe03 Add PortRange to the extra-config parser. 2016-11-22 09:56:55 -08:00
Matt Rickard 452a1e52c2 Merge pull request #833 from r2d4/retry
Retry for configureAuth on minikube start
2016-11-21 14:09:45 -08:00
Matt Rickard b72efef48d Retry for configureAuth on minikube start
Sometimes the docker daemon isn't ready and on a restart and libmachine
times out while trying to reach it.  This retries when it isn't ready.

This fixes timeout problems in our virtualbox integration tests.
2016-11-21 13:32:34 -08:00
Aaron Prindle 3fe4ef3e83 Added heapster to set of addons. Need to add test and repackage things to remove duplicated code. 2016-11-18 17:36:54 -08:00
Aaron Prindle 0e33746e1d Merge pull request #783 from aaron-prindle/kubectl-hint
Added check for kubectl to each command (in root.go)  This prompts user
2016-11-09 15:17:25 -08:00
Aaron Prindle 5789a04c4f Updated notification text to include minikube config command 2016-11-07 13:52:50 -08:00
Aaron Prindle 1960618ae1 Added check for kubectl to each command (in root.go) This prompts user
with kubectl install one-liner for latest kubectl version.  Also added
config for enable/disable.  Still need to add tests.
2016-11-03 13:26:06 -07:00
Dan Lorenc e8d8cc0ba3 Add support for net.IP to the configurator. 2016-10-28 14:33:36 -07:00
Alexander Kanevskiy 2e12253a11 fix usage of errors.Wrap()
Format strings are not supported by errors.Wrap, so cleanup
them from error output where it is not needed.
2016-10-28 15:13:06 +03:00
Jimmi Dyson d80b108313 Merge pull request #765 from dlorenc/buildrootenv
Add docker-env options to the buildroot provisioner.
2016-10-28 10:09:58 +01:00
dlorenc d23a7a53a8 Add docker-env options to the buildroot provisioner. 2016-10-27 15:07:34 -07:00
Jimmi Dyson c057dede1f
Refactor multiple service ports handling after service list command added 2016-10-27 16:39:03 +01:00
Jimmi Dyson b8cdbd28f5
Remove unused interface 2016-10-27 16:38:33 +01:00
Aaron Prindle bc1f5db71a Added functionality to read/open multiple ports via service cmd. Also
updated tests and help text for multiple ports.  Also updated docs.
2016-10-26 15:14:18 -07:00
dlorenc 55fd539300 Merge pull request #728 from jimmidyson/service-list
Add service list subcommand
2016-10-26 13:10:43 -07:00
Matt Rickard 80905d7fbd Merge pull request #738 from r2d4/dns
Remove vendored kube2sky, Add kube-dns as cluster addon
2016-10-26 10:16:12 -07:00
Jimmi Dyson 90c0ea8ca6
Extra log when things are being downloaded 2016-10-26 15:01:05 +01:00
Jimmi Dyson badf04b4d2
Add service list subcommand 2016-10-26 14:43:08 +01:00
Jimmi Dyson 46619e68f3
Add progress bars for downloads 2016-10-26 14:16:37 +01:00
Jimmi Dyson 2d45e57cf5
Switch to go-download for downloading 2016-10-26 14:04:37 +01:00
Aaron Prindle f478292cd2 Merge pull request #722 from aaron-prindle/validate-service-cmd
Validate the service for the minikube service cmd
2016-10-25 14:40:44 -07:00
Matt Rickard 7560384fc8 Remove vendored kube2sky, Add DNS as cluster addon
Removes the vendored in kube2sky built into the minikube binary and
replaces the dns solution with kube-dns cluster addon.  This will allow
users to swap out DNS implementations by simply turning off the
kube-dns addon.
2016-10-25 14:00:51 -07:00
Aaron Prindle 8b5d027fd3 Validate the service for the minikube service cmd. 2016-10-25 13:45:26 -07:00
dlorenc 19e44dcf33 Merge pull request #745 from borisroman/feature/kvm_network
Add option to specify network name for KVM.
2016-10-24 12:37:43 -07:00
dlorenc 01a699b089 Remove static UUID 2016-10-24 09:15:25 -07:00
Boris Schrijver e717f5f84a Add option to specify network name for KVM. 2016-10-24 16:22:32 +02:00
dlorenc 129f565611 Merge pull request #719 from aaron-prindle/hyperv-switch-flag
Added hyperv virtual switch configuration flag for hyperv driver
2016-10-21 10:03:23 -07:00
Aaron Prindle 7c6c0cfe68 Merge pull request #736 from aaron-prindle/fix-addons-cmd
Removed checks that were causing addons cmd to fail after switching t…
2016-10-21 09:59:05 -07:00
dlorenc 3a61ad6ab2 Merge pull request #731 from dlorenc/env
Add support for the KUBECONFIG env var during 'minikube start'.
2016-10-21 09:50:10 -07:00
Aaron Prindle c2561c861a Removed checks that were causing addons cmd to fail after switching to validation/callback format 2016-10-21 09:19:24 -07:00
Aaron Prindle f2f53e946e Added hyperv virtual switch configuration flag for hyperv driver. Also
updated docs.
2016-10-20 17:11:31 -07:00
dlorenc 20e6b2a56f Add support for the KUBECONFIG env var during 'minikube start'. 2016-10-20 11:41:11 -07:00
Jimmi Dyson 3e82478373
Add format flag to service command 2016-10-19 19:52:33 +01:00
Matt Rickard 0e7ff379d4 Move addon-manager to deploy/addons, upgrade v5.1 2016-10-18 12:09:03 -07:00
Jimmi Dyson 3c031c06cc Merge pull request #696 from jimmidyson/atomic-file-cache
Use temp file for cached downloads & rename to handle interrupted downloads gracefully
2016-10-18 09:30:32 +01:00
dlorenc 99b1e89b98 Merge pull request #705 from jimmidyson/docker-env-ipv6
Handle VM IPv6 addresses in docker env
2016-10-17 11:38:27 -07:00
Jimmi Dyson 47566d171a
Handle VM IPv6 addresses in docker env 2016-10-17 14:33:27 +01:00
Jimmi Dyson 82cb28918f
Use text/template for buildroot provision template 2016-10-17 10:00:43 +01:00
Jimmi Dyson 4a4a66b017
Use temp file for ISO download & refactor hashing to calculate during streaming download 2016-10-14 23:22:56 +01:00
Jimmi Dyson 3b5498bc48
Use temp file for cached downloads & rename to handle interrupted downloads gracefully 2016-10-14 21:37:41 +01:00
Matt Rickard 06a4cc6f35 Pass disk-size flag to VMWareFusion driver
Fixes #697
2016-10-14 13:33:17 -07:00
Jimmi Dyson 097505b540
Add config view subcommand 2016-10-14 19:46:59 +01:00
Matt Rickard 4cfca59c5c Add RetryableError for the Retry util
This way we can selectively retry the errors that are caused by some
temporary or ephemeral condition such as the pods not being up yet.
2016-10-13 13:53:38 -07:00
Matt Rickard bc5fd9b560 Increase memory and cpu defaults 2016-10-13 12:24:19 -07:00
Jimmi Dyson c29cd3bd64 Merge pull request #683 from jimmidyson/default-storageclass
Add DefaultStorageClass to admission controllers
2016-10-12 20:32:56 +01:00
Jimmi Dyson 2085b894be
Upgrade to Kubernetes 1.4.1 2016-10-12 14:59:40 +01:00
Jimmi Dyson 7b6a113f69
Add DefaultStorageClass to admission controllers 2016-10-12 13:46:00 +01:00
Aaron Prindle 2d2b484a22 Have working minikube addons command w/ enable, disable, delete. Also
updated docs.
2016-10-11 11:08:55 -07:00
Ajanthan b6b6fa1cb2 Validating localkube version while constructing download url (#663) 2016-10-07 10:45:27 -07:00
aprindle 7e78514174 Added opt in to stackdriver error reporting 2016-10-03 09:22:30 -07:00
dlorenc 8611a455ca Initial configurator commit. 2016-09-30 10:05:14 -07:00
dlorenc b7523e4400 Add a default NodeEvictionRate 2016-09-29 16:00:26 -07:00
dlorenc 311cba971d Manual merge fix for 1.4 to build. 2016-09-29 15:57:33 -07:00
dlorenc f6497556fb Add method to provision mock. 2016-09-27 16:53:00 -07:00
Dan Lorenc 31b2b9e7ae Check localkube SHAs.
Also add notes to the RELEASING.md doc, and a make target to test the release.
2016-09-27 10:59:02 -07:00
Aaron Prindle 378e88b4a9 Changed docker-machine and sshutil to support hostnames with colons in them, for example ipv6 addresses 2016-09-23 13:32:25 -07:00
dlorenc 5cf2a81121 Merge pull request #620 from dlorenc/shacheck
Add a test for checking SHAs.
2016-09-23 11:11:11 -07:00
dlorenc 2a877a522b Add a test for checking SHAs. 2016-09-23 10:54:14 -07:00
dlorenc 47f58627a3 Always use the minikube context when creating a client. 2016-09-22 08:30:47 -07:00
dlorenc edbaf1a8bf Cut v0.10.0, also bump the ISO URL. 2016-09-15 11:53:02 -07:00
Aaron Prindle 3fcfb67f58 Added error reporting functionality and testing. 2016-09-13 11:18:25 -07:00
dlorenc 02ca33a869 Enable dynamic provisioning. 2016-09-09 10:02:11 -07:00
Sergiusz Urbaniak 3945c3bffb
localkube: add rkt, and CNI support 2016-09-09 13:48:22 +02:00
Aaron Prindle dab3190fef Changed minikube code to use pkg/errors, this is to improve error
messages to allow for stacktraces for future error-reporting. Added
error messages to .Wrap errors.
2016-09-08 14:59:35 -07:00
Aaron Prindle 6017e34d4d Fixed integration tests, adding test output to ssh mock, change help text to use multi-line string and
updated docs.
2016-09-08 13:13:15 -07:00
Aaron Prindle 3ef433d259 Added localkube status to minikube status. Also added format flag to
configure status output.  Also updated docs.  Also added godoc url to
help text for status.
2016-09-07 14:18:19 -07:00
Dan Lorenc 6219286cae Cleanup some "go vet" and "go lint" errors.
We should automate these checks...
2016-09-06 20:47:12 -07:00
dlorenc 12dfb47bca Merge pull request #545 from r2d4/config-set
minikube config get/set/unset cmd
2016-09-06 20:32:17 -07:00
Matt Rickard a8dbc18b51 Add minikube config get/set/unset commands
This introduces the minikube config get/set/unset command. At a basic level, it allows a more user friendly interface for setting minikube config values, but it also allows us to run validations and callbacks before and after the values have been set.
2016-09-06 15:14:28 -07:00
Jimmi Dyson 719bbaf86b
Ensure node IP is routable address 2016-09-05 14:33:27 +01:00
dlorenc a4e767a7a4 Merge pull request #546 from jimmidyson/xhyve-hostname
Set hostname to minikubevm for xhyve driver
2016-09-02 13:35:08 -07:00
Jimmi Dyson 6fe48afbe7
Rename VM to simple minikube 2016-09-02 19:53:41 +01:00
Jimmi Dyson c9ce60fcc9
Set hostname to minikubevm for xhyve driver 2016-09-02 16:26:44 +01:00
Vic Iglesias b1e1b2c151 Enable host path provisioner 2016-09-01 14:41:04 -07:00
Aaron Prindle 3229aab37d Added .minikube/addons directory where users can put addons they would
like initialized in their minikube vms.  Refactored asset transfer to
VM.  Refactored code to use a base asset.  Made file length checking use
.Stat(). Added constructors for FileAsset and MemoryAsset.
2016-08-29 10:59:41 -07:00
Matt Rickard 7570ae1122 Ensures that we get the same IP between start/delete
The xhyve driver added support for the UUID flag in xhyve
https://github.com/zchee/docker-machine-driver-xhyve/pull/133

Fixes https://github.com/kubernetes/minikube/issues/516
2016-08-24 11:27:46 -07:00
dlorenc 59ad726e6c Merge pull request #506 from dlorenc/isovalidate
Add ISO checksum validation.
2016-08-24 09:34:05 -07:00
Jimmi Dyson abbb0f1469
Add hyperv support 2016-08-24 16:16:07 +01:00
dlorenc 8c6ae71eb6 Add ISO checksum validation. 2016-08-20 17:33:50 -07:00
Aaron Prindle 14dca26a09 Cutting v0.8.0 release 2016-08-17 11:40:14 -07:00
dlorenc 28132517ed Merge pull request #484 from tsl0922/regist-mirror
Add registry-mirror option to minikube start
2016-08-16 11:04:23 -07:00
dlorenc 8953283ac6 Merge pull request #475 from jimmidyson/docker-api-version
Add DOCKER_API_VERSION to docker-env command
2016-08-15 12:57:03 -07:00
Shuanglei Tao 641910d8a8 Add registry-mirror option to minikube start 2016-08-13 22:55:48 +08:00
Matt Rickard bc363cfdb9 Add env variables for viper controlled vars
Minikube will now read from env variables with the MINIKUBE_ prefix.
These variables will be read on every viper.Get() and will overwrite default
variables.  When we add binding to pflags, flags will overwrite env
variables.  At this time, only notification settings are controlled by
viper.
2016-08-12 13:25:04 -07:00
dlorenc 4506f4fa1d Merge pull request #472 from r2d4/iso-check
Check HTTP Response status when trying to download minikube.iso
2016-08-12 09:17:07 -07:00
Matt Rickard 7105a9bc98 Refactoring conditional block 2016-08-11 21:40:26 -07:00
dlorenc d799222e35 Merge pull request #428 from aaron-prindle/dashboard-wait
Have working minikube service & minikube dashboard wait until ready functionality.
2016-08-11 15:48:45 -07:00
Aaron Prindle c82cd94f14 Added unit tests for CheckEndpointReady. Also refactored code, cleaned
error messages, fixed gofmt, inlined/compacted structs in test, and
changed output to os.Stderr.
2016-08-11 15:16:24 -07:00
Jimmi Dyson 823dabf5f9
Add DOCKER_API_VERSION to docker-env command 2016-08-11 15:42:17 +01:00
Matt Rickard 39a6b586da Check HTTP Response status when trying to download minikube.iso
Check the response so that we don't actually download an error page or
something other than the ISO we're looking for.
2016-08-10 20:17:50 -07:00
Aaron Prindle 3f478fa025 Having working minikube service & minikube dashboard wait until ready
functionality using endpoints.
2016-08-10 10:04:24 -07:00
Matt Rickard 551a85b233 Adding a Virtio9p mount for /Users with xhyve
This feature is enabled in v0.2.3 of the docker xhyve driver
Enabling this by default on cluster_darwin

This resolves issue #423
2016-08-09 10:30:47 -07:00
Jimmi Dyson 4185dc148c Merge pull request #463 from dlorenc/etcd
Actually store registered etcd listeners.
2016-08-08 21:40:55 +01:00
Dan Lorenc 4cfbc17dcb Actually store registered etcd listeners. 2016-08-08 13:04:36 -07:00
Aaron Prindle 33063656fc Added appropriate methods to be part of localkubeCacher. Removed unused methods. 2016-08-08 11:58:57 -07:00
Aaron Prindle d28adc969d Fixed file:// URIs to work properly with local localkube and --kubernetes-version flag 2016-08-08 11:51:25 -07:00
Aaron Prindle 976eeeb12e Added unit tests which cover localkube caching scenarios. Refactored
code to use localkube_caching.go and localkubeCacher.
2016-08-08 11:51:25 -07:00
Aaron Prindle 405453758e Added localkube caching functionality. Also cleanup up private/public
functions in cluster.go, added v1.3.3 to k8s_releases.json and fixed
link in LOCALKUBE_RELEASING.md.  Fixed TestUpdatedKubernetesVersion to
use tmp dir as caching is now used for localkube.
2016-08-08 11:50:57 -07:00
dlorenc 2cdab03e53 Merge pull request #439 from alexbrand/host-cidr
Add ability to specify CIDR for Virtualbox minikube
2016-08-08 10:59:36 -07:00
Dan Lorenc b85a90702a Return a MultiError from retry. 2016-08-06 12:29:56 -07:00
Jimmi Dyson f55fb58d8d Merge pull request #451 from aaron-prindle/fix-file-uri
Fixing file:// uri issue for --iso-url flag
2016-08-04 17:30:56 +01:00
Aaron Prindle c898990225 Fixing file:// uri issue for --iso-url flag 2016-08-04 09:17:29 -07:00
Aaron Prindle 1a89345b4c Added tests for GetLocalkubeDownloadURL. 2016-08-03 08:58:18 -07:00
abrand 5838c7d833 Add ability to specify CIDR for Virtualbox minikube 2016-08-02 20:06:37 -04:00
Aaron Prindle 0b1cfce102 Refactored localkube url/asset code, fixed url.Parse code, updated flag
help message to add URI information, updated docs, fixed unused vars and removed unneeded comments
2016-07-29 15:27:09 -07:00
Aaron Prindle b3fe5faae6 Cleaned up start flags, added more robust URL checking for localkube
flag URL and added check to prepend 'v' to version # if it is missing
2016-07-28 12:33:34 -07:00
Aaron Prindle bd4e244ce8 Updated docs. Added retrying for the localkube download. 2016-07-28 12:33:34 -07:00
aprindle 53e80a9c6f Changed kubernetes-version to take k8s version as input (as well as
url) and to copy files from host to the vm instead of curl within vm.
Also made it so that sshutil.Transfer is done via a Reader.
2016-07-28 12:33:34 -07:00
aprindle d73082171c Cleanup up comments, added ssh retry, fixed permissions and added
default Kubernets version value.
2016-07-28 12:33:34 -07:00
aprindle bc74b8596f Updated documentation to reflect additional flag to minikube start,
updated tests
2016-07-28 12:33:34 -07:00
aprindle bf3b82e5ce Working kubernetes/localkube versioning via a flag and tests 2016-07-28 12:33:34 -07:00
Jimmi Dyson 4bc1e1d6a0
Specify supported drivers per platform 2016-07-28 09:51:37 +01:00
Jimmi Dyson da25b86a70
Ensure file paths have OS path separators but URIs contain only forward slashes 2016-07-27 13:49:01 +01:00
abrand 1540301428 Fix home directory on windows 2016-07-26 22:47:09 -04:00
dlorenc 587bf60c37 Switch the DNS etcd port from 9090. 2016-07-25 14:59:34 -07:00
Jimmi Dyson 22bac3210b Merge pull request #386 from ascheman/feature/insecure-registry
Add insecure-registry option to minikube start
2016-07-22 10:45:04 +01:00
Gerd Aschemann 82f5cb0a08 Fix source code formatting via gofmt (kubernetes/minikube#385) 2016-07-22 10:00:48 +02:00
Gerd Aschemann 5b2655f1f3 Add insecure-registry option to minikube start (cf. kubernetes/minikube#385) 2016-07-22 01:38:17 +02:00
dlorenc 6fcf2cda6d Merge pull request #362 from aaron-prindle/cache-files
Have iso caching working
2016-07-21 11:23:39 -07:00
Aaron Prindle 3e06673fc5 Refactored iso caching code 2016-07-21 09:53:52 -07:00
Jimmi Dyson a2f789590b
Enable all available APIs 2016-07-21 15:39:37 +01:00
Aaron Prindle 072991e2e5 Have iso caching working 2016-07-19 15:58:25 -07:00
Dan Lorenc c6b2649966 Add a flag to minikube start to allow passing environment variables to Docker. 2016-07-18 10:27:09 -07:00
Dan Lorenc e3f10146a6 Fix typo in start command. 2016-07-16 11:31:36 -07:00
Dan Lorenc 639dd10801 Minor refactor in cluster.go. Also improve error message. 2016-07-13 17:29:21 -07:00
Jimmi Dyson f602020f02
Create long lived CA certificate 2016-07-12 15:59:38 +01:00
Jimmi Dyson 4488219180
Make disk size configurable 2016-07-10 23:43:54 +01:00
dlorenc 4eff13c066 Merge pull request #301 from dlorenc/logs
Move logs to /var/lib/localkube.
2016-07-08 17:51:06 -07:00
dlorenc 6f4b8dd483 Merge pull request #300 from jimmidyson/kube-api-port
Switch API server to port 8443
2016-07-08 16:18:00 -07:00
Jimmi Dyson 7d5aca9fe3
Switch API server to port 8443 2016-07-08 23:38:27 +01:00
Jimmi Dyson 8c7154da7a
Redirect localkube logs in sudo 2016-07-08 22:23:21 +01:00
Dan Lorenc 63c8468d12 Move logs to /var/lib/localkube. 2016-07-08 12:41:19 -07:00
Jimmi Dyson 892a116dc3
Better error message for services with no NodePort 2016-07-08 18:46:35 +01:00
dlorenc 9fa002d573 Merge pull request #277 from aaron-prindle/get-kubernetes-version
Added get_kubernetes_versions command and tests
2016-07-07 13:38:47 -07:00
Dan Lorenc d65040fffb Fix a typo in the notification text. 2016-07-07 07:22:05 -07:00
Dan Lorenc 22dccc781d Add some logging to cert generation. 2016-07-07 07:21:51 -07:00
aprindle 216077d8b8 Added get-k8s-versions command and tests. 2016-07-06 14:15:38 -07:00
dlorenc 0a71dd290d Merge pull request #272 from dlorenc/release
Bump to v0.5.0, add release notes and increment the releases.json.
2016-07-06 10:34:50 -07:00
Dan Lorenc b68c957347 Bump to v0.5.0, add release notes and increment the releases.json. 2016-07-06 09:59:59 -07:00
dlorenc 57a865d329 Merge pull request #267 from jimmidyson/service-command
Add service command
2016-07-06 09:16:21 -07:00
dlorenc 5076ef407a Merge pull request #248 from jimmidyson/xhyve
Add xhyve driver support
2016-07-04 08:10:16 -07:00
Jimmi Dyson 44b2d9ce20
Add service command, copied & refactored from dashboard command 2016-07-04 15:08:27 +01:00
dlorenc aa821ac4ba Merge pull request #252 from jimmidyson/node-ip
Do not override node hostname to ensure node IP is correct in node resource addresses
2016-07-02 16:05:51 -07:00
Jimmi Dyson 759f906cf1
Handle home path on Windows 2016-07-02 21:30:36 +01:00
Jimmi Dyson 4b0f517600
Add xhyve driver support 2016-07-02 21:14:43 +01:00
Jimmi Dyson 29e492e918
Do not override node hostname to ensure node IP is correct in node resource addresses 2016-07-01 22:38:55 +01:00
Jimmi Dyson a738a0f5ad
Add kvm driver support 2016-06-30 18:52:45 +01:00
Steve Sloka 95edd89399 Added flag to allow the number of CPU's to be specified as flag to start command 2016-06-27 15:32:16 -04:00
dlorenc 79b63d797c Bump to iso version 0.4.0 2016-06-27 09:22:25 -07:00
dlorenc 75a4b05407 Merge pull request #226 from dlorenc/gcs
Move release API check from github to GCS.
2016-06-27 09:22:04 -07:00
Dan Lorenc 234a5049e7 Move release API check from github to GCS.
Github has rate-limiting on this URL, which causes issues for tests.
Moving to GCS also allows us to decouple Github releases from auto-updates.
2016-06-26 11:33:33 -07:00
dlorenc 3634c85e2c Regenerate docker certs on startup. 2016-06-26 10:48:15 -07:00
aprindle 995735ee1d Refactored tests/methods to use io.Writer, added comments to tests,
added additional error checking in getLatestVersionFromURL, and fixed
formatting issue in notification string
2016-06-21 11:05:30 -07:00
aprindle 0ea7714b61 Added message in update notification explaining how to disable the update notifier 2016-06-17 11:20:38 -07:00
aprindle f5a56b1d60 Finished tests for update notifier 2016-06-14 13:00:01 -07:00
aprindle dd875f614e Have update notifier working, need to add tests 2016-06-14 13:00:01 -07:00
aprindle 03cca006ee Added --memory flag to minikube start so that users can configure the ram of the vm 2016-06-13 18:13:53 -07:00
Brandon Philips 53ee8642f8 cluster: add support for vmwarefusion driver
Add support for the vmwarefusion driver which is greatly more stable on
OSX. Also, document it in the README as an option.
2016-06-11 19:47:11 -07:00
Dan Lorenc e46b0d9cb0 Update k8s. 2016-06-10 09:43:46 -07:00
dlorenc ac14eff554 Move the addon-manager and dashboard configuration from the iso to minikube.
Minikube now copies these into the VM, just like it copies in localkube.
New ISOs will not contain these files, but this is compatible with the existing ISO
because minikube will overwrite existing files.
2016-06-09 15:35:09 -07:00
aprindle 1c861598cf Fixed logging issue due to glog flags beings set in kubernetes api 2016-06-07 15:51:50 -07:00
aprindle adf5fc48fa Added dashboard cmd to minikube. Also added dependencies via godep.
In the future will add feature to wait for dashboard to start and then
display if it is not running yet.
2016-06-07 11:43:47 -07:00
aprindle eee920bae4 Updated Dockerfile to get docker version 1.11.1 for the iso file
Updated README for iso testing
Updated DefaultIsoUrl to minikube-0.3
2016-06-04 17:22:31 -07:00
Dan Lorenc 6054d1da21 Bump the ISO URL. 2016-06-03 11:16:48 -07:00
Dan Lorenc 94aca79782 Wait a few seconds for the cluster to become healthly. 2016-06-01 16:41:07 -07:00
dlorenc 0ff6bbfa17 Add a retry utility to util, and use it to retry cluster creation.
This fixes the phantom errors we see on ubuntu that are fixed by rerunning start.
2016-06-01 13:53:09 -07:00
Lucas Käldström cee0afa4eb Merge pull request #147 from dlorenc/iptables
Set the proxy mode to iptables.
2016-06-01 22:36:02 +03:00
Dan Lorenc 34ad3b877c Set the proxy mode to iptables.
This passes all conformance tests that pass with the other mode.
2016-06-01 09:16:34 -07:00
aprindle 44c3a6a126 Adding logs command integration tests 2016-06-01 09:05:07 -07:00
dlorenc a621681e1b Unmark the DNS Service and Endpoint as cluster-services.
This label causes the addon-manager to delete them. We can't let the addon-manager
create these either, because it doesn't support endpoints.
2016-05-31 14:28:32 -07:00
Lucas Käldström 45c1dedf4f Merge pull request #138 from dlorenc/dnsglog
Switch logging in dns.go to glog.
2016-05-31 22:05:02 +03:00
aprindle a917beaee2 Have ssh command working and unit-test passing. Also changed log->glog in ssh_mock. 2016-05-31 10:02:33 -07:00
dlorenc f15f8a4366 Switch logging in dns.go to glog. 2016-05-31 09:52:16 -07:00
Dan Lorenc c1784b0054 Merge branch 'localkube_commands' of https://github.com/luxas/minikube into luxas-localkube_commands 2016-05-28 12:41:45 -07:00
Dan Lorenc a76b9b6781 Always logtostderr in localkube. 2016-05-28 10:50:42 -07:00
Lucas Käldström a62e9e5ca8 Removed localkube start and version commands in favor for starting as default and using version as a flag. Also the version is now set my the Makefile 2016-05-28 17:50:36 +03:00
Dan Lorenc abca78dfde Allow glog flags in localkube. 2016-05-27 15:55:16 -07:00
aprindle 778ae79a26 Added glog in place of log.*-and-fmt.Error* for cmd/minikube,
cmd/localkube, pkg/minikube and pkg/localkube
2016-05-27 12:48:25 -07:00
Dan Lorenc 01b76efc7f Configure capabilities explicitly before starting localkube.
There's a race condition in the current capability initialization. These
can only be configured once per binary, so if the APIServer goroutine
sets it first the kubelet goroutine can never change this value.
2016-05-27 11:10:38 -07:00
Dan Lorenc a5f0ecb9df Add missing sudo to the stop command. 2016-05-27 09:52:32 -07:00
aprindle 706f974751 finished logs functionality and tests 2016-05-27 09:16:18 -07:00
dlorenc 941933179f Merge pull request #113 from luxas/static_localkube
Static localkube and some other things
2016-05-26 09:30:32 -07:00
Lucas Käldström 00d4152313 Rename some constants in constants.go to Default..., and break out more constants 2016-05-25 23:25:49 +03:00
Lucas Käldström 1a3ef791f9 Add a version command to minikube too 2016-05-25 23:24:12 +03:00
dlorenc d8e12ef42b Make sure we stop the localkube binary before starting another instance.
This makes "minikube start" re-entrant.
2016-05-25 13:05:30 -07:00
Lucas Käldström 647124b7c7 Merge pull request #111 from dlorenc/wait
Fix a flake in sshutil.
2016-05-25 22:19:21 +03:00
Lucas Käldström 9be5be38b9 Merge pull request #109 from dlorenc/isourl
Switch to using a versioned ISO url.
2016-05-25 22:18:03 +03:00
Dan Lorenc 1d6eff6d7a Include the cluster local IP. This enables the dashboard to work. 2016-05-25 10:48:56 -07:00
dlorenc a8b12f7d78 Switch to using a versioned ISO url. 2016-05-25 08:43:13 -07:00
Dan Lorenc 91037931a4 Fix a flake in sshutil.
We have to wait for the copy to finish before returning, otherwise the readers might go out of scope.
https://travis-ci.org/kubernetes/minikube/builds/132822322
2016-05-25 07:01:20 -07:00
Dan Lorenc 2858ff3b3e Check boilerplate in all files.
Also fix misisng boilerplate.
2016-05-24 21:57:16 -07:00
Dan Lorenc e5c3564f9e Allow privileged pods. 2016-05-23 18:12:52 -07:00
aprindle 8f1c2e0647 added env functionality and tests 2016-05-23 14:18:25 -07:00
dlorenc 0552f504dd Update k8s.io components to efc5bbc9e.
A manual change was required in kube2sky.go.
Updates were required in appc/spec and a few other libraries.
2016-05-23 11:27:28 -07:00
Dan Lorenc 43f5851e6d Fix race condition in cluster setup.
We now explicitly generate certs before starting the cluster.
2016-05-22 14:21:10 -07:00
dlorenc cae9bc41ab Fix bug in start.
We have to call save after start, because the IP/port might change.
2016-05-19 14:40:56 -07:00
Lucas Käldström 2d459dfecd Merge pull request #82 from dlorenc/security
Enable SecurityContext features.
2016-05-16 20:58:12 +03:00
dlorenc b0440fc9c1 Merge pull request #73 from ethernetdan/kubeconfig
Setup kubeconfig on cluster start
2016-05-16 08:44:46 -07:00
Dan Lorenc 9379c4360d Enable SecurityContext features. 2016-05-15 18:47:47 -07:00
Lucas Käldström 50b676dd4b Merge pull request #75 from dlorenc/isourl
Make the ISO url configurable for testing new ISO builds.
2016-05-14 21:46:55 +03:00
Dan Lorenc 7d39206842 Fix test, also attempt to fix travis. 2016-05-14 11:18:13 -07:00
Dan Lorenc a7fd82e28a Unhide flag. 2016-05-14 10:35:44 -07:00
dlorenc cac6d07a5d Make the ISO url configurable for testing new ISO builds.
Also delete the old flag, since it's unused.
2016-05-13 15:15:08 -07:00
dlorenc 1884f8acf1 Blow away godeps.json, re "godep save". 2016-05-13 14:55:15 -07:00
dlorenc e7fb68b590 First attempt at updating k8s. 2016-05-13 14:05:27 -07:00
Dan Gillespie 4b5c89486f fixed kubeconfig test 2016-05-13 13:24:38 -07:00
Dan Gillespie 4194466d62 added license 2016-05-13 12:40:29 -07:00
Dan Gillespie b5b5b331bf working kubeconfig setup 2016-05-13 12:25:03 -07:00
Dan Gillespie ff7cb9ae83 add kubeconfig tests 2016-05-13 11:34:13 -07:00
Dan Gillespie b1ebe65c1d added kubeconfig writing and reading 2016-05-13 09:49:06 -07:00
Dan Lorenc 03f22fab94 Transfer the built localkube binary to the VM.
Also cleanup the Makefile quite a bit. We not build localkube in docker on mac,
then use go-bindata to pack it up. Users will need go-bindata on their paths to build now,
though.
2016-05-12 11:47:57 -07:00
Dan Lorenc 5eaae409aa Working build, scp of localkube to the VM. 2016-05-12 10:12:34 -07:00
Dan Lorenc 92d0c94d7b Initial SSH transfer commit. 2016-05-11 23:55:34 -07:00
Dan Lorenc a3fee8fd40 Remove unused portions of GenerateSelfSignedCert 2016-05-11 16:50:27 -07:00
Dan Lorenc 91c9898017 Undo modifications to the vendor directory, getting this upstreamed will be harder than I thought. 2016-05-11 16:17:38 -07:00
Dan Lorenc 4ed427b6ff Fix certificate handling.
Start now outputs the correct commands
We add all the IPs to the certificate at creation time.
The certificate is created with ClientAuth extension.
We copy the correct certificates.
2016-05-11 14:05:40 -07:00
Dan Lorenc c9b1939b57 Add a check for matching IPs and cert regeneration.
Add unit tests for cert generation and checking.
2016-05-11 10:25:22 -07:00
Dan Lorenc ba3c6d1133 Merge branch 'master' of github.com:kubernetes/minikube 2016-05-11 10:21:10 -07:00
Dan Lorenc 420ccd3e9f Initial SSH transfer commit. 2016-05-10 16:15:42 -07:00
Lucas Käldström ba9646ed56 Added error handling for certs as commented 2016-05-10 21:06:06 +03:00
Lucas Käldström f94581f132 Remove easyrsa code from commands.go where minikube starts localkube 2016-05-10 19:54:07 +03:00
Lucas Käldström 0c05a831b4 Remove dependency on easyrsa; now localkube signs its own certs (including CA, which wasn't present earlier). Now serviceAccounts should work properly 2016-05-10 19:53:11 +03:00
Lucas Käldström a38a9037e2 Use utilnet for getting the host's public IP, which is more reliable. Also, switch to net.IP and net.IPNet flags for validation 2016-05-10 17:49:09 +03:00
Lucas Käldström 1fe8a53339 Store certs in the localkube dir 2016-05-10 15:42:40 +03:00
Lucas Käldström c12821809a Run gofmt 2016-05-09 23:37:46 +03:00
Lucas Käldström 4b3e673ac1 Create the kube-system namespace if it doesn't exist 2016-05-09 23:36:33 +03:00
Lucas Käldström e7cda1ce58 Very large refactor of localkube. Fixed lots of bugs, added flags and commands via cobra, extracted a simple interface for SimpleServer for all Kubernetes components, made DNS working again, created the type LocalkubeServer which holds all necessary data etc. 2016-05-09 23:35:57 +03:00
Dan Lorenc 5a8e107045 Make the localkube download support compression. 2016-05-09 00:10:04 -07:00
Dan Lorenc 70ab8a04c2 Make string formatting explicit. 2016-05-08 16:23:56 -07:00
Dan Lorenc e5d9602d7c Add --containerized flag. 2016-05-06 16:28:50 -07:00
Dan Lorenc 716cc2e5ec Fix tests. 2016-05-06 16:06:28 -07:00
Dan Lorenc 23d906b577 Remove weave. 2016-05-06 16:06:28 -07:00
Dan Lorenc 4f712bf3be Make localkube serve securely. 2016-05-06 16:05:42 -07:00
Dan Lorenc d59e054f92 Move script to it's own file. 2016-05-06 16:05:42 -07:00
dlorenc 13e5937c02 Add code to setup authentication on the remote cluster.
This still relies on a modified localkube build, which should be
fixed when we merge localkube, before this gets merged in.
2016-05-06 16:05:42 -07:00
dlorenc cfb93eea90 Add a flag to control whether or not localkube runs in a container. 2016-05-05 21:00:14 -07:00
Lucas Käldström 6b2d1ed1cd Restructure the whole project, gofmt and improve the makefile 2016-05-05 16:38:23 +03:00