Commit Graph

344 Commits (33584026c1bbe92310c66926abfe3afe39381dd7)

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