-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from AnaisUrlichs/operator
fix: enhancing operator docs
- Loading branch information
Showing
5 changed files
with
47 additions
and
21 deletions.
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
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
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
# K8sGPT Operator | ||
|
||
K8sGPT can run as a Kubernetes Operator inside the cluster. | ||
The scan results are provided as Kubernetes YAML manifests. | ||
|
||
This section will only detail how to configure the operator. For installatio instrusction, please see the [getting-started section.](../../getting-started/in-cluster-operator.md) | ||
|
||
## Customising the Operator | ||
|
||
As with other Helm Charts, the K8sGPT Operator can be customised by modifying [the `values.yaml` file.](https://github.com/k8sgpt-ai/k8sgpt/blob/main/charts/k8sgpt/values.yaml) | ||
|
||
### In-cluster metrics | ||
|
||
It is possible to enable metrics of the operator so that they can be scraped through Prometheus. | ||
|
||
This is the configuration required in the `values.yaml` manifest: | ||
```yaml | ||
serviceMonitor: | ||
enabled: true | ||
``` | ||
|
||
The new `values.yaml` manifest can then be provided upon installing the Operator inside the cluster: | ||
```bash | ||
helm install release k8sgpt/k8sgpt-operator --values values.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