Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DL agent #88

Closed
wants to merge 1 commit into from
Closed

Add DL agent #88

wants to merge 1 commit into from

Conversation

angelini
Copy link
Contributor

@angelini angelini commented May 5, 2024

A design for the agent and the K8S tooling necessary to run it locally with Docker desktop.

$ make setup-k8s
$ make deploy-k8s

Connect to the demo sandbox pod:

$ kubectl --context docker-desktop -n dateilager exec -it dl-sandbox-bbfb85548-r92vg -- bash
bash-5.2$ curl dl-agent.dateilager.svc.cluster.local:8080/healthz
{"status":"OK"}
bash-5.2$ curl -XPOST -H 'Content-Type: application/json' -d "{\"uid\":\"${K8S_CONTAINER_ID}\", \"volume\": \"appdir\"}"  dl-agent.dateilager.svc.cluster.local:8080/link_cache

And it is currently failing with:

ln /home/main/varlib/cni/cache/results/cni-loopback-00d359d08d903c13c8e918d44f02db2f2b81084e298d39bbd0818392d9f6fdcc-eth0 /tmp/dl_cache_k8s/kubelet/pods/5c7ee044-ba3a-4b8a-b25b-b192d4f85eec/volumes/kubernetes.io~projected/appdir/dl_cache/cni/cache/results/cni-loopback-00d359d08d903c13c8e918d44f02db2f2b81084e298d39bbd0818392d9f6fdcc-eth0: link /home/main/varlib/cni/cache/results/cni-loopback-00d359d08d903c13c8e918d44f02db2f2b81084e298d39bbd0818392d9f6fdcc-eth0 /tmp/dl_cache_k8s/kubelet/pods/5c7ee044-ba3a-4b8a-b25b-b192d4f85eec/volumes/kubernetes.io~projected/appdir/dl_cache/cni/cache/results/cni-loopback-00d359d08d903c13c8e918d44f02db2f2b81084e298d39bbd0818392d9f6fdcc-eth0: invalid cross-device link

@angelini angelini requested a review from airhorns May 5, 2024 13:08
@angelini angelini force-pushed the dl_agent branch 6 times, most recently from 2e54999 to 26b2ba5 Compare May 5, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant