Commit Graph

789 Commits (56f8142e24c5ff2e857ad28a52a49c5a15afdd8c)

Author SHA1 Message Date
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
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