watcher 0.4.4
watcher
Helm-based continuous delivery tool.
Description
Watcher checks Helm repositories for new versions of configured Charts based on a strategy. If a new version is available, then it will try to deploy it inside your cluster automatically.
Installation
From source
Please make sure you have installed Crystal and friends on your machine. Once you have all the tooling in place, let's start building the application:
shards build --release --no-debug --static
This will build the application in "production" mode; it might take a few seconds to spit out an executable. Once done, the application will be available inside the ./bin
directory.
NOTE: You will NOT be able to build a static executable under macOS; you will need to remove the --static
option.
Using Docker
docker pull boord/watcher
docker run
NOTE: You can also check the provided Docker Compose file for an example of how to run the application.
Via Helm
helm repo add boord https://charts.boord.io
helm install watcher boord/watcher
Configuration
version: "1"
name: Grafana
source:
repository: https://grafana.github.io/helm-charts
chart: grafana
strategy: LatestCreatedStable
target:
name: grafana
namespace: monitoring
create_namespace: true
values:
service:
type: LoadBalancer
persistence:
enabled: true
size: 20Gi
Development environment
The development environment has the following requirements:
- minikube or an alternative, the Kubernetes version distributed with Docker seems to work fine.
- Helm (optional)
- Helm ChartMuseum plugin (optional)
docker-compose up -d --build
Running the command above will build, and start watcher
alongside a chartmuseum
instance. To quickly inspect the logs for watcher
, just run the following command:
docker logs -f watcher
At this point, chartmuseum
is available on http://localhost:8080 and the authentication/authorization features are entirely disabled. You can use your local helm
CLI tool to interact with it. If you have installed the ChartMuseum Push plugin, you can start uploading Helm Charts into this instance.
You can remove the entire development environment with the following command:
docker-compose down
Contributing
- Fork it (https://github.com/boorderline/watcher/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Tudor Marghidanu - creator and maintainer
watcher
- 2
- 0
- 0
- 0
- 0
- about 3 years ago
- October 30, 2021
MIT License
Sun, 22 Dec 2024 09:07:34 GMT