Commit Graph

1044 Commits (b927af45aa7ae92d893047d43156b4153aeaf449)

Author SHA1 Message Date
Thomas Strömberg 50d69c034e
Merge pull request #3643 from afbjorklund/mutex
Avoid double unlock of image load mutex
2019-02-11 13:57:38 -08:00
Thomas Stromberg deb31b4230 Pull upstream, sort out merge conflicts, use ParseBool 2019-02-11 13:56:45 -08:00
Bassam Tabbara 104f7dee9e
machine: fix parallels support
add vendor deps for parallels, fix compile issue, and enable parallels
as a default driver.

Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2019-02-11 08:47:29 -08:00
Zhongcheng Lao a6332e3c6e Add unit testcase for addon file patterns
afero introduced for mocking a filesystem.
2019-02-10 21:39:22 +08:00
Zhongcheng Lao 0c1d3f2e33 Fixes multiple files behavior in files rootfs
Some files may be left uncopied to the VM when there are multiple
files in the .minikube/files directory as the code misinterprets
the last parent dir as parent dirs for all files, which results
some files with the same name were not copied.

This patch fixes the behavior.
2019-02-10 19:51:02 +08:00
Anders F Björklund 73dd006813 Replace string comparison with class method 2019-02-09 20:59:26 +01:00
Anders F Björklund d3d9c5ed94 Avoid double unlock of image load mutex
Causes a runtime crash, with --cache-images:

