Commit Graph

819 Commits (fb8a47f4416423e75c5ced2c01dd4bec6b8faeef)

Author SHA1 Message Date
Thomas Stromberg 4cfe77294d Fix style merge conflict 2019-02-14 11:25:42 -08:00
Thomas Strömberg 3714bbd787
Merge pull request #3659 from tstromberg/console
Clearer output when re-using VM's so that users know what they are waiting on
2019-02-14 11:03:50 -08:00
Thomas Stromberg 08da5fe3b5 Add pod logs to 'logs' command, show detected problems during minikube start 2019-02-13 21:29:20 -08:00
Thomas Stromberg 69f72ea991 Add exit.go, remove call to exit.Fail 2019-02-13 12:47:02 -08:00
Thomas Stromberg 5f65dc80fa Remove error uploads, consolidate fatal error handling into exit package 2019-02-13 12:37:44 -08:00
Thomas Stromberg 1c09ba2a48 Make the output clearer and less cluttered 2019-02-13 09:41:53 -08:00
Thomas Stromberg e74db39783 Issue a poweroff request before deleting a VM. Avoids HyperV hang 2019-02-13 09:21:58 -08:00
Yugo Horie 00aff6039b Fix to not execute clusterBootstrapper.Delete when clusterBootstrapper is nil #3662 2019-02-13 10:08:06 +09:00
Thomas Stromberg ade3515f4f Disable Stackdriver error reporting until we can clean up the interface 2019-02-12 14:33:38 -08:00
Thomas Stromberg 3454c83dcf Clearer output when re-using VM's so that users know what they are waiting on 2019-02-12 13:54:30 -08:00
Anders F Björklund 0a91040434 Add DeleteCluster to bootstrapper
This matches StartCluster, and is used to revert
the changes done to reset the VM machine state.

Even if it fails, continue to deleting the VM...
Make sure to handle the case of missing config.
2019-02-12 19:49:19 +01:00
Thomas Stromberg 0a5b64eeaf Improve text strings for existing VM's and setting cluster permissions 2019-02-11 19:28:23 -08:00
Thomas Stromberg 452054bf25 Implement PR comments 2019-02-11 15:01:34 -08:00
Thomas Stromberg deb31b4230 Pull upstream, sort out merge conflicts, use ParseBool 2019-02-11 13:56:45 -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 78806674f3 Merge branch 'master' into defaults 2019-02-09 18:25:27 +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 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 0f11c4de8e Remove unnecessary break statement 2019-02-07 16:14:47 -08:00
Thomas Stromberg e6c59fa135 Add back accidentally removed status line 2019-02-07 15:40:43 -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 d1b0d0470a Initial console implementation 2019-02-06 22:00:30 -08:00
Thomas Stromberg 966b245dc6 Refactor and centralize container runtime code into a cruntime package 2019-02-05 14:42:12 -08:00
Anders F Björklund 6ff11e44a5 Remove default cni flags from the documentation 2019-02-05 20:05:05 +01:00
Anders F Björklund 0071a940a7 Need to check if changed, not the current value 2019-02-02 19:11:33 +01:00
Anders F Björklund 6e7fc9dbf5 Add cni default for alternative container runtimes
If using an alternative container runtime, and not having set
any other parameters already, default to cni plugin and config.
2019-02-02 18:36:46 +01:00
Anders F Björklund 1cb2ba06e1 Refactor: add variables for network configuration 2019-02-02 18:36:42 +01:00
Thomas Stromberg b19526ab6c minor de-linting: run gofmt, goimports, pre-allocate fields slice 2019-01-25 10:49:58 -08:00
Denis Denisov a1cd81bf1c machine: add parallels support 2019-01-25 10:31:26 +02: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 ad2b762c51
Merge pull request #3286 from hidekazuna/fix_vm_driver_none
Fix to run sudo -E minikube start --vm-driver=none
2019-01-24 15:59:14 -08:00
Thomas Strömberg fd562f81b1
Merge pull request #3565 from twelvelabs/patch-1
Remove redundant newline in `minikube status`
2019-01-24 07:33:20 -08:00
Skip Baney 34aa0c6895
Remove redundant newline in `minikube status`
Both #3502 (which this commit reverts) and #3523 attempted to fix the same issue.
Keeping the change from the latter PR since it fixes it at the source template.
2019-01-21 10:54:25 -06:00
Anders F Björklund 3389344d51 Need to restart crio, after stopping containerd
If it fails to start up, it will never try again.
2019-01-20 17:06:37 +01:00
Anders F Björklund 2c0b7da11e Stop containerd from running, if it is not desired
Apparently some grpc services are conflicting with crio

