Code Monkey home page Code Monkey logo

Comments (1)

gianarb avatar gianarb commented on June 16, 2024

I validated that the tink-worker picks up configuration from a YAML file. Obviously, it does not work as smoothly and nicely as I would like to but we can make it somewhere I suppose. I say that because it does not pick up from a file the TLS cert for the tink-client, those have to be passed via environment variable to the container. We have to figure out how I suppose.

I tried it on Osie and it works. First the configuration file looks like this:

id: "hardware-uuid-from-proc-cmdline"
docker-registry: "ip-from-proc-cmdline"
registry-username: "same-as-before-admin"
registry-password: "same-as-before"

This is the docker command I used to start the tink-worker docker container:

docker run --privileged -t --name "tink-worker" \
	-e "TINKERBELL_GRPC_AUTHORITY=$grpc_authority" \
	-e "TINKERBELL_CERT_URL=$grpc_cert_url" \
	-v /worker:/worker \
	-v /var/run/docker.sock:/var/run/docker.sock \
        # this is the location of the generated configuration file
        -v /etc/tinkerbell/tink-worker.yaml:/etc/tinkerbell/tink-worker.yaml /
	-t \
	--net host \
	"$docker_registry/tink-worker:latest"

from hook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.