Skip to content

Commit d700f89

Browse files
author
Sunil Thaha
authored
Merge pull request #2169 from sthaha/chore-compose-kubeconfig
chore(compose): restructure dev env for comparing all workloads
2 parents bec7b86 + 8606957 commit d700f89

File tree

12 files changed

+2662
-13
lines changed

12 files changed

+2662
-13
lines changed

compose/dev/compose.yaml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ services:
1515
# NOTE: Use 28282 for host
1616
- 28283:28282
1717
privileged: true
18-
# pid: host
1918
volumes:
2019
- type: bind
2120
source: /proc
@@ -25,22 +24,33 @@ services:
2524
source: /sys
2625
target: /host/sys
2726
read_only: true
27+
- type: bind
28+
source: ./kepler-dev/etc/kepler/
29+
target: /etc/kepler
30+
read_only: true
31+
32+
# NOTE: place kubeconfig here
33+
# e.g. cp $KUBECONFIG ./shared/kube/kubeconfig
34+
# for kind cluster, rename host in kubeconfig to kind-control-plane:6443
35+
- type: bind
36+
source: ./shared/kube
37+
target: /host/kube
38+
read_only: true
39+
2840
command:
29-
- --log.level=debug
30-
- --host.procfs=/host/proc
31-
- --host.sysfs=/host/sys
41+
- --config.file=/etc/kepler/config.yaml
3242

3343
networks:
34-
- kepler-network
35-
# cap_add:
36-
# - ALL
44+
- kepler-dev
45+
# - kind # NOTE: uncomment to use kind
3746

3847
kepler-old:
3948
image: quay.io/sustainable_computing_io/kepler:latest
4049
privileged: true
4150
pid: host
4251
networks:
43-
- kepler-network
52+
- kepler-old
53+
# - kind # NOTE: uncomment to use kind
4454
cap_add:
4555
- ALL
4656
ports:
@@ -54,8 +64,12 @@ services:
5464
source: /sys
5565
target: /host/sys
5666
- type: bind
57-
source: ./kepler/etc/kepler
67+
source: ./kepler-old/etc/kepler
5868
target: /etc/kepler
69+
- type: bind
70+
source: ./shared/kube
71+
target: /host/kube
72+
read_only: true
5973

6074
entrypoint: [/usr/bin/bash, -c]
6175
command:
@@ -72,7 +86,8 @@ services:
7286
-address "0.0.0.0:8888" \
7387
-disable-power-meter=$$DISABLE_POWER_METER \
7488
-v "8" \
75-
-enable-gpu=false
89+
-enable-gpu=false \
90+
# -kubeconfig=/host/kube/kubeconfig
7691
7792
environment:
7893
- DISABLE_POWER_METER=${DISABLE_POWER_METER:-false}
@@ -130,6 +145,10 @@ services:
130145
- node-exporter-network
131146

132147
networks:
133-
kepler-network:
148+
kepler-old:
149+
kepler-dev:
134150
scaph-network:
135151
node-exporter-network:
152+
# NOTE: uncomment to use kind
153+
# kind:
154+
# external: true

0 commit comments

Comments
 (0)