dlorenc
81440feabb
Fix Kubernetes 1.11 builds
...
Add a versioned flag for the enable-admission-control flags
Add a second step to call "kubeadm alpha phase addon all" which seems to be required now to get coredns running.
I tested this all the way back to 1.9.0.
2018-07-04 09:22:41 -07:00
Aaron Prindle
525c615a17
added minikube version and os to user agent in update checks
2018-06-20 15:16:18 -07:00
dlorenc
2b0e10c9ec
Fix gofmt.
2018-06-18 08:39:11 -07:00
Peter Trotman
1921679f9c
Use constants.DefaultNodeName in kubeadm
2018-06-18 08:39:11 -07:00
Peter Trotman
3dfea62fd4
Changed the nodes within the VM to use a NodeName variable that is
...
seperate from the VM Machine Name to ensure proper functionality when
using different profile names.
2018-06-18 08:39:11 -07:00
dlorenc
4b060b26fb
Manual changes for go-containerregistry.
2018-06-14 10:09:06 -07:00
dlorenc
a2218d2e7e
Add two more kubeadm preflight ignores to make e2e tests pass.
2018-06-12 13:48:29 -07:00
dlorenc
79682c2059
Fix the minikube status command.
...
There were a few cases where stdout wasn't getting flushed correctly,
leading to flakiness in e2e tests.
2018-06-12 10:27:55 -07:00
Rohit Agarwal
0df67ee4af
Changes to make 'virsh console minikube' work.
2018-06-11 08:45:59 -07:00
ruicao
6a2020d8a1
Typo fix: Explictly -> Explicitly
2018-06-07 09:01:54 -07:00
dlorenc
305e803316
Bump Docker API Verson.
2018-06-05 13:45:01 -07:00
Mark Gibbons
e37d6157eb
Updated to make code clearer for newer versions and remove duplication of image names
2018-06-05 08:15:38 -07:00
Mark Gibbons
abdcd2ce1d
changed to use MustParseRange
2018-06-05 08:15:38 -07:00
Mark Gibbons
376380e74e
Update code to cache correct images for different k8s versions
2018-06-05 08:15:38 -07:00
AdamDang
fb5f548c14
Typo fix: formating->formatting
...
formating->formatting
2018-06-04 09:57:31 -07:00
seborama
ee73cbde6b
Added hyperkit options for enterprise VPN support
...
The purpose of these changes is to enhance Hyperkit support from the
minikube command line for better integration with enterprise networks
behind a VPN.
uuid: Provide VM UUID to restore MAC address (only supported with
Hyperkit driver).
vpnkitSock: Location of the VPNKit socket used for networking. If empty,
disables Hyperkit VPNKitSock, if 'auto' uses Docker for Mac
VPNKit connection, otherwise uses the specified VSock."
vsockPorts: List of guest VSock ports that should be exposed as sockets
on the host (Only supported on with hyperkit now).
Note:
tests pass but file:
`vendor/github.com/google/certificate-transparency/go/x509/root_darwin.go`
has to be edited to correct an issue - not committed since this is in
the vendor directory.
2018-06-04 09:46:20 -07:00
mlgibbons
e9b95df587
Update to catch any errors in loading of cached images into Docker cache in VM which were previously being ignored and leading to unreliable "minikube start" especially in offline mode.
2018-06-04 08:15:12 -07:00
Michal Rostecki
1468a4c8a7
kubeadm: Check for GetClientset error
...
`elevateKubeSystemPrivileges` was using `GetClientset` function
and getting the err object from, but err wasn't checked.
2018-05-30 22:37:52 -07:00
kairen
dadb7adf23
Update pre-cache images to correct version
...
Signed-off-by: kairen <kyle.b@inwinstack.com>
2018-05-23 13:18:44 -07:00
Ivan Hamilton
4bdba1f20b
Issue certificates with NotBefore set 1 day prior to avoid drift/timezone issues in VM
2018-05-23 13:18:26 -07:00
Ivan Hamilton
52cf7de475
Load cached images using VM path separators
2018-05-21 08:05:21 -07:00
dlorenc
8c6afecc88
Move the etc data directory to data/minikube to make cleanup safer.
2018-05-17 13:27:19 -07:00
dlorenc
b54950fb2b
Start the default network for the kvm2 driver.
2018-05-11 13:07:19 -07:00
dlorenc
fe971d8a53
Fix 1.9.x versions of Kubernetes.
...
This was a silly typo on my part.
2018-05-10 20:35:39 +02:00
kairen
d7737980b7
Fix addon enable broken issue for Ingress
2018-05-08 11:27:26 +02:00
AdamDang
6bb278a958
Typo fix: priviledges->privileges
...
priviledges->privileges
2018-05-03 12:06:25 +02:00
Arnaud MAZIN
b25f82759f
Create empty map if Nil
2018-04-29 18:24:25 -07:00
Arnaud MAZIN
3f9350da72
fmt
2018-04-29 18:24:25 -07:00
Arnaud MAZIN
cc41522545
added map[string]string argument parsing for eviction-like arguments
2018-04-29 18:24:25 -07:00
AdamDang
3c50dee461
Update config.go
2018-04-23 20:10:55 +08:00
AdamDang
d01d8e5773
Update cluster.go
2018-04-23 20:10:04 +08:00
Viktor Safronov
9ad5b4a190
Disable dnsmasq on minikube-net network for kvm driver
2018-04-20 07:40:43 -07:00
dlorenc
258d1e149c
Add none driver to the supported list.
2018-04-17 13:42:37 -07:00
PI-Victor
84bb1cba26
config: make hyperkit and kvm2 available as supported drivers
2018-04-17 13:22:17 -07:00
Anders F Björklund
8e299f4a67
Add the CRI preflight ignore, lost in refactoring
...
Also move the corresponding comments to the code
2018-04-16 08:54:22 -07:00
dlorenc
2ec4692cf0
Fix gofmt.
2018-04-13 20:33:53 -07:00
awalker125
6158dd406e
swith filepath.join for path.join
2018-04-13 08:35:32 -07:00
Anders F Björklund
fc9f45f426
Use --skip-preflight-checks for k8s < 1.9
2018-04-13 08:34:05 -07:00
dlorenc
0bf5166e14
Deprecate localkube.
2018-04-09 13:24:07 -07:00
Tim Hockin
b27a989c86
Pass 2: k8s GCR vanity URL
2018-04-09 08:36:59 -07:00
Matt Rickard
d0755b6819
kubeadm: increase mark master timeout
2018-04-05 14:38:27 -07:00
dlorenc
cc356e63c4
Miscellaneous none driver fixes.
2018-04-04 13:58:50 -07:00
Anders F Björklund
5b54dd6e16
Ignore preflight errors from CRI (dockershim.sock)
...
kubeadm init is running `crictl -r /var/run/dockershim.sock info`
before the socket actually exists (kubelet hasn't started up yet)
2018-03-30 08:32:19 -07:00
dlorenc
dcb5c2cc50
Manual changes for 1.10.
...
localkube now has to be non-statically compiled :(
2018-03-27 23:13:34 -07:00
Matt Rickard
c98115f172
Merge pull request #2590 from dlorenc/validating
...
Add the ValidatingAdmissionWebhook controller.
2018-03-12 10:27:03 -07:00
Yongkun Anfernee Gui
0fa64b3bd8
Reorganize the minikube drivers
...
- Add registry to register all supported drivers in different platforms.
- Add DriverDef to define driver's metadata.
- All driver support logic moved to pkg/minikube/drivers, removed all
driver name switches scattered in different packages.
2018-03-11 13:41:30 -07:00
Yongkun Anfernee Gui
ab9f3b234d
Remove OS dependent SupportedVMDrivers
...
Use ListDrivers() method to get the list of VM drivers.
SupportedVMDrivers become the whole list of VM drivers on all
platforms, which is used in gendocs only.
2018-03-11 13:41:30 -07:00
Yongkun Anfernee Gui
1057edfa8f
Add registry to discover driver in different platforms
...
Different platform has differnet list of supported drivers. The
registry contains the correct list of drivers that are supported. In
future we could add commands like `minikube list-drivers`
2018-03-11 13:41:30 -07:00
dlorenc
3cce3ca727
Make ResourceQuota last.
2018-03-06 20:50:22 -08:00
dlorenc
b227d6d5e9
Add the ValidatingAdmissionWebhook controller.
2018-03-06 09:12:38 -08:00
Matt Rickard
f4c1a3568c
Merge pull request #2403 from afbjorklund/preflight
...
Remove --skip-preflight-checks, ignore unwanted checks
2018-02-26 22:38:11 -08:00
Matt Rickard
6e49d6a711
Merge pull request #2566 from dvdmuckle/master
...
Add metrics-server as an addon
2018-02-22 13:53:38 -08:00
Fabian Deutsch
ee58133538
kvm2: Switch to CPU passthrough mode by default
...
With passthrough mode we can enable KVM nesting for guests.
Fixes #2553
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2018-02-22 10:42:20 -08:00
Fabian Deutsch
b08b8ab8ae
Revert "kvm: Passthrough host CPU in order to allow nesting"
...
This reverts commit 7a4babe1d6
.
For now we just hard-code passthrough.
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2018-02-22 10:42:20 -08:00
Fabian Deutsch
3ddf9d65f6
kvm: Passthrough host CPU in order to allow nesting
...
Before this patch the virtual CPU was the stock qemu CPU, in the sense that
the virtual CPU features were set according to the default qemu CPU.
With this change the CPU features of the host will be copied at start to the
domain definition. This includes features like svm and vmx, which in turn allow
to run nested virtualization if the host is configured accordingly i.e.
`kvm_intel nested=y` in `/etc/modprobe.d/kvm.conf`.
To turn on nesting, a user has to specify `--kvm-cpu-model host-model` when
creating the VM.
Resolves #2553
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2018-02-22 10:42:20 -08:00
David Muckle
adb30393d1
Add metrics-server as an addon
2018-02-21 15:33:27 -05:00
Matt Rickard
f0f098af45
Merge pull request #2384 from r2d4/kubeadm-default
...
Switch default bootstrapper to kubeadm
2018-02-20 14:57:34 -08:00
dlorenc
9fe9154614
Make a crio restart failure a warning instead of an error.
...
This is a mismatch issue between new minikube versions and old ISO versions. It's
also unlikely to cause a real issue because it requires users to opt-into crio and
modify crio-specific settings to cause trouble.
2018-02-15 11:52:24 -08:00
dlorenc
ce6a727fc0
Make the admission controllers shared between localkube and kubeadm.
2018-02-15 11:51:57 -08:00
dlorenc
6492095398
Add the MutatingAdmissionWebhook admission controller.
2018-02-15 11:51:57 -08:00
dlorenc
23d9fde284
Fix none driver stop commands.
2018-02-15 11:51:37 -08:00
Hank Jacobs
b6f3cd0163
Use host's name when running VBox manage command to determine VM host IP
2018-02-14 08:18:19 -08:00
Matt Rickard
a2665d0dd8
Merge pull request #2545 from jeis2497052/master
...
Propose fix a typo
2018-02-13 13:49:44 -08:00
John Eismeier
7f3a46bfb3
Propose fix a typo
2018-02-13 14:48:11 -05:00
Matt Rickard
7cea97d92a
Merge pull request #2541 from budhrg/refactor-get-downloadurl
...
Refactor get download url for minikube
2018-02-12 10:25:11 -08:00
Budh Ram Gurung
68285d1779
Refactor get download url for minikube
2018-02-12 13:15:06 +05:30
Matt Rickard
38f4a767bc
Merge pull request #2534 from anfernee/permission
...
Fix more permissions
2018-02-09 16:01:38 -08:00
Matt Rickard
b5ba9093f5
Merge pull request #2535 from anfernee/local-rm
...
Use stdlib to remove a local file
2018-02-09 16:01:24 -08:00
Yongkun Anfernee Gui
9a0d2e9c12
Use stdlib to remove a local file
...
Make it portable across platforms
2018-02-09 14:49:02 -08:00
Yongkun Anfernee Gui
c07258b45a
Fix more permissions
2018-02-09 14:32:53 -08:00
Matt Rickard
ce310f4070
Merge pull request #2533 from anfernee/permission
...
Chmod -x kubernetes.go
2018-02-09 13:58:01 -08:00
Yongkun Anfernee Gui
49757dccfa
Chmod -x kubernetes.go
2018-02-09 12:12:13 -08:00
Yongkun Anfernee Gui
ac123c48a9
Close file after reading
2018-02-09 10:51:38 -08:00
Chen Li
82ea016de7
Redirect command Stdout & Stderr for command_runner
...
CombinedOutput function return after command complete.
When we run a long run command, such as continuously get
new log entries, it failed to get run results.
Fixes: https://github.com/kubernetes/minikube/issues/2447
2018-02-05 09:18:49 -08:00
Anders F Björklund
0e674ef3fa
Make sure to enable docker, to please kubeadm
...
The kubeadm preflight looks if the docker service is enabled,
rather than checking the docker socket... So make it happy.
2018-02-05 09:17:19 -08:00
adolphlwq
14ef5f6b9a
use better package name according to https://blog.golang.org/package-names
2018-02-05 08:11:23 -08:00
Anders F Björklund
95067859d2
Fix gendocs, function DefaultMountDir was missing
2018-01-28 08:07:30 -08:00
Matt Rickard
ec1b443722
Merge pull request #2423 from kairen/add-freshpod-addon
...
Add freshpod as a new addon
2018-01-23 13:15:01 -08:00
Bin Liu
3fb4cadef1
Fix typo
2018-01-19 19:17:09 +08:00
Chen Li
aa32282e3f
Use IPSliceVar for apiServerIPs
2018-01-17 08:22:25 -08:00
Chen Li
a3f3286f50
Allow add new server names and IPs to apiserver x509 certificate
2018-01-17 08:22:25 -08:00
Chen Li
7709a2b39e
Fix the usage of --apiserver-name
...
Fixes #2361
2018-01-17 08:22:25 -08:00
kairen
53d6e9d7a2
Change freshpod from Deployment to RC
2018-01-13 02:14:26 +08:00
kairen
250d602085
Add freshpod as a new addon
2018-01-12 22:57:32 +08:00
basp
cebd704bd7
Issue #2416 : Added UUID to hyperkit driver section in minikube configuration to be able to regenerate the same mac address for the machine after restarts to give DHCP a change of assigning the previously used IP address.
2018-01-11 09:41:35 -08:00
kairen
08f4677511
Change kubernetes-dashboard from RC to Deployment
2018-01-10 02:15:07 +08:00
kairen
b1091853cc
Bump kube-addon-manager to v6.5
2018-01-08 14:06:29 -08:00
Anders F Björklund
fc9fe5fa21
Make sure to keep other files in kube-proxy ConfigMap
...
The data was being overwritten with the new file map,
which caused the "config.conf" file to be deleted (!).
Compared to the original "kubeconfig.conf" generated,
the template also inserted an extra newline character.
2018-01-08 08:39:03 -08:00
Anders F Björklund
747e4551fe
Remove --skip-preflight-checks, ignore unwanted checks
...
Better to ignore the checks that we don't want, rather than
disabling all of them in case something important appears...
Currently known failing checks:
[WARNING SystemVerification]: docker version is greater than
the most recently validated version. Docker version: 17.06.0-ce. Max validated version: 17.03
[WARNING FileExisting-crictl]: crictl not found in system path
[WARNING Service-Docker]: docker service is not enabled, please run 'systemctl enable docker.service'
[ERROR DirAvailable--etc-kubernetes-manifests]: /etc/kubernetes/manifests is not empty
[ERROR Swap]: running with swap on is not supported. Please disable swap
2018-01-07 17:07:42 +01:00
Suraj Deshmukh
5d7d751db8
Change the cri-o socket location to upstream default
...
Right now the cri-o socket is placed in `/var/run/crio.sock`, this
commit changes it to `/var/run/crio/crio.sock` which is similar to
upstream.
Signed-off-by: Suraj Deshmukh <surajd.service@gmail.com>
2018-01-04 10:35:08 -08:00
Hugues Alary
bc55b8b8be
Cleanup NFS Exports after stop and delete
2018-01-03 10:21:04 -08:00
Matt Rickard
8ac130046d
Switch default bootstrapper to kubeadm
2018-01-03 09:54:49 -08:00
Anders F Björklund
87f48f1731
Add config to avoid warning about the none driver
...
Even when starting up minikube in a dedicated virtual machine,
there will be a warning against running it on your workstation.
2018-01-03 09:47:24 -08:00
dlorenc
59274b22da
Code review feedback.
2018-01-02 16:18:54 -08:00
dlorenc
e3f3727b4d
Move GetNetAddr.
...
The build constraints in vmnet.go cause issues.
2018-01-02 16:18:54 -08:00
Mohit Gupta
7d9413ccd1
remove the hyperkit prefix so we can move this to other drivers as well with time and fix vendoring issue
2018-01-02 16:18:54 -08:00
Mohit Gupta
e1903b7423
support NFS sharing with the hyperkit driver
2018-01-02 16:18:54 -08:00
dlorenc
5df299c7e9
Make other lifecycle commands work.
2018-01-02 12:01:37 -08:00
dlorenc
fcdd1404e8
Use the real GetIP function.
2018-01-02 12:01:37 -08:00
dlorenc
3d13450846
Make rbac creation idempotent.
...
Also cleanup the etcd data dir in jenkins.
2018-01-02 12:01:37 -08:00