"Failed to start streaming server: listen tcp 10.0.2.15:10010: bind: address already in use"
2019-01-20 17:02:36 +01:00
Thomas Strömberg 56f8142e24
Merge pull request #3194 from afbjorklund/crictl.yaml
Write /etc/crictl.yaml when starting
2019-01-17 10:34:06 -08: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
Anders F Björklund c563c4d1fb Write /etc/crictl.yaml when starting 2019-01-17 07:27:28 +01:00
Thomas Stromberg c2bf394378 Minor improvements to output and comments 2019-01-16 12:14:56 -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 303e26cd56
Merge pull request #3494 from knabben/reporterror-test
Adding more utils tests
2019-01-15 17:13:23 -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 Stromberg 393d1af3c6 mention 'minikube logs' for debugging start failures 2019-01-15 16:37:28 -08:00
Thomas Stromberg bf02c016b3 Make failure prompt text more clear 2019-01-15 16:37:04 -08:00
Thomas Strömberg 0a58301e3e
Merge pull request #3502 from narendra2019/master
issue# 3499: minikube status missing newline at end of output
2019-01-14 13:24:31 -08:00
Thomas Stromberg 3223e044e4 apiserver health: try up to 5 minutes, add newline 2019-01-11 11:49:49 -08: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
Narendra Kangralkar 68287a9497 issue# 3499: minikube status missing newline at end of output
Done code changes to display newline at the end of the status message
2019-01-04 22:13:33 +05:30
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
Amim Knabben 6762fb0096 Adding GetkubeConfig path test 2018-12-28 10:49:50 -02:00
Amim Knabben f948bf8136 Adding ReportError test and HTTP Test server reuse 2018-12-28 10:04:45 -02:00
Thomas Stromberg 1bd4b05bc8 Increase dashboard retry time from 30 seconds to 3 minutes 2018-12-21 14:14:36 -08:00
Thomas Stromberg f3d158198f Add helpful dashboard status messages to stderr 2018-12-21 12:00:43 -08:00
Thomas Stromberg dba0c0a0dc Disable dashboard by default 2018-12-21 11:49:20 -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 Stromberg c250a3b9d9 Make "stop" retry on failure. 2018-12-20 13:19:53 -08:00
Balint Pato ed7031cbb3
Merge branch 'master' into logviewer-addon-pr7 2018-12-19 17:14:09 -08:00
Chris Eason c7e69fd257 Allow ServiceCIDR to be configured via 'service-cluster-ip-range' flag. 2018-12-18 12:17:33 -05: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
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
Thomas Stromberg 1ceb3e050b Make errors retriable 2018-12-03 21:07:39 -08:00
Thomas Stromberg d0cfb28b8e apiserver, not api-server 2018-12-03 20:32:48 -08:00
Thomas Stromberg eae6efdc85 Verify status before mounting 2018-12-03 20:29:02 -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
Hidekazu Nakamura 2ef8ff9256 Fix sudo -E minikube start
sudo -E minikube start --vm-driver=none does not change directory
owner when CHANGE_MINIKUBE_NONE_USER=true.
This patch fixes to change directory owner when
CHANGE_MINIKUBE_NONE_USER=true.
2018-11-28 02:08:29 +00:00
Anders Björklund 57f4d9247e Only require docker for the docker runtime (#3303)
Closes #3295
2018-11-27 14:15:08 -08:00
Joey 41bd1de699 Implement a check to see if an ISO URL is valid (#3287)
* Implement a check to see if an ISO URL is valid

* Use strings.TrimPrefix instead of []rune casting for 'file://' prefix removal

* Handle file permissions error with a user-friendly message
2018-11-26 16:29:47 -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
dlorenc 4e5623e4fa Fix error formatting 2018-11-15 16:36:30 -06:00
Anders Björklund b69fc99d62 Stop docker daemon, when running cri-o (#3211)
* Stop extra container runtimes, before bootstrapper

The minikube.iso starts every runtime, by default

* Disable docker-env output, if docker isn't running

Might be running an alternative container runtime
2018-11-14 16:43:07 -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
Thomas Stromberg a9d7c41056 One last rune->byte switch 2018-11-09 15:16:36 -08:00
Thomas Stromberg 810a6c70ef Update strings to reflect that a byte is returned instead of a rune 2018-11-09 15:16:05 -08:00
Thomas Stromberg 81815182c7 Use io.ByteReader interface 2018-11-09 15:11:58 -08:00
Thomas Stromberg 9013a57e58 Timeout when reading host:port from older kubectl versions.
kubectl releases older than August 2017 don't include a newline, which
means there is effectively no hint that the output has completed. I
believe this is why tests have been failing on the macOS.

Should resolve test timeout panics such as #3203
2018-11-09 15:03:08 -08:00
Bartel Sielski dd196abe30 Remove newline at the start of zsh completion file
Signed-off-by: Bartel Sielski <bsielski@nalys-group.com>
2018-10-30 11:23:46 +01:00
Thomas Stromberg 72e596507a Merge branch 'master' into consistent_err_formatting 2018-10-19 14:08:35 -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
Thomas Stromberg fd0d46680e Respect the -p flag to set the appropriate profile. 2018-10-04 11:35:24 -07:00
Thomas Stromberg 534325e88f Use %v for errors instead of %s 2018-10-03 21:57:17 -07:00
Thomas Stromberg c079bb1934 Update integration tests to handle newly persistant dashboard. 2018-10-03 15:06:30 -07:00
Thomas Stromberg d38705a42b Fix overzealous replacement of namespace -> ns that broke URL generation 2018-10-03 13:58:25 -07:00
Thomas Stromberg 2956621c20 Add function comments, improve proxy stdout log message 2018-10-03 13:30:09 -07:00
Thomas Stromberg 4c35c505f6 Double HTTP wait time and make error messages more readable. 2018-10-03 13:22:36 -07:00
Thomas Stromberg ac6dacff4a Address lint issues resulting from the dashboard proxy refactor. 2018-10-03 13:14:47 -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 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 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
Arijit Basu bed9aabaf8 Stay in same line 2018-09-10 12:15:28 -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
Asbjørn Apeland 5a78ac92f6 Change Linux install method
Previously, files installed to /usr/local/bin/ would be owned by the
user executing the command, not root. This change makes these installed
files owned by root instead. Improving security is the goal.
2018-07-31 10:55:22 -07:00
dlorenc deb2ded956 Add back version flag. 2018-07-24 12:36:42 -07:00
dlorenc a3b7a56ae0 Remove the call to validatek8sversion. 2018-07-24 12:36:42 -07:00
Aaron Prindle 8264dc0a12 fix issue where version was not being set 2018-07-24 12:36:42 -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
Dusty Rip 2dea4e1051 Allow zsh completion to be autoloaded by compinit 2018-07-18 09:44:35 -07:00
kairen ad576faae9 Reuse the FeatureGates field to parse kubeadm and component feature gates 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
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 305e803316 Bump Docker API Verson. 2018-06-05 13:45:01 -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
Mark Gibbons 5ed8a7ef91 Made caching async with block for completion before copy of images into cluster. Default imageing caching to false 2018-06-04 08:15:12 -07:00
mlgibbons 0519b237a2 Addressed race condition caused by async image caching with no wait which resulted in unreliable image loading and prevented offline execution of "minikube start". 2018-06-04 08:15:12 -07:00
Li Yi 9198b04386 Fix error messages for enabling/disabling addon
Signed-off-by: Li Yi <denverdino@gmail.com>
2018-04-29 18:06:48 -07:00
AdamDang 12f1833ea9
Typo fix: Seperated list->Separated list
Seperated list->Separated list
2018-04-29 16:27:11 +08:00
dlorenc 0bf5166e14 Deprecate localkube. 2018-04-09 13:24:07 -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
David Muckle adb30393d1 Add metrics-server as an addon 2018-02-21 15:33:27 -05:00
Yongkun Anfernee Gui c07258b45a Fix more permissions 2018-02-09 14:32:53 -08:00
Steve Sloka 4d060d3bdb Bump registry-creds version 2018-02-07 20:09:20 -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
Remi FUSSIEN dde00ebfa3 Fix the description in the completion command 2018-02-02 18:57:29 +01:00
Matt Rickard c76b210393
Merge pull request #2486 from langyxxl/localkube-add-root-check
localkube add ROOT permission check
2018-02-01 16:42:26 -08:00
adolphlwq 9b3805d32f use readable env name 2018-01-31 21:04:49 +08:00
sheng zhang 8b5ffff2d9 localkube add ROOT permission check. 2018-01-30 14:48:18 +08:00
Colin Hoglund 479ca10c75 allow storage-provisioner to be disabled 2018-01-29 14:46:27 -05:00
Zvi Cahana 6e8bb2e0fa List addons in a consistent sort order 2018-01-24 08:11:44 -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
Chen Li d11b74c493 Flush log message to file before exit
Fixes: https://github.com/kubernetes/minikube/issues/2435
2018-01-22 08:19:26 -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
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
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
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
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
Matt Rickard 4077763003 Make none driver work with kubeadm 2018-01-02 12:01:37 -08:00
kairen 777b44695f Improve cache list command 2017-12-08 13:37:55 -06:00
kairen 37bc507e13 Remove duplicate the cache command 2017-12-08 13:37:55 -06:00
kairen c9f3abb0ed Fix gofmt check errors 2017-12-08 13:37:55 -06:00
kairen 1966dab625 Add cache list support 2017-12-08 13:37:55 -06:00
dlorenc 9491ce6dbe Add deprecation notices for kvm and xhyve. 2017-11-29 13:55:29 -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
Priya Wadhwa 6652e7a903
Delete paths to cached images 2017-11-20 16:31:34 -08: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
Matt Rickard e0b9aab31d
Merge pull request #2197 from ulyssessouza/master
#2047 Fix by using 'RunE' instead of 'Run' to propagate the error
2017-11-16 10:15:52 -08:00
Matt Rickard bbc40bd8f6
Merge pull request #2194 from kenden/zsh_completion
Add zsh completion and docs
2017-11-16 08:51:58 -08:00
Patrik Erdes ce018263f4 Add MB to the help text for the --memory flag
Fixes  #2151
2017-11-16 10:36:54 +01:00
ulyssessouza e1dff19117 #2047 Fix by using 'RunE' instead of 'Run' to propagate the error 2017-11-15 03:37:20 +01:00
Quentin Nerden 97edb745c9 Add zsh completion and docs 2017-11-14 22:30:42 +01:00
dlorenc 6f7fd002ab
More storage provisioner fixes.
I'm not sure of a better way to ensure /tmp exists in a from scratch container,
but glog appears to just explode without it.
2017-11-07 11:07:01 -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 7ed6005911
Merge pull request #2139 from mahdix/update_check
Add update-check sub-command to list current and latest version number
2017-10-31 13:16:01 -07:00
Mahdi Mohammadi 6a8d277a01 Better error handling 2017-10-31 19:41:07 +00:00
Matt Rickard 30667cb406 Calculate ServiceClusterIP and DNS IP from CIDR 2017-10-31 10:06:51 -07:00
Mahdi Mohammadi 65e27a4ebd Add update-check sub-command to list current and latest version number 2017-10-31 13:42:11 +00: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
Ulysses Souza 9e8e1f256a #1944 Add the 3 services status in 'minikube status' exit status so it can be checked with a simple bitmask 2017-10-26 10:57:27 +02:00
Matt Rickard 8894ed78b9 Add verbose logging 2017-10-17 15:16:02 -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 8e02089766 Merge pull request #2067 from jiahao/jiahao/addons_list-grammar
addons_list.go: fix grammar in help string
2017-10-16 13:02:38 -07:00
Jiahao Chen 8c78239a98 addons_list.go: fix grammar in help string
there current status -> their current statuses
2017-10-16 15:15:40 -04:00
Matt Rickard 901c844a00 localkube changes 2017-10-13 10:21:16 -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 ec17df3e59 Added sshd, kubeconfig and insecure-serving flags to localkube for dind image 2017-09-28 16:05:51 -07:00
Matt Rickard 9d0c80dc54 Merge pull request #2010 from adolphlwq/remove-repeated-pkg
remove repeated pkg and cmdUtil -> cmdutil
2017-09-27 11:13:52 -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
adolphlwq 6d64d90dd7 remove repeated pkg and cmdUtil -> cmdutl
Signed-off-by: adolphlwq <kenan3015@gmail.com>
2017-09-27 14:11:58 +08:00
Sandeep Rajan eba63d86cd adding coredns as an addon 2017-09-21 10:28:45 -04:00
Matt Rickard ac7d49c124 Don't check kubernetes-version for kubeadm 2017-09-15 10:06:43 -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 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 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
Charlie Drage e959a848ce Update start.go with --vm-driver=none information
Updates the output in order to clarify commands as well as remove the
undeeded indentation.
2017-09-11 14:33:04 -04:00
Matt Rickard c5d6bc9dcf Merge pull request #1935 from krancour/distinct-client-cert
generate distinct cert for use by client
2017-09-08 15:26:25 -07:00
Kent Rancourt c571912b2d generate distinct cert for use by client 2017-09-08 17:54:58 -04:00
Matt Rickard f5e95e9223 Merge pull request #1911 from corlettb/master
Adding optional aws_session_token to configuration options for registry-creds
2017-09-08 11:06:29 -07:00
Aaron Prindle 0f975dd00c Merge pull request #1919 from aaron-prindle/add-files-dir
add files dir creation
2017-09-06 16:27:14 -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
Aaron Prindle cdddafa735 add files dir creation 2017-09-06 15:36:04 -07:00
Matt Rickard 3fb711c8ea Add feature flag for cache-images 2017-09-06 13:36:25 -07:00
Ben Corlett a2d8b1b434 - Passthrough aws region to registry-creds plugin
- Add optional aws_session_token to configuration options for registry-creds for aws sts credentials
2017-09-06 11:01:46 +01:00
Aaron Schlesinger 95c4556b6f Adding proper boilerplate 2017-08-31 16:12:41 -07:00
Aaron Schlesinger e99a378a85 Removing the "no buildable source files" error on non-linux machines 2017-08-31 15:24:04 -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 81f12caa87 Merge pull request #1828 from r2d4/in-tree-kvm
Bring KVM driver in-tree
2017-08-30 10:46:29 -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 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
hanks 5556ce9436 fix(config): make ARN of AWS role input optional 2017-08-25 15:38:08 +09:00
Matt Rickard 3a0d03f93b Merge pull request #1844 from r2d4/command-runner
Add CommandRunner interface
2017-08-24 15:07:51 -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 fd921b3997 Review feedback 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
Matt Rickard 793739d46a Remove tests that called exit code 2017-08-22 11:05:59 -07:00
Matt Rickard 6008e1f14f Merge pull request #1853 from r2d4/return-error-code
Exit with non-zero code on error
2017-08-21 13:14:33 -07:00
Matt Rickard 56132b6183 Delete profile config on machine delete
Also, don't print out anything when a profile doesn't exist.
2017-08-20 22:47:14 -07:00
Matt Rickard 5692c2e59c Exit with non-zero code on error
We don't log it, since RootCmd.Execute() will already print it out.
2017-08-20 22:16:17 -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 245c4a04de Merge pull request #1785 from r2d4/lint
go lint/vet fixes
2017-08-09 10:44:03 -07:00
Matt Rickard a02541d18b Add 'none' shell for docker-env output
This is for consumers who want the key/value output, but don't need the
shell directives.
2017-08-04 15:46:27 -07:00
Matt Rickard 5531a63b8d go lint/vet fixes 2017-08-04 13:42:10 -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
Matt Rickard 90dc5c87c9 Don't default to kubenet network plugin
Hostports seem to require extra CNI configuration and the CNI hostport
plugin installed to work properly with kubenet.
2017-07-25 10:07:10 -07:00
Matt Rickard 5e5a0fb971 Merge pull request #1718 from darkowlzz/1683-delete-machine-profile
cmd/minikube: delete accept no arguments
2017-07-24 15:09:34 -07:00
dlorenc 24e08b7337 Fix the way 'minikube status' finds the kubecfg file. 2017-07-24 11:40:15 -07:00
Matt Rickard 8eaf471940 Merge pull request #1727 from r2d4/typo2
\t isn't escaped in ``
2017-07-24 11:21:25 -07:00
Aaron Prindle 29a7d7119a Merge pull request #1436 from Teddy-Schmitz/registry-creds-gcrurl
Add gcrurl env var to registry-creds addon deployment and configuration
2017-07-24 10:16:13 -07:00
Sunny 17ba029cba cmd/minikube: delete accept no arguments
This changeset makes the delete command to error out if any argument is passed
to it.
2017-07-22 18:13:19 +05:30
Matt Rickard ca4de62179 \t isn't escaped in `` 2017-07-21 14:27:49 -07:00
Aaron Prindle c4ab0947c5 Merge pull request #1711 from upmc-enterprises/registryCredsAWSRole
Add additional config options for registry-creds addon / Bump version
2017-07-20 15:20:30 -07:00
Matt Rickard afcee9a5fc Merge pull request #1708 from svanellewee/issue-1608-password-hiding-again
added AskForPasswordValue and 2 tests
2017-07-20 12:02:07 -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 d332a2b818 Restore mount command
This seems to have been a mistake in 6f42d58.
2017-07-19 19:26:20 -05:00
Matt Rickard 8175c17a00 Use kubenet, add ebtables support
Fixes #1568
2017-07-18 14:43:56 -07:00
Steve Sloka 8ba6f47876 Add additional config options for registry-creds addon / Bump version 2017-07-18 11:10:24 -04:00
Stephan van Ellewee ed5843714c added AskForPasswordValue and 2 tests 2017-07-17 21:56:19 +02: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 8ad4ffe217 Change localkube 'show-version' flag
The k8s components are registering their flags on localkube, polluting
the flag namespace.  A 'version' flag was added, which conflicts with a
localkube flag.  Changing the name of this flag so that there is no
conflict.
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 b30bb20c20 Remove show-libmachine-logs, use-vendored-driver
These flags don't do anything anymore.

`show-libmachine-logs` behavior is triggered by the log level `--v`

`use-vendored-driver` was a feature flag and now we default to vendored
drivers when we can automatically.
2017-07-12 10:12:15 -07:00
Alessandro Pilotti 2298c931e7 Add message before waiting for the VM IP address
Retrieving the IP address depends on guest/host communication channels (e.g. KVP on Hyper-V) that might fail.
This commit adds a message that can help the user in troubleshooting potential issues.
2017-07-10 05:27:42 +03: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
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 79b9e10054 Added wait and interval time flags to minikube service command 2017-06-25 13:07:01 -07:00
Travis Cline c5becb3607 Allow control of user and group ids for mount 2017-06-22 11:29:56 -07:00
Aaron Prindle 4822d3aa33 Fixed condition to print minikube none information 2017-06-20 15:43:18 -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 51cf8cf9a8 fix registry addon labels
In a last-minute fix, I accidentally changed the pod labels all to
the minikube add-on reconciliation mode label instead of the add-on
name. This is causing the registry service to be unable to forward
requests over to the pods due to mismatched label selectors.
2017-06-19 11:39:18 -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
Matt Rickard c978526a3f Merge pull request #1583 from bacongobbler/registry-addon
introduce the "registry" addon
2017-06-16 10:44:00 -07:00
Matthew Fisher 5e1db75db5 add registry addon
This addon installs a docker registry into the cluster.
2017-06-16 10:36:10 -07:00
Budh Ram Gurung 96cb95bdfd Fix typo, grammar, punctuations and formatting 2017-06-16 17:56:51 +05:30
Shane Ramey 2b88806330 use --dns-domain for k8s API server cert 2017-06-15 07:48:37 -07:00
Matt Rickard 6ee3a941a9 Correct NewAPIClient invocation
Two merges happened close to each other, the first changed the
signature of this function.
2017-06-14 11:13:04 -07: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 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
Roland Schilter 94c7a7854a Fix typos in profile help 2017-06-12 17:18:21 +02: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
dlorenc d5e4d45718 Only validate the version if it's not default. 2017-05-26 12:56:59 -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
Aaron Prindle 3cd1aeec1d Merge pull request #1493 from aaron-prindle/ssh-key-cmd
Added ssh-key cmd
2017-05-16 15:58:01 -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
Aaron Prindle 0e868644d9 Added ssh-key cmd 2017-05-15 09:15:47 -07:00
Budh Ram Gurung 22e0f23845 Consistent short description for commands 2017-05-13 08:29:48 +05:30
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 e91641c70c Changed --name to --profile and added minikube profile command 2017-05-08 10:09:11 -07:00
Teddy Schmitz 5f6511c73c Add gcrurl env var to addon deployment and configuration 2017-05-02 12:14:17 +08:00
dlorenc 61ec292451 Fix minikube flag parsing. (#1418)
We can't use flags in init like this. They're not parsed yet.
2017-05-01 10:05:34 -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
dlorenc c23dfba5d2 Update the addon manager. (#1301)
This gets us closer to being able to disable the storage provisioner.
2017-04-24 10:36:02 -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
dlorenc e620cf7e09 Properly respect WantKubectlDownloadMsg (#1397) 2017-04-21 13:54:30 -07:00
Matt Rickard 438db81d9a Set log levels in command prerun
If this is called in init, glog and viper haven't been properly set up
yet, so it does not trigger the logging output.
2017-04-21 11:41:30 -07:00
Aaron Prindle 4e00a5a9f4 Added check for kubectl on Windows as well 2017-04-20 11:44:59 -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
Wiiliam Chang 3b7615b45f Add the multi VM drive discription. 2017-04-14 09:12:29 +08:00
Everett Toews aa9f16bd87 Inform users which version of Kubernetes is starting (#1332)
This can be very informative for users new to Kubernetes and minikube.
2017-04-11 07:45:30 -07:00
Aaron Prindle 447b3cb9f9 Merge pull request #1333 from aaron-prindle/no-minikube-dir
Removed .minikube folder creation from version command
2017-04-09 10:11:51 -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 fcc1bdedda Removed .minikube folder creation from version command 2017-04-06 14:01:16 -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 49ab18a1ac Merge pull request #1322 from aaron-prindle/addon-configure-cmd
added minikube addons configure command to replace auto-prompting to …
2017-04-03 14:40:31 -07:00
Aaron Prindle 0e78712fd4 added minikube addons configure command to replace auto-prompting to make scripting addons possible 2017-04-03 11:50:21 -07:00
Aaron Prindle f475961cde Added --dns-domain flag to localkube 2017-04-03 10:25:25 -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
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 3ad0190d78 Merge pull request #1288 from r2d4/dedupe
Don't glog top level command error message
2017-03-28 21:09:18 -07:00
Aaron Prindle f5fd42ea4d Removed error reporting prompt from minikube delete 2017-03-27 10:34:06 -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 1e74692340 Don't glog top level command error message
This is already printed to stderr through RootCmd.Execute().  We could
save to this the glog logs by supressing the RootCmd.Execute() error
output, but this displays a more user friendly error (i.e. no log
prepended info)
2017-03-23 15:10:42 -07:00
Steve Sloka 3624aa2e22 Added missing delete secret for dpr 2017-03-23 11:07:56 -04:00
Steve Sloka ad770c7a3d Add support for private docker registry in registry-creds 2017-03-23 09:36:21 -04: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 d2e355182b Fix logging message for feature gates 2017-03-16 11:23:51 -07:00
dlorenc e969ebe87b Add an external hostpath provisioner to localkube. 2017-03-01 11:05:14 -08: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
Steve Sloka 50cb1f2a32 Fix boilerplate 2017-02-27 13:31:37 -05:00
Steve Sloka 706d02b926 Fix go-client / Refactor k8s util code 2017-02-27 12:52:33 -05:00
Steve Sloka 60d9d1e142 Refactor registry addon 2017-02-27 11:09:09 -05:00
Steve Sloka c3d962b58c Allow for addons to prompt for data input 2017-02-27 11:09:09 -05: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
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 7f13944043 Merge pull request #1150 from r2d4/env-tests
Add test coverage for cmd/docker-env
2017-02-22 13:25:34 -08:00
Matt Rickard c4196b65be Add test coverage for SetupKubeConfig 2017-02-22 11:39:55 -08:00
Matt Rickard 51d49b6dfa Add test coverage for MaybeWantKubectlUpdateMessage 2017-02-21 10:14:06 -08:00
Matt Rickard 7aaccedadc Add test coverage for cmd/docker-env 2017-02-20 11:30:57 -08:00
Matt Rickard 69f0a9f99a Refactor service package and add test coverage 2017-02-20 11:24:36 -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 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
Matt Rickard a44f87d57a Call RootCmd's persistentPreRun from svc cmd
Currently the service command overwrites the RootCmd's persistent pre
run.  Now it will run the rootcmd's persistent pre run after it runs
its own.
2017-02-13 11:38:54 -08:00
Matt Rickard f52805360d Merge pull request #1109 from endocode/dongsu/err-msg-newline
Add missing newline chars to error messages
2017-02-10 09:56:38 -08:00
Aaron Prindle c418095c38 Added MINIKUBE_HOME env variable which sets .minikube directory 2017-02-09 11:07:44 -08:00
dlorenc ab9cbf7ec0 Merge pull request #1091 from aaron-prindle/start-progress
Added additional print statements to minikube start
2017-02-09 10:57:42 -08:00
Dongsu Park 2976ae28af Add missing newline chars to error messages
Several error messages don't print out newline characters at the end,
for example:

```
$ minikube addons open dashboard
This addon does not have an endpoint defined for the 'addons open' command
You can add one by annotating a service with the label kubernetes.io/minikube-addons-endpoint:dashboard$
```
2017-02-09 17:29:39 +01: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
Aaron Prindle 7d30b4bf18 Added additional print statements to minikube start 2017-02-04 14:53:53 -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 dfdbc6a768 Fixes from gometalinter 2017-01-30 15:39:35 -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
Aaron Prindle c610deaa43 Fixed kubectl download text/check for Windows 2017-01-18 10:52:20 -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
fate-grand-order c4ed8df451 fix missing argument for Printf 2017-01-17 15:17:40 +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
Paulo Bittencourt 621178bce0 Print update notification to stderr 2017-01-11 08:42:01 -05: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