-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add installation doc - Reorg dir - Add technical deep dive section Signed-off-by: Parul Singh <[email protected]>
- Loading branch information
1 parent
723420e
commit 3fd4550
Showing
9 changed files
with
150 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Kepler Community Operator on OpenShift |
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,57 @@ | ||
# Deploy using Helm Chart | ||
|
||
The Kepler Helm Chart is available on [GitHub](https://github.com/sustainable-computing-io/kepler-helm-chart/tree/main) and [ArtifactHub](https://artifacthub.io/packages/helm/kepler/kepler) | ||
|
||
For Installation [Helm](https://helm.sh) must be installed to use the charts. | ||
Please refer to Helm's [documentation](https://helm.sh/docs/) to get started. | ||
|
||
The chart is accessible using the following commands: | ||
|
||
Add the helm repo | ||
|
||
```bash | ||
helm repo add kepler https://sustainable-computing-io.github.io/kepler-helm-chart | ||
``` | ||
|
||
You can see the latest version by using the folllowing command: | ||
|
||
```bash | ||
helm search repo kepler | ||
``` | ||
|
||
If you would like to test and look at the manifest files before deploying you can run: | ||
|
||
```bash | ||
helm install kepler kepler/kepler --namespace kepler --create-namespace --dry-run --devel | ||
``` | ||
|
||
Then to install run the following: | ||
|
||
```bash | ||
helm install kepler kepler/kepler --namespace kepler --create-namespace | ||
``` | ||
|
||
You may want to override [values.yaml](https://github.com/sustainable-computing-io/kepler-helm-chart/blob/main/chart/kepler/values.yaml) file use the following command. | ||
|
||
```bash | ||
helm install kepler kepler/kepler --values values.yaml --namespace kepler --create-namespace | ||
``` | ||
|
||
The following table lists the configurable parameters for this chart and their default values. | ||
|
||
Parameter|Description| Default | ||
---|---|--- | ||
global.namespace| Kubernete namespace for kepler |kepler | ||
image.repository|Repository for Kepler Image| quay.io/sustainable\_computing\_io/kepler | ||
image.pullPolicy|Pull policy for Kepler|Always | ||
image.tag|Image tag for Kepler Image |latest | ||
serviceAccount.name|Service acccount name for Kepler|kepler-sa | ||
service.type|Kepler service type|ClusterIP | ||
service.port|Kepler service exposed port|9102 | ||
|
||
#### Uninstall Kepler | ||
To uninstall this chart, use the following steps | ||
|
||
```bash | ||
helm delete --purge kepler --tiller-namespace <namespace> | ||
``` |
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,28 @@ | ||
# Kepler Operator on Kind | ||
|
||
## Getting Started | ||
|
||
You’ll need a Kubernetes cluster to run against. You can use KIND to get a local cluster for testing, or run against a remote cluster. Note: Your controller will automatically use the current context in your kubeconfig file (i.e. whatever cluster kubectl cluster-info shows). | ||
|
||
### To run a kind cluster locally | ||
|
||
``` sh | ||
make cluster-up CLUSTER_PROVIDER='kind' CI_DEPLOY=true GRAFANA_ENABLE=true | ||
``` | ||
|
||
### To run kepler-operator locally on the cluster | ||
You can use the image from quay.io to deploy kepler-operator. | ||
|
||
```sh | ||
make deploy IMG=quay.io/sustainable_computing_io/kepler-operator:latest | ||
kubectl apply -k config/samples/ | ||
``` | ||
|
||
### Uninstall the operator | ||
To delete the CRDs from the cluster: | ||
```sh | ||
make undeploy | ||
``` | ||
|
||
|
||
To run Kepler operator on a kind cluster [follow](https://github.com/sustainable-computing-io/kepler-operator#getting-started) |
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 @@ | ||
# Install Kepler as RPM | ||
To install the kepler rpm [download](https://github.com/sustainable-computing-io/kepler/releases/) the latest stable version, unpack and install: | ||
|
||
```sh | ||
sudo dnf localinstall kepler-[version.arch].rpm | ||
|
||
systemctl start kepler.service | ||
``` | ||
|
||
Check status with | ||
|
||
```sh | ||
systemctl status kepler.service | ||
|
||
journalctl -f | grep kepler | ||
``` | ||
|
||
In order to do process-level energy accounting type: | ||
```sh | ||
mkdir -p /etc/kepler/kepler.config | ||
echo -n true > /etc/kepler/kepler.config/ENABLE_PROCESS_METRICS | ||
``` | ||
The kepler service runs on default port 8888. | ||
|
||
Use your web browser to navigate to the machine IP on port 8888. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Kepler Deep Dive | ||
|
||
- [ ] Components and what they do | ||
- [ ] What metrics are gathered on various systems | ||
* [ ] BM | ||
* [ ] VM | ||
* [ ] Linux standalone | ||
- [ ] Why these metric? | ||
- [ ] How is the power consumption attribution done? | ||
- [ ] Explain the [models](https://github.com/sustainable-computing-io/kepler-model-server/tree/main/tests/test_models). How the models are different and is there a right use case/scenario for when to apply a particular model over another? | ||
* [ ] AbsComponentModelWeight | ||
* [ ] AbsComponentPower | ||
* [ ] AbsModelWeight | ||
* [ ] AbsPower | ||
* [ ] DynComponentModelWeight | ||
* [ ] DynComponentPower | ||
* [ ] XGBoost | ||
|
||
- [ ] Each model has three sub models BPFOnly, CgroupOnly, CounterOnly but we use only one of these models. Why is that? | ||
|
||
|
||
|
||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mkdocs | ||
mkdocs-static-i18n | ||
mkdocs-material |