An agent that sends out alerts when kubernetes resources are misconfigured or have issues based on rules.
Please see Docs for detailed documentations
In order to install merlin, you'll need to install the CRD (custom resource definition) first, run
make install
to install the CRDs
To uninstall CRDs, you can run:
make uninstall
Once CRDs are installed, you can start setting what rules you'd like to have, there are several samples under config/samples
,
you can run
make apply-samples
to apply all sample resources
After you've applied the custom resources, run
make deploy
to install the controller.
Note this will create a namespace called merlin
and install the controller manager in it.
You can run the tests with
make test
By default controller tests use envtest
to run the tests, but you can change it to use existing cluster by setting environment varialbe USE_EXISTING_CLUSTER=1
for references, here
is the list of environment variables can be used to change envtest
's behavior.
Other tests uses testing and mock for unit testing and mocking API calls.
You can also run the controllers locally against an existing cluster that your kube config points to, just run
make run
- Bill Chung (@billcchung)
Please read the CLA below carefully before submitting your contribution.
Copyright 2021 Mercari, Inc.
Licensed under the Apache 2.0 License.