-
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.
docs: update kepler_daemon for super linter
Signed-off-by: Maryam Tahhan <[email protected]>
- Loading branch information
1 parent
84378f0
commit f4c9f37
Showing
1 changed file
with
33 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,42 @@ | ||
# Kepler DaemonSet Customization | ||
|
||
Kepler enables a function to hybrid read environment variable from attributes directly (container.env) and from the ConfigMap. Note that, all steps will be operated by [Kepler Operator](https://github.com/sustainable-computing-io/kepler-operator) if the operator is installed. | ||
|
||
To set environments by ConfigMap: | ||
|
||
1. Create/Generate ConfigMap | ||
|
||
```yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: kepler-cfm | ||
namespace: kepler-system | ||
data: | ||
MODEL_SERVER_ENABLE: true | ||
COUNTER_METRICS: '*' | ||
CGROUP_METRICS: '*' | ||
BPF_METRICS: '*' | ||
# KUBELET_METRICS: '' | ||
# GPU_METRICS: '' | ||
PERF_METRICS: '*' | ||
MODEL_CONFIG: | | ||
POD_COMPONENT_ESTIMATOR=true | ||
POD_COMPONENT_INIT_URL=https://raw.githubusercontent.com/sustainable-computing-io/kepler-model-server/main/tests/test_models/DynComponentPower/CgroupOnly/ScikitMixed.zip | ||
``` | ||
```yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: kepler-cfm | ||
namespace: kepler-system | ||
data: | ||
MODEL_SERVER_ENABLE: true | ||
COUNTER_METRICS: '*' | ||
CGROUP_METRICS: '*' | ||
BPF_METRICS: '*' | ||
# KUBELET_METRICS: '' | ||
# GPU_METRICS: '' | ||
PERF_METRICS: '*' | ||
MODEL_CONFIG: | | ||
POD_COMPONENT_ESTIMATOR=true | ||
POD_COMPONENT_INIT_URL=https://raw.githubusercontent.com/sustainable-computing-io/kepler-model-server/main/tests/test_models/DynComponentPower/CgroupOnly/ScikitMixed.zip | ||
``` | ||
2. Mount the ConfigMap to DaemonSet: | ||
```yaml | ||
spec: | ||
containers: | ||
- name: kepler-exporter | ||
volumeMounts: | ||
- name: cfm | ||
mountPath: /etc/config | ||
readOnly: true | ||
volumes: | ||
- name: cfm | ||
configMap: | ||
name: kepler-cfm | ||
``` | ||
```yaml | ||
spec: | ||
containers: | ||
- name: kepler-exporter | ||
volumeMounts: | ||
- name: cfm | ||
mountPath: /etc/config | ||
readOnly: true | ||
volumes: | ||
- name: cfm | ||
configMap: | ||
name: kepler-cfm | ||
``` |