Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.67 KB

getting-started.md

File metadata and controls

55 lines (36 loc) · 1.67 KB

Getting started

This document describes how to setup your local development environment for StatusBay.

Preparation

Make sure the following tools are installed:

Fork StatusBay project

Run Minikube

If you want to run the watcher application, you should have a running K8S environment. Minikube is one the options to achieve that.

$ minikube start

Run MySQL

$ docker run -p 3306:3306 -e MYSQL_DATABASE=statusbay -e MYSQL_ROOT_PASSWORD=1234 -d mysql:5.7

Run StatusBay watcher

This command will run StatusBay watcher.

Please refer to configuration example file to see additional configurations.

$ go run main.go -config ./examples/configuration/kubernetes.yaml -mode kubernetes -kubeconfig ~/.kube/config


# The reason we pass -kubeconfig in the command above is in order to define the cluster we wish the watcher to subscribe to it's event stream.

Run the API server

This command will run the API server.

Please refer to configuration example file to see additional configurations..

$ go run main.go -config ./examples/configuration/api.yaml -mode api -events ./examples/configuration/events.yaml

Deployment example via Helm

Use this Helm application in order to test your deployment.