Skip to content
Snippets Groups Projects
README.md 1.95 KiB
Newer Older
Arie Peterson's avatar
Arie Peterson committed
# OpenAppStack bootstrap script

This collection of scripts allows you to easily set up a new OpenAppStack cluster.

As part of the bootstrap process a special control shell is installed (in the form of
a Docker image) which contains utilities to manage your cluster.

## Prerequisites

We assume a single-node setup for now.
Arie Peterson's avatar
Arie Peterson committed

You need to have ssh access to the root account of the machine that will run
your cluster.

## Bootstrapping a new cluster
Arie Peterson's avatar
Arie Peterson committed

To run the bootstrap process:

```
./bootstrap $SERVER_IP
```

where `$SERVER_IP` is the ip address of the machine. (This address will also be
stored in the cluster configuration and is used by the Traefik ingress
controller, so even though using a domain name instead of an ip address may
work at first, that is not recommended.)

The bootstrap script will fire up your text editor to let you specify some
basic configuration parameters that are needed to set up your cluster. When
you're done editing, save and exit your editor, and the bootstrap process will
continue.

Arie Peterson's avatar
Arie Peterson committed
## Managing an existing cluster

The OpenAppStack project has created a special "control shell", a Docker
container that you can run to perform administrative tasks on your cluster.
Some programs that you can run from this shell:
* `kubectl` is the Kubernetes control program. For example, run
  `kubectl get pod` to see a list of pods that currently exist in your cluster.
  Run `kubectl --help` for help.
* `helm` is the "Kubernetes package manager". Use `helm ls` to see what apps are
  installed in your cluster. You can also use it to perform manual upgrades;
  see `helm --help`.
* `helmfile` is a high-level tool to manage your app installations. For example,
  run `helmfile -e oas diff` to view the differences between what's currently
  installed and what should be installed according to the OpenAppStack
  installation plan.

Arie Peterson's avatar
Arie Peterson committed
To start the control shell, run

```
./manage $SERVER_IP
```

where `$SERVER_IP` is the address of the machine running your cluster.