-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add doc index and improve installation with helm support #173
Open
startxfr
wants to merge
4
commits into
krkn-chaos:main
Choose a base branch
from
startxfr:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
3af401f
Add doc index and improve installation with helm support
startx-lab d73d60c
Update according to @pagerube14 review
startx-lab e9ee9da
Add doc index and improve installation with helm support
startx-lab ef308c3
Merge branch 'main' of github.com:startxfr/cerberus
startx-lab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
## Cerberus watchdog Guide | ||
|
||
|
||
### Table of Contents | ||
- [Cerberus watchdog Guide](#cerberus-watchdog-guide) | ||
- [Table of Contents](#table-of-contents) | ||
- [Introduction](#introduction) | ||
- [Tooling](#tooling) | ||
- [Workflow](#workflow) | ||
- [Using Cerberus as part of a tekton pipeline](#using-cerberus-as-part-of-a-tekton-pipeline) | ||
- [Start as a single taskrun](#start-as-a-single-taskrun) | ||
- [Start as a pipelinerun](#start-as-a-pipelinerun) | ||
|
||
|
||
### Introduction | ||
|
||
One keypoint of a chaos infrastructure test is the way to obtain a reliable status of the health of your targeted cluster. | ||
Cerberus is that master piece component that observe regulary various central components of your targeted cluster and return an updated | ||
signal of the global health of you cluster. | ||
|
||
For more detail about chaos challenges, read the [cerberus introduction to chaos testing](https://github.com/chaos-kubox/krkn/blob/main/docs/index.md#introduction) | ||
|
||
### Tooling | ||
|
||
In this section, we will go through how [cerberus](https://github.com/chaos-kubox/cerberus) - a cluster watchdog can help test the global health state of OpenShift and make sure you track state change and return an updated global health signal. | ||
|
||
#### Workflow | ||
Let us start by understanding the workflow of Cerberus: the user will start by running cerberus by pointing to a specific OpenShift cluster using kubeconfig to be able to talk to the platform on top of which the OpenShift cluster is hosted. This can be done by either the oc/kubectl API or the cloud API. Based on the configuration of cerberus, it will [watch for nodes](https://github.com/startxfr/cerberus/blob/main/docs/config.md#watch-nodes), | ||
[watch for cluster operators](https://github.com/startxfr/cerberus/blob/main/docs/config.md#watch-cluster-operators), | ||
[watch for master schedulable status](https://github.com/startxfr/cerberus/blob/main/docs/config.md#watch-master-schedulable-status), | ||
[watch for defined namespaces](https://github.com/startxfr/cerberus/blob/main/docs/config.md#watch-namespaces) and | ||
[watch for defined routes](https://github.com/startxfr/cerberus/blob/main/docs/config.md#watch-routes). | ||
Accoridng to the result of theses check, cerberus will return a go/no-go signal representing the overall health of the cluster. | ||
|
||
![Cerberus workflow](../media/cerberus-workflow.png) | ||
|
||
### Using Cerberus as part of a tekton pipeline | ||
startxfr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
You can find on [artifacthub.io](https://artifacthub.io/packages/search?kind=7&ts_query_web=cerberus) the | ||
[cerberus-check](https://artifacthub.io/packages/tekton-task/startx-tekton-catalog/cerberus-check) `tekton-task` | ||
which can be used to check a cerberus signal (and a cluster global health) as part of a chaos pipeline. | ||
|
||
To use this task, you must have **Openshift pipeline** enabled (or tekton CRD loaded for Kubernetes clusters) | ||
startxfr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#### Start as a single taskrun | ||
|
||
```bash | ||
oc project default | ||
oc apply -f https://github.com/startxfr/tekton-catalog/raw/stable/task/cerberus-check/0.1/samples/taskrun.yaml | ||
``` | ||
|
||
startxfr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#### Start as a pipelinerun | ||
|
||
```yaml | ||
oc apply -f https://github.com/startxfr/tekton-catalog/raw/stable/task/cerberus-check/0.1/samples/pipelinerun.yaml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a list here of components that cerberus can watch. Could you update that check box list with the links to the docs/config section for each? Please be sure to add the link to the main chaos-kubox repo not your own thanks