Commit Graph

2369 Commits (0ecbe7f4eefc1c09c27322439b657cbfa30304d4)

Author SHA1 Message Date
Medya Ghazizadeh d97418828d
Merge pull request #10119 from daehyeok/profile_name
Don't allow profile names that conflict with a multi-node name
2021-02-02 15:12:57 -08:00
Daehyeok Mun a00d632930 Check profile, node name to prevent duplication
Check profile and node name before add to prevent conflict with
machine name on multinode cluster.
2021-01-28 14:42:40 -08:00
Ling Samuel 101d39fc51
Addon custom registry:
* fix missing suffix when using global image repo
* support override global image repo
* change all imagePullPolicy to IfNotPresent
* fix empty global image repo suffix

Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
2021-01-27 10:33:08 +08:00
Ling Samuel 52f0e49a1e
Fix docker.io/ prefix
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
2021-01-27 10:33:07 +08:00
Ling Samuel de3c901c18
Implement all addons
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
2021-01-27 10:33:07 +08:00
Ling Samuel b949034e1a
Manage addon images in code, support custom addon images
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
2021-01-27 10:33:00 +08:00
Medya Ghazizadeh 597091d84b
Merge pull request #10106 from spowelljr/userFlag
Add new flag --user and to log executed commands
2021-01-26 15:44:58 -08:00
Priya Wadhwa 24aefaebb6 Unhide --schedule flag for scheduled stop 2021-01-26 13:05:30 -08:00
Anders F Björklund 7e9d58c468 The gopsutil cpu implementation changed in v3
Was supposed to return the number of vCPU (i.e. nproc)
Before, both "physical" and "logical" returned the same.

The returned information should match cpuinfo and lscpu:
    CPU(s) = Socket(s) x Core(s) each x Thread(s) each
2021-01-26 17:48:52 +01:00
Steven Powell 5058ef3e71 moved username validation to cmd 2021-01-25 10:57:52 -07:00
Steven Powell 81ac8a1677 fixed user name warning possibly not matching what was checked 2021-01-25 09:45:49 -07:00
Steven Powell 14bcd9ddec added user flag validation and improved some test messages 2021-01-22 15:39:15 -07:00
Priya Wadhwa b2623d4d4e make a default container runtime constant so that it is easy to change in the future 2021-01-22 14:00:47 -08:00
Thomas Stromberg 38b74f1910 Merge branch 'master' into docker-info-err 2021-01-21 18:25:59 -08:00
Thomas Stromberg 6b8469e971 Split PROVIDER_DOCKER_NOT_RUNNING into more specific reason codes 2021-01-21 18:25:45 -08:00
Steven Powell 82f7df5b56 Add user flag and log executed commands 2021-01-20 17:30:48 -07:00
Anders F Björklund fc8ef79c37 Avoid warning about the suggested memory size
The recommendation is to use (at least) 2048 MB *for the VM*,
which means that you will end up something like 1992 MB total.
We should not issue warnings when using the recommended size,
so lower the limit to 1900 MB (kubeadm will validate 1700 MB).

