sustainable-computing-io / kepler-helm-chart

Apache License 2.0
12 stars 33 forks source link

Kepler helm chart on k3d on mac intel #14

Open AntonioDiTuri opened 1 year ago

AntonioDiTuri commented 1 year ago

Since I was not able to run kepler on minikube I tried out k3d on a mac like this:

k3d cluster create kepler-cluster

This is the output of k get nodes

NAME                          STATUS   ROLES                  AGE   VERSION
k3d-kepler-cluster-server-0   Ready    control-plane,master   22s   v1.25.7+k3s1

After I tried to deploy kepler with the helm chart with the following command: helm install kepler . --values values.yaml --create-namespace --namespace kepler

But the pod does not get created and it is stuck in the ContainerCreating state due to a Failed Mount:

Unable to attach or mount volumes: unmounted volumes=[usr-src], 
unattached volumes=[lib-modules tracing proc usr-src kube-api-access-2bh9r]: timed out waiting for the condition
MountVolume.SetUp failed for volume "usr-src" : hostPath type check failed: /usr/src is not a directory

/usr/src is not a directory in Mac.

I was taking a look at this stack overflow question: https://stackoverflow.com/questions/34141228/does-usr-local-src-on-mac-not-exist. Shall I force the creation of the directory in the file system?

Any idea on how to solve it?

I am still stuck and could not deploy Kepler locally for testing purposes

bradmccoydev commented 1 year ago

Hello @AntonioDiTuri If you are wanting to try for testing purposes have you seen the makefile in the kepler repo. It has a entry for cluster-up this might be an easier way for testing instead of the helm chart on the mac??

You can find it at the bottom of the makefile

https://github.com/sustainable-computing-io/kepler/blob/main/Makefile

SamYuan1990 commented 1 year ago

as there no Cgroup or ebpf on MacOS, as those things are linux specific. if you run kepler ... on mac. well, there will be lots of limitation. in other words, do we support macOS for now? @rootfs

rootfs commented 1 year ago

refer to this https://github.com/sustainable-computing-io/kepler-helm-chart/issues/12#issuecomment-1538383346