WindmillWWindmill
Powered by
Trevor SullivanT
Windmill•3y ago•
12 replies
Trevor Sullivan

Passing file from worker container into new Docker container

I was planning to create a video describing how to create custom user interfaces in Windmill, for managing Kubernetes clusters.

I need to pass the
kubeconfig.yml
kubeconfig.yml
file, containing the authentication details, from the Windmill worker container, into a new Docker container.

Previously, I've simply installed software (such as
kubectl
kubectl
) into the worker, but using a container helps make things more reliable and less prone to conflicts.

The worker container doesn't appear to have any mounts to the host, except for the Docker unix socket.

I am struggling to think of any ways to pass
kubeconfig.yml
kubeconfig.yml
as an environment variable or file.

Any ideas?

EDIT: I suppose one option would be to modify the
docker-compose.yml
docker-compose.yml
to mount a named volume to the worker containers. I could then use the same named volume in my "child" containers from a Bash script. I would prefer to avoid modifying the default deployment though.
image.png
WindmillJoin
3,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c Ā· 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra Ā· 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 šŸ™‚

henri-c Ā· 4w ago

Similar Threads

Custom worker docker image
cmptrCcmptr / help
2y ago
Share file that is produced by a container running in a worker
NunoANNunoA / help
14mo ago
Connect postgres from docker.
CamoCCamo / help
2y ago
Self-hosted- Mounting volume into docker-compose
VegetableVVegetable / help
3y ago