"fatal error: sync: unlock of unlocked mutex"
2019-02-09 18:08:46 +01:00
Thomas Strömberg 6e1b9d030c
Merge pull request #953 from denji/parallels
machine: add parallels support
2019-02-08 15:39:43 -08:00
Thomas Strömberg 91be19c47a
Merge pull request #3258 from darkedges/master
When copying assets from .minikube/files on windows, directories get squashed during transfer. ie /etc/ssl/certs/test.pem becomes ~minikube/etcsslcerts/test.pem. This pull request ensures any window style directories are converted into unix style.
2019-02-08 15:31:00 -08:00
Thomas Stromberg d57d8d1a1e Fix broken tests: hyperkit driver format mismatch, console spacing mismatch 2019-02-08 13:58:02 -08:00
Thomas Stromberg 6c48048538 Merge from hell #2: refactor start.go because it's terrible 2019-02-08 13:37:29 -08:00
Thomas Stromberg ee8ddd60a8 Merge 2019-02-07 18:21:29 -08:00
Thomas Stromberg 92763ca40f Remove deprecated error message check. Never check text on error messages :( 2019-02-07 16:14:27 -08:00
Thomas Stromberg 9f09f02e39 Address PR comments, make sure PullImages code path is exercised 2019-02-07 15:39:31 -08:00
Thomas Stromberg f2d6f45538 More console work 2019-02-07 14:56:29 -08:00
Thomas Stromberg c01bbf4075 Add missing Copyright boilerplate 2019-02-07 09:48:20 -08:00
Thomas Stromberg 2033f8dcec Further tuning, especially of env override 2019-02-07 09:23:39 -08:00
Thomas Stromberg 5cb89b11ee Fix bad cut and paste: crio -> containerd 2019-02-07 08:36:40 -08:00
Thomas Stromberg d1b0d0470a Initial console implementation 2019-02-06 22:00:30 -08:00
Thomas Stromberg 8193985000 Add cruntime package 2019-02-05 14:51:03 -08:00
Thomas Stromberg 966b245dc6 Refactor and centralize container runtime code into a cruntime package 2019-02-05 14:42:12 -08:00
Himanshu Pandey 0dda33a7df Updated the default kubernetes version 2019-02-04 16:30:08 -08:00
Kubernetes Prow Robot a7485e738f
Merge pull request #3601 from jayunit100/patch-4
Add breadcrumb logs to demonstrate when minikube's  volume provisioner is…
2019-02-02 10:27:22 -08:00
Kubernetes Prow Robot fd38580772
Merge pull request #3593 from balopat/fix_hyperkit_pid_issues
fix stale hyperkit.pid making minikube start hang
2019-01-30 07:40:16 -08:00
Thomas Strömberg 8d304ee172
Merge pull request #2757 from afbjorklund/podman
CRI: try to use "sudo podman load" instead of "docker load"
2019-01-30 06:40:56 -08:00
Thomas Strömberg e1eafcd302
Update pkg/storage/storage_provisioner.go
Co-Authored-By: jayunit100 <jayunit100.github@gmail.com>
2019-01-29 16:06:47 -05:00
jay vyas 6faab7136d
Update storage_provisioner.go 2019-01-29 08:40:43 -08:00
jay vyas 1904f1e5d2
Update storage_provisioner.go 2019-01-29 08:18:48 -08:00
jay vyas 0126f92d87
Update storage_provisioner.go 2019-01-29 08:16:13 -08:00
jay vyas 2ed155d5e4
Add breadcrumb logs to demonstrate when minikube's CSI provisioner is actively making volumes
Since minikube is the canonical kubernetes deployment for learning and playing with things, this trivial PR makes it easy to see the storage provisioner in action, the current logging shows very little easier to differentiate how volumes are spun up.
2019-01-29 07:55:48 -08:00
balopat 17c0244cf7 reverting unnecessary change 2019-01-28 17:28:57 -08:00
balopat 5af2f1eafc formatting / removed extra comment 2019-01-28 13:47:24 -08:00
balopat f70e6a0385 fixing review remarks 2019-01-28 13:42:43 -08:00
balopat f3034d3c50 parsing ip r output 2019-01-28 11:43:44 -08:00
balopat 2b0651b55d parsing ip r output 2019-01-28 11:43:01 -08:00
balopat 933356e477 lint 2019-01-25 17:20:57 -08:00
balopat 9b97a85a8f fix stale hyperkit.pid making minikube start hang 2019-01-25 17:08:31 -08:00
balopat 0fb27c7f38 fix netstat -f error on linux distros 2019-01-25 16:15:27 -08:00
Anders F Björklund 98a2a557c5 Cache just one image at a time, when using podman
To not run out of memory due to loading the images, since it
does not have a daemon to serialize things (like Docker does)
2019-01-25 22:08:15 +01:00
Anders F Björklund 25ad2d35d9 Optionally use podman load instead of docker load 2019-01-25 22:04:58 +01:00
Denis Denisov a1cd81bf1c machine: add parallels support 2019-01-25 10:31:26 +02:00
Thomas Strömberg 31eb53cbfb
Merge pull request #3560 from afbjorklund/service
Still generate docker.service unit, even if unused
2019-01-24 16:06:15 -08:00
Thomas Strömberg b61207c233
Merge pull request #3391 from ivans3/logviewer-addon-pr7
Initial commit of logviewer addon
2019-01-24 16:00:29 -08:00
Thomas Strömberg a130a09f32
Merge pull request #3262 from mlgibbons/update-parsing-for-k8s-v1.11
Add images and improve parsing for kubernetes 1.11
2019-01-24 15:58:17 -08:00
Thomas Strömberg 64640a4d3a
Merge pull request #3387 from jeffwubj/fix-3276
Update docker env during minikube start if VM has already been created
2019-01-24 09:51:53 -08:00
Jeff Wu bb550593e0 fix comments 2019-01-24 23:22:00 +08:00
Anders F Björklund 6f909684e7 Still generate docker.service unit, even if unused
The dynamically generated docker.service file should still be there,
otherwise the statically provided docker.socket file gets confused.
2019-01-20 15:22:37 +01:00
Rob Richardson 4d05f3f774 Re-remove kube-dns addon 2019-01-18 22:21:00 -07:00
Thomas Strömberg f29c0cd329
Merge pull request #3533 from tstromberg/kubeadm-log-output
Improve failure output when kubeadm init fails
2019-01-17 10:33:23 -08:00
Thomas Strömberg e3a814b0e9
Merge pull request #3534 from frapposelli/vmware-unified-driver
Add new VMware unified driver to supported list #2
2019-01-16 23:02:37 -08:00
Thomas Stromberg c2bf394378 Minor improvements to output and comments 2019-01-16 12:14:56 -08:00
Thomas Strömberg 9b45920503
Merge pull request #3252 from mlgibbons/caching-fix
Fix Windows cache path issues with directory hierarchies and lower-case drive letters
2019-01-16 11:16:16 -08:00
Fabio Rapposelli 332772be1c
Add VMware unified driver to supported list 2019-01-15 17:53:45 -08:00
Thomas Strömberg 3aa83674a9
Merge pull request #3441 from brb/2907-no-cni-conf-by-default
Do not include the default CNI config by default
2019-01-15 17:14:20 -08:00
Thomas Strömberg 8bc8816c9f
Merge pull request #3521 from nixpanic/addons/gluster
Add a storage-provisioner-gluster addon
2019-01-15 17:08:45 -08:00
Thomas Strömberg 7b32547cf6
Merge pull request #3108 from sebcworks/sebcworks-customapiserverport
Allow to specify api server port through CLI fix #2781
2019-01-15 16:43:42 -08:00
Thomas Strömberg dde313a878
Merge pull request #3531 from Zyqsempai/add-default-disk-size-to-hyperkit-driver
Added defaultDiskSize setup to hyperkit driver
2019-01-15 16:41:10 -08:00
Thomas Stromberg 649b6b9641 Return output, even if CombinedOutput fails 2019-01-15 16:36:26 -08:00
Thomas Stromberg e8015d9490 Fix awkwardly formatted error message: out is not a command-line. 2019-01-15 16:35:56 -08:00
Thomas Strömberg a4ca26606a
Merge pull request #3527 from tstromberg/v1.13.2
Set default Kubernetes version to v1.13.2 (latest stable)
2019-01-14 14:29:50 -08:00
bpopovschi 0687fea66a Added defaultDiskSize setup to hyperkit driver
fmt fix
2019-01-14 17:04:07 +02:00
Thomas Strömberg e6b60fb38c
Merge pull request #3442 from brb/2828-network-plugin-cni
Pass network-plugin value to kubelet
2019-01-11 11:40:09 -08:00
Thomas Strömberg c08ae00fb4
Merge pull request #3523 from superbrothers/fix-missing-line-break
Fix missing a line break for minikube status
2019-01-11 10:39:26 -08:00
Thomas Strömberg d69fb2820c
Merge pull request #3485 from tstromberg/no-dashboard
Defer dashboard deployment until "minikube dashboard" is executed
2019-01-11 10:33:00 -08:00
Thomas Stromberg 5a0d29ba49 Set default Kubernetes version to v1.13.2 (latest stable) 2019-01-11 09:57:11 -08:00
Kazuki Suda aab2d250d6 Fix missing a line break for minikube status 2019-01-10 14:29:07 +09:00
Niels de Vos b85b6d5eeb addons: mark the last enabled storage provider as default
When a storage provider is enabled (storage-provisioner-glusterfile),
mark it "is-default" and set "is-default" to "false" in all other
StorageClasses.
2019-01-09 20:04:21 +01:00
Niels de Vos b0c7341373 addons: when enabling storage-provisioner-gluster, mark other SCs non-default
There can only be one StorageClass be marked as default. When the
storage-provisioner-gluster addon is enabled, users expect it to be the
default StorageClass.

Instead of removing the "is-default" annotation from the other
StorageClasses, set it to "false". This leaves only the "glusterfile"
StorageClass as "is-default".
2019-01-09 20:04:21 +01:00
Niels de Vos 3c3b7368f0 Add storage-provisioner-gluster addon
With this addon dynamic provisioning based on Gluster can be enabled:

    $ minikube addons enable storage-provisioner-gluster

This will deploy several pods in a new 'storage-gluster' namespace:

 - glusterfs, storage service with a 10GB sparse /srv/fake-disk.img
 - heketi, a smart Gluster volume manager
 - glusterfile-provisioner, external-storage provisioner

In addition, the StorageClass 'glusterfile' will be created. It is
currently not configured as default StorageClass, so PVCs need to refer
to the new StorageClass.
2019-01-09 20:04:21 +01:00
Martynas Pumputis d982c4bf74 Do not include the default CNI config by default
Previously, minikube has been shipped with the default CNI config
(/etc/cni/net.d/k8s.conf) in its rootfs. This complicated a lot
when using a custom CNI plugin, as the default config was picked
by kubelet before the custom CNI plugin has installed its own CNI
config. So, the end result was that some Pods were attached to a
network defined in the default config, and some got managed by
the custom plugin.

This commit introduces the flag "--enable-default-cni" to
"minikube start" to trigger the provisioning of the default CNI
config.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
2019-01-03 09:23:29 +01:00
Thomas Strömberg 6a0406611e
Merge pull request #3374 from jeffwubj/dev
Tell user given driver has been igored if exising VM has a different …
2018-12-21 19:04:01 -08:00
Thomas Strömberg a8f54f6f75
Merge pull request #3482 from kubernetes/tstromberg-patch-3
Make Kubernetes v1.12.4 the default
2018-12-21 15:01:26 -08:00
Thomas Strömberg f6af1ce6e2 Update kubeadm restart commands to support v1.13.x (#3483)
* Minor changes for compatibility with v1.13.1

* etcd subcommand should be local instead of all
2018-12-21 14:32:16 -08:00
Thomas Stromberg 9ca9242320 Disable dashboard by default 2018-12-21 11:49:14 -08:00
Thomas Strömberg d9487db34a
Update constants.go 2018-12-21 11:20:04 -08:00
Thomas Strömberg ab64cb952e
Merge pull request #3479 from tstromberg/stop-retry
Make "stop" retry on failure.
2018-12-20 19:46:24 -08:00
Thomas Strömberg ae4221b3fb
Merge pull request #3475 from tstromberg/intlogs
tee party: Stream cmd output to tests when -v is enabled, and stream SSH output to logs
2018-12-20 17:21:34 -08:00
Thomas Strömberg 94245d0449
Merge pull request #3477 from tstromberg/retry-loop-0
Decrease log noise by logging retry loops after the initial attempt
2018-12-20 17:21:19 -08:00
Thomas Stromberg c250a3b9d9 Make "stop" retry on failure. 2018-12-20 13:19:53 -08:00
Thomas Stromberg fcaf89666f Decrease log noise by logging retry loops after the initial attempt 2018-12-20 10:27:47 -08:00
Thomas Stromberg b5185c6b3f err cleanup: include cmd/out/err, but keep messages small and deduped 2018-12-20 10:17:41 -08:00
Thomas Stromberg 7f7587d96c Rename TeeWithPrefix to TeePrefix to match Go idioms 2018-12-20 09:54:09 -08:00
Balint Pato ed7031cbb3
Merge branch 'master' into logviewer-addon-pr7 2018-12-19 17:14:09 -08:00
Thomas Stromberg 9b707fe234 Add TeeWithPrefix to ssh_runner as well 2018-12-19 17:03:55 -08:00
Charles-Henri de Boysson 2cabcd5911 Fix CRI socket in Kubernetes >= 1.12.0 kubeadmin config (#3452)
Use CRI socket from parameter for V1Alpha3 configs instead of hardcoded
dockershim path
2018-12-19 16:51:29 -08:00
Jeffrey Sica 8f1b4d2882 bump dashboard version to v1.10.1 (#3466) 2018-12-19 16:38:52 -08:00
Cory Locklear 7d03fa212d Enable host DNS resolution in virtualbox driver by default (#3453) 2018-12-19 15:41:52 -08:00
Thomas Strömberg 2ea91b216e
Merge pull request #3459 from alasdairtran/hide-kvm-signature
Hide KVM signature when using GPU passthrough to support more GPU models
2018-12-18 15:15:58 -08:00
Chris Eason c7e69fd257 Allow ServiceCIDR to be configured via 'service-cluster-ip-range' flag. 2018-12-18 12:17:33 -05:00
Alasdair Tran 7ba01b40a9 Hide KVM signature 2018-12-15 21:47:41 +11:00
Thomas Strömberg e12550d323
Revert "Revert "Make k8s v1.12.3 the default"" 2018-12-14 14:47:27 -08:00
priyawadhwa 5d910e8937 Save old cluster config in memory before overwriting (#3450)
* Save old cluster config in memory before overwriting

In PR #3426, I changed "minikube start" to overwrite the cluster config earlier so that the container runtime could be extracted from it by the buildroot provisioner. This introduced a bug later on, where minikube expected to read the kubernetes version from theold config (which no longer existed, because the config was overwritten).

To fix this, I changed the code to store the old version of the config in memory before overwriting it.

This should fix #3447
2018-12-13 14:31:22 -08:00
Martynas Pumputis e08423c633 Pass network-plugin value to kubelet
Previously, when "minikube start" has been invoked with
"--network-plugin=<..>", the value was not passed to kubelet. Therefore,
the additional param "--extra-config=kubelet.network-plugin=<..>"
was required.

This commit ensures that the value is being passed to kubelet, so
the extra-config value is no longer needed.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
2018-12-11 16:20:34 +01:00
Thomas Strömberg 87107b73ba
Merge pull request #3427 from JoeWrightss/patch-1
Fix .Info() error message
2018-12-10 09:33:52 -08:00
priyawadhwa 8f128a7d10 Enable gvisor addon in minikube (#3399)
This PR adds the code for enabling gvisor in minikube. It adds the pod
that will run when the addon is enabled, and the code for the image
which will run when this happens.

When gvisor is enabled, the pod will download runsc and the
gvisor-containerd-shim. It will replace the containerd config.toml and
restart containerd.

When gvisor is disabled, the pod will be deleted by the addon manager.
This will trigger a pre-stop hook which will revert the config.toml to
it's original state and restart containerd.
2018-12-07 15:27:22 -08:00
Thomas Strömberg ad415e252d
Merge pull request #3401 from tstromberg/cherry-2f81d
Add apiserver check to "status", and block "start" until it's healthy.
2018-12-07 15:20:07 -08:00
priyawadhwa ed8f7124a0 Only restart docker service if container runtime is docker (#3426)
* Only restart docker service if container runtime is docker

Only allow the buildroot provisioner to restart docker if the container
runtime is docker. This change should fix the bug in #3424, since now
docker will not be restarted if the container runtime is containerd.

* Added files to fix FileContent--proc-sys-net-bridge-bridge-nf-call-iptables precheck error

From this issue: https://github.com/kubernetes/kubeadm/issues/1062
these files need to be added to prevent this precheck error (which occurs when running any container runtime that isn't docker).

Also, save the machine config on the user's filesystem earlier so that the buildprovisioner can access it.
2018-12-07 12:08:59 -08:00
JoeWrightss 1ddd835a6e Fix .Info() error message
Signed-off-by: JoeWrightss <zhoulin.xie@daocloud.io>
2018-12-08 00:44:47 +08:00
Thomas Strömberg 2847622892
Revert "Make k8s v1.12.3 the default" 2018-12-06 09:05:33 -08:00
Jeff Wu 8905dba07b Correcting for PR comments 2018-12-05 13:12:53 +08:00
Thomas Stromberg a74e9faf8b Make k8s v1.12.3 the default 2018-12-03 21:43:53 -08:00
Thomas Stromberg 71eff5922d Disable TLS checks, because they don't work while we are waiting for startup 2018-12-03 21:07:30 -08:00
Thomas Stromberg cb3624dd08 Add apiserver health checks 2018-12-03 20:11:42 -08:00
Thomas Strömberg bc67a32a7b
Merge pull request #3332 from dlorenc/rmaddons
Remove both the CoreDNS and KubeDNS addons. Let Kubeadm install the c…
2018-12-03 17:15:06 -08:00
ivans3 b43b8ccd9d Initial commit of logviewer addon 2018-12-02 12:58:06 -08:00
Jeff Wu 867233e2ae fix 3276 2018-11-30 16:44:41 +08:00
wujeff bae164a217 Tell user given driver has been igored if exising VM has a different driver 2018-11-28 18:31:37 +08:00
Anders Björklund 57f4d9247e Only require docker for the docker runtime (#3303)
Closes #3295
2018-11-27 14:15:08 -08:00
Balint Pato 47579273d8
even longer timeout + timeout error is retriable now (#3370)
* even longer timeout + timeout error is retriable now
* fix for debugging when tunnel test has issues
2018-11-27 13:58:26 -08:00
Peeyush gupta dc340b06d8 Adding ARCH variable to download kubeadm/kubelet binaries (#3368) 2018-11-27 08:34:13 -08:00
Balint Pato 4b11d63da1
debugging improvements and flakiness reduction (#3363)
Small improvements to debugging and reducing integration test flakiness: 
* added logging to kubeadm init in the SSHExecutor
* increasing timeout for RBAC creation via the kubernetes client set 
* only log tunnel output to test logger
2018-11-26 10:18:28 -08:00
Balint Pato a681603daa
Fix `minikube tunnel` for hyperkit (#3349)
This change is a bit of a hack to make IP routing work over the virtio-net interface - it forces the virtio-net interface (bridge100) created by hyperkit/xhyve to reset via removing and readding the single member of the interface. Without this "reset" packets are just simply lost most of the time, despite a completely healthy IP route.

This error was also the reason for a large percentage of our integration test failures. While reducing the flakiness of tunnel related tests I also increased the timeout requirement and adding retries to the nginx request in TestTunnel.
2018-11-21 13:39:48 -08:00
dlorenc 2091f8c27a
Remove both the CoreDNS and KubeDNS addons. Let Kubeadm install the correct DNS addon. 2018-11-16 14:54:44 -08:00
priyawadhwa 77942bbf94 Restart containerd after stopping alternate runtimes (#3343)
After stopping any runtimes that aren't being used, if we're using
containerd then we need to restart it. This is because it competes with
cri-o to listen on port 10010, causing a necesary plugin to not be
installed. After stopping cri-o, we need to restart containerd so that
the plugin is installed.

I also added some preflight checks when using alternative runtimes.
kubeadm checks to make sure the Docker service is running, so I disabled
that. It also checks if a few ports are available; these are ports that
containerd uses, so I also added them to the ignore list.

This should finish the work started in #3211, which stopped alternative
runtimes but didn't restart containerd. I was able to run "minikube
start" with containerd locally with this change.
2018-11-16 11:48:24 -08:00
Anders Björklund 2ceec0d084 Add config parameter for the cri socket path (#3154)
* Add config parameter for the cri socket path

Closes #3153

* Remove stray newline, when not using criSocket

* Add the --cri-socket parameter to configuration

Also fix the syntax for CRI-O, adding unix://
2018-11-14 16:36:02 -08:00
mikeweiwei 3deef5345d fix logging calls (#3315) 2018-11-13 13:53:50 -08:00
mooncake 1bdc7ba400 Fix typos: containg->contain, reconcilliation->reconciliation
Signed-off-by: mooncake <xcoder@tenxcloud.com>
2018-11-13 09:44:04 -06:00
xichengliudui fd67b2ca80 Modify the correct function name 2018-11-13 09:43:40 -06:00
Bily Zhang b9a4f9459f Fix some typos (#3302)
Signed-off-by: mooncake <xcoder@tenxcloud.com>
2018-11-06 12:36:13 -05:00
xichengliudui 52f37d9623 Fix typo miniube-iso -> minikube-iso 2018-11-05 02:06:30 -05:00
Mark Gibbons a70d60affa Correction of image list for K8S v1.11.0 2018-10-30 12:43:10 +00:00
Thomas Strömberg 2621bb3a27
Merge pull request #3187 from tstromberg/consistent_err_formatting
Globally replace %s format directives with %v for error strings
2018-10-19 16:44:46 -07:00
Thomas Strömberg b93c22b6ab
Merge pull request #3221 from tstromberg/iso_errors
Include ISO URL and reduce stutter in download error message
2018-10-19 16:18:53 -07:00
Thomas Stromberg 118e9cc016 Apply go 1.11 formatting using `gofmt -s -l -w` 2018-10-19 14:29:56 -07:00
Thomas Stromberg 13e580b588 Fix merge breakage. 2018-10-19 14:16:03 -07:00
Thomas Stromberg 72e596507a Merge branch 'master' into consistent_err_formatting 2018-10-19 14:08:35 -07:00
Thomas Stromberg 3e256a0463 Fix accidental switch from Println to Printf 2018-10-19 13:48:25 -07:00
Balint Pato ae9f4b20c7
minikube tunnel (#3015)
This commit introduces a new command, `minikube tunnel`, a LoadBalancer emulator functionality, that must be run with root permissions.

This command:

* Establishes networking routes from the host into the VM for all IP ranges used by Kubernetes.
* Enables a cluster controller that allocates IPs to services external `LoadBalancer` IPs.
* Cleans up routes and IPs when stopped (Ctrl+C), when `minikube` stops, and when `minikube tunnel` is ran with the `--cleanup` flag
2018-10-18 11:01:47 -07:00
Mark Gibbons 115e48a13b Updated to add parsing for k8s v1.11 2018-10-18 06:32:51 +01:00
Nicholas Irving aca02f4fa5 Resolved ordering issue 2018-10-16 22:26:52 +11:00
Nicholas Irving c05b9697f1 this attempts to resolve
https://github.com/kubernetes/minikube/issues/2768
for Windows, by converting \ in directory string to / and using
`path.Join` instead of `filepath.Join` which uses Unix format
instead of using he current OS directory delimeter.
2018-10-16 22:12:52 +11:00
Mark Gibbons fb68def3ba Fixes for caching issues 2018-10-14 19:31:55 +01:00
Thomas Strömberg 7365178d53
Merge pull request #3180 from outcoldman/k8s-1.12
Initial support for Kubernetes 1.12+
2018-10-05 13:03:21 -07:00
Thomas Stromberg 7e54a16d60 Include ISO URL in download error, make output slightly easier to read. 2018-10-05 12:50:47 -07:00
Denis Gladkikh cf439dd059 Remove token created by kubectl upgrarde 2018-10-05 12:24:52 -07:00
Thomas Strömberg 583937ac3e
Merge pull request #3210 from tstromberg/dashboard_on_demand
Use "kubectl proxy" instead of a NodePort to expose the dashboard.
2018-10-04 14:42:41 -07:00
Thomas Strömberg 36d76c72ff
Merge pull request #3183 from tstromberg/k8s_releases_json_dep
Remove refs to k8s_releases.json now that `get-k8s-versions` is gone.
2018-10-04 14:42:12 -07:00
Thomas Stromberg 687b62cfe7 Let gofmt 1.10.4 rewrite service_test.go.
NOTE: This differs against what 1.11 would do, but matches our current
Travis CI configuration.
2018-10-04 13:40:08 -07:00
Thomas Stromberg dc6d1bab8d Merge branch 'master' into dashboard_on_demand 2018-10-04 13:38:49 -07:00
Fernando Diaz 2ebdf5e1eb Enhance the Ingress Controller Addon (#3099)
- Updates Ingress-Controller Version to 0.19.0
- Adds Service Account for Ingress-Controller
- Adds Support for Prometheus
- Fixes bug with TCP/UDP ConfigMaps not Loading
- Adds more resource limits to default-backend
- Use new ingress class name
- Use app.kubernetes.io/xxxxxxxxxxx labels
2018-10-04 16:13:53 -04:00
Thomas Stromberg 7feb46edcb Removed unneccesary changes to download errors 2018-10-03 15:16:37 -07:00
Thomas Stromberg 8fd45bc751 Block until the proxy URL is healthy.
This is necessary now that there is no proper service endpoint to block
on.
2018-10-03 13:00:13 -07:00
Thomas Stromberg bc2dbe3b08 Improve readability of ISO download errors + include URL.
This is a separate issue I bumped into while developing the dashboard
PR.
2018-10-03 12:56:54 -07:00
Thomas Stromberg df54c6a5b4 Use "kubectl proxy" instead of a NodePort to expose the dashboard.
This provides an additional level of security, by enforcing host checking, applying port randomization, and requiring explicit user intent to expose the service to the host.
2018-10-02 22:25:45 -07:00
Thomas Stromberg 3706b3b8ac Fix dangling format issues. 2018-09-28 16:48:37 -07:00
Thomas Stromberg e0080c074c fix: Wrapf format %s has arg perms of wrong type int 2018-09-28 16:38:56 -07:00
Thomas Stromberg ea62af5a37 Fix incorrect format for an integer by using the unparseable string. 2018-09-28 16:17:44 -07:00
Thomas Stromberg 055c8002b1 Replace %s format directives with %v for errors.
Previously we were mixed between the two forms. This commit picks %v,
which is consistent with the Kubernetes code base. They both effectively
do the same thing in this case, though %v works with any object, and %s
only with string objects.
2018-09-28 16:05:27 -07:00
Denis Gladkikh 2817865ddb Keep 1.10 as default for now 2018-09-28 09:53:28 -07:00
Thomas Stromberg fd428599da Remove dangling references to k8s_releases.json now that
`get-k8s-versions` is removed.
2018-09-28 09:47:28 -07:00
Denis Gladkikh a3b3e72cbf Fix gofmt 2018-09-27 23:02:53 -07:00
Denis Gladkikh a5f8af92f1 Support for Kubernetes 1.12+ 2018-09-27 22:41:16 -07:00
Thomas Strömberg 74f8e492ee
Merge pull request #3148 from etherparty/fix-issue-2513
Fix issue 2513
2018-09-27 10:35:28 -07:00
Marcus Heese 5d0e12327a
turning error into a warning log message 2018-09-26 13:53:57 -07:00
Marcus Heese 4eb2cdb120
inlining deleteNetwork into if statement 2018-09-24 14:04:01 -07:00
Jeffrey Sica 9e586a215f update dashboard version 2018-09-24 12:24:08 -07:00
Marcus Heese 5e38bf4819
kvm2 driver: fixed documentation link in error text 2018-09-21 10:28:52 -07:00
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