The reason it is broken is because it uses different values
for different drivers, if running a VM or on Bare Metal...
There is also no difference anymore between the "usable"
and the "recommended", so this will need revisiting later.
2021-01-20 20:20:13 +01:00
Anders F Björklund 541193c945 Address review comments, rename to ssh-ip-address 2021-01-16 14:44:56 +01:00
Anders F Björklund 4611e2fe76 Merge branch 'master' into generic 2021-01-16 14:34:04 +01:00
Medya Ghazizadeh 8b76fa2c46
Merge pull request #10126 from medyagh/extension_context
add  annotation to kubeconfig to identify contexts/clusters created by minikube
2021-01-14 17:23:17 -08:00
Thomas Stromberg c6a27bd9ea Merge to master 2021-01-14 14:22:55 -08:00
Medya Gh 5ddf54b32f refactor to make testable 2021-01-14 10:01:35 -08:00
Anders F Björklund abb556f7f5 Merge branch 'master' into generic 2021-01-13 20:15:17 +01:00
Medya Ghazizadeh 787591a6a2
Merge pull request #10109 from lingsamuel/fix-docker-env
Ignore non-socks5 ALL_PROXY env var when checking docker status
2021-01-12 13:50:46 -08:00
Anders F Björklund b2121eae39 Rename the generic driver to the ssh driver
Now that we have forked the machine driver
2021-01-09 14:36:32 +01:00
Thomas Stromberg 6ec94aa064 Merge to master 2021-01-08 15:40:24 -08:00
Thomas Stromberg 66a671fc86 Experimental macOS/arm64 work 2021-01-08 15:38:31 -08:00
Daehyeok Mun 36d94a2d88 Migrate MachineName function.
Migrate MachineName function from driver package to config package.
2021-01-08 11:26:10 -08:00
Anders F Björklund d51443bee1 Show remote host info and proper progress 2021-01-08 16:38:27 +01:00
Anders F Björklund 39218369c0 Improve help text for generic driver flags 2021-01-08 07:55:28 +01:00
Anders F Björklund 749843248e Merge branch 'master' into generic 2021-01-08 07:53:49 +01:00
Ling Samuel e127bc23fe
Ignore non-socks5 ALL_PROXY env var when checking docker status
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
2021-01-08 12:04:36 +08:00
priyawadhwa 857e0a2089
Merge pull request #10100 from priyawadhwa/force-systemd-containerd
Add support for systemd cgroup to containerd runtime
2021-01-07 11:26:50 -08:00
Priya Wadhwa 0b522445ad update flag and documentation 2021-01-06 14:38:15 -08:00
Anders F Björklund 72a0fd6642 Move the constants for flag defaults from drivers
Not using the default libmachine drivers anymore
2021-01-06 20:24:50 +01:00
Anders F Björklund a3b3b55ac0 Add helper for checking the generic driver name 2021-01-06 18:18:00 +01:00
Anders F Björklund 2b5c5b9202 Try to uninstall kubernetes on delete, for generic 2021-01-06 18:03:46 +01:00
Anders F Björklund c07666957a Don't download ISO for the generic VM driver 2021-01-06 18:03:46 +01:00
Anders F Björklund 00763352b6 Add minikube support for the "generic" VM driver
This driver connects to an already existing virtual machine,
using the provided IP address and SSH user/key/port parameters.

On this machine, libmachine will provision the docker daemon
and minikube will bootstrap the kubernetes cluster (as usual).
2021-01-06 18:03:43 +01:00
Yanshu Zhao 7fa6d545d7 Change warning 2021-01-04 07:31:41 +00:00
Yanshu Zhao 58dedbbb18 Delete the existing cluster if guest driver mismatch 2021-01-02 08:35:02 +00:00
Medya Ghazizadeh 6d763a1cc7
Merge pull request #9955 from daehyeok/delete_machine_dirs
Delete subnode's machine directories
2020-12-30 22:23:20 -08:00
Medya Ghazizadeh 3dac483db9
Merge pull request #10028 from azhao155/yzhao/fix/dockerEnvLog
Change exit to warning if can't restart docker in docker-env cmd
2020-12-23 18:00:19 -08:00
Daehyeok Mun b11190c64e Delete subnode's machine directories 2020-12-23 14:06:26 -08:00
Priya Wadhwa e210a72bfa update warning 2020-12-23 14:03:10 -08:00
Priya Wadhwa 322efcb406 Merge branch 'master' of https://github.com/kubernetes/minikube into network-flag 2020-12-23 14:02:22 -08:00
Medya Ghazizadeh 9a0be2e2d2
Merge pull request #10037 from afbjorklund/kubeadm-memory2
The kubernetes memory requirement is for the total
2020-12-23 13:53:05 -08:00
Anders F Björklund 402d31b195 The kubernetes memory requirement is for the total
The kernel will reserve some memory for itself, so if you want
1700 MB free you need to allocate 1800 MB for the VM hardware.

The recommendation is still 2048 (or 2000), with an even 2.0 GiB.
So let's increase the old values with +100, for ~60 overhead.
2020-12-23 22:32:56 +01:00
Yanshu Zhao 68181145bd Add error in the log 2020-12-23 21:05:43 +00:00
Medya Ghazizadeh f68005724c
Merge pull request #9958 from tstromberg/vmwarefusion
Remove obsolete 'vmwarefusion' driver, add friendly message
2020-12-23 12:56:05 -08:00