Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add vagrant plugin #457

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions plugins/vagrant.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: vagrant
spec:
homepage: https://github.com/huazhihao/kube-vagrant
shortDescription: create a multi-node kubernetes cluster locally with vagrant
version: v0.1.0
description: |
`kube-vagrant` is a kubectl plugin to create a multi-node kubernetes
cluster locally with vagrant, so you can quickly set up a dev cluster
with one command line.

`kube-vagrant` is similar to [kops](https://github.com/kubernetes/kops)
which also provides command line interface to create kubernetes cluster
but only on a cloud environment (aws, gce or openstack). `kube-vagrant`
and `kops` not in conflict but complementary.

Usage:
# create a cluster with default settings (3 nodes with 2GB mem each)
$ kubectl vagrant up

# when cluster is created, config yaml will be saved to .kube/config
$ kubectl --kubeconfig=.kube/config cluster-info

caveats: |
This plugin requires vagrant and virtualbox

platforms:
- selector:
matchExpressions:
- key: os
operator: In
values:
- darwin
- linux
uri: https://github.com/huazhihao/kube-vagrant/releases/download/v0.1.0/kube-vagrant.tar.gz
sha256: 22dc2b6ddae9d515c2535589ebbe7d7e8fe865fbf606b793549a7a95375d4b1a
bin: kube-vagrant
files:
- from: ./kube-vagrant
to: kube-vagrant
- from: ./LICENSE
to: .