Skip to content

Commit

Permalink
Signing (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacox authored Mar 13, 2018
1 parent a0903eb commit 41dad82
Show file tree
Hide file tree
Showing 25 changed files with 1,421 additions and 387 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ matrix:
- MINIKUBE_CPU=4
- MINIKUBE_DRIVER=none

language: bash
language: node
nodejs:
- "8"

addons:
apt:
packages:
- curl
- rsync
- rsync
- socat
- time
- devscripts
Expand All @@ -35,15 +37,15 @@ before_install:
# install nsenter which is required for port forwarding
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then .ci/ubuntu-compile-nsenter.sh && sudo cp .tmp/util-linux-2.30.2/nsenter /usr/local/bin; fi
- make bats
- make example

script:
- bash scripts/dotfiles
- bash scripts/chkdirs
- /usr/bin/time -v make -e linuxreqs

script:
- sudo chown -R $USER /usr/local
- sudo mkdir -p /etc/kubernetes
- sudo chown -R $USER /etc/kubernetes
- /bin/bash -l -c "/usr/bin/time -v make -e ci"
- bin/kubash yaml2cluster -n default $(KUBASH_DIR)/examples/example-cluster.yaml
- /bin/bash -l -c "echo kubash openebs"
- bats .tests.bats
12 changes: 2 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $(eval HELM_INSTALL_DIR := "$(KUBASH_BIN)")

reqs: linuxreqs

linuxreqs: $(KUBASH_BIN) kubectl helm minikube jinja2 submodules/openebs
linuxreqs: $(KUBASH_BIN) kubectl helm minikube jinja2 submodules/openebs yaml2json

helm: $(KUBASH_BIN)
@scripts/kubashnstaller helm
Expand Down Expand Up @@ -156,15 +156,7 @@ examples:
sed -i 's/^my-/coreos-/' $(KUBASH_DIR)/clusters/coreos/provision.csv

example:
mkdir -p clusters/default
cp -iv hosts.csv.example clusters/default/hosts.csv
cp -iv users.csv.example clusters/default/users.csv
cp -iv provision.csv.example clusters/default/provision.csv
cp -iv ca-data.yaml.example clusters/default/ca-data.yaml
cp -iv templates/ca-csr.json clusters/default/
cp -iv templates/ca-config.json clusters/default/
cp -iv templates/client.json clusters/default/
cp -iv net_set.example clusters/default/net_set
$(HOME)/.kubash/kubash yaml2cluster -n default $(KUBASH_DIR)/examples/example-cluster.yaml

yaml2json:
npm i -g yaml2json
Expand Down
44 changes: 41 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

Build, provision, initialize, add common components, and tear down a cluster PDQ.

[![Build Status](https://travis-ci.org/joshuacox/kubash.svg?branch=master)](https://travis-ci.org/joshuacox/kubash)
[![Build Status](https://travis-ci.org/kubash/kubash.svg?branch=master)](https://travis-ci.org/kubash/kubash)
[![Waffle.io - Columns and their card count](https://badge.waffle.io/kubash/kubash.svg?columns=all)](https://waffle.io/kubash/kubash)

old waffle (still has quite a backlog)
[![Waffle.io - Columns and their card count](https://badge.waffle.io/joshuacox/kubash.svg?columns=all)](https://waffle.io/joshuacox/kubash)

Dev [![Build Status](https://travis-ci.org/joshuacox/kubash.svg?branch=master)](https://travis-ci.org/joshuacox/kubash)

Build production ready clusters using a variety of technologies along the way.

By default, this will build an image using packer, then rebase that image for your nodes.
Expand All @@ -18,10 +23,43 @@ Install with one easy line
curl -L git.io/kubash|bash
```

Get started by making the example cluster from the example-cluster.yaml `cd ~/.kubash; kubash -n example yaml2cluster example-cluster.yaml;ls -lh clusters/example`
Get started by making the example cluster from the example-cluster.yaml

```
cd ~/.kubash
kubash -n example yaml2cluster examples/example-cluster.yaml
ls -lh clusters/example
```

Now build the image `kubash build --target-os kubeadm`

[![asciicast](https://asciinema.org/a/164070.png)](https://asciinema.org/a/164070)

Then `kubash provision -n example`

[![asciicast](https://asciinema.org/a/164071.png)](https://asciinema.org/a/164071)

And finally `kubash -n example init`

[![asciicast](https://asciinema.org/a/164079.png)](https://asciinema.org/a/164079)

By default kubash is quiet unless an error is hit (though some of the
programs called by kubash might not be very quiet). If you like
watching noisy output crank up the verbosity by adding a few v flags
(i.e. `-vvvv`) or secify the verbosity `--verbosity 100` or export it as
a environment variable e.g.

```
export VERBOSITY=100
```

kubash output will be denoted by appending `#`s in front of various
verbosity levels e.g.

```
############# Kubash, by Josh Cox
```

### Alternative pipelines

There are also alternative methods available for the steps,
Expand Down Expand Up @@ -86,7 +124,7 @@ kubash -n clustername COMMAND

### Commands:

[yaml2cluster](./docs/yaml2cluster.md) - Build a cluster directory from a yaml cluster file
[yaml2cluster](./docs/yaml2cluster.md) - Build a cluster directory from a [yaml cluster file](./examples/example-cluster.yaml)

[json2cluster](./docs/yaml2cluster.md) - Build a cluster directory from a json cluster file

Expand Down
Loading

0 comments on commit 41dad82

Please sign in to comment.