etcd api on CoreOS – setting ip address configurations remotely

I am attempting to use etcd‘s remote api to configure a coreOS box remotely with static values like ip address, dns resolve address, gateway, ect.

I theory I should be able to file something like:

  • Php on docker : Using setLocale
  • Jenkins build inside a docker container with generated reports
  • Docker passing in a variable into an shell script running git clone
  • Is that possible to get image ID from Docker Registry V2?
  • swarm, kubernetes or mesos for batch processing jobs
  • Converting standard LAMP installation to Docker?
  • curl -X PUT “http://xxx.xxx.xxx.xxx:4001/v2/keys/etcd/registry/???_/_state?prevExist=false” -d value=10.10.10.1

    But i can’t find a reference to the exact syntax to use.

  • Docker performance on ubuntu host 2x+ worse than OSX host
  • COPY of existing file in Dockerfile fails mysteriously
  • Multiple instance application in docker
  • Docker - Couldn't connect to Docker daemon
  • Docker pull by digest does not work with Docker 1.13.1 & Artifactory 5.0.1
  • How to have docker restart container with a completely new container?
  • One Solution collect form web for “etcd api on CoreOS – setting ip address configurations remotely”

    etcd doesn’t handle configuration of the host system. It is a distributed key / value store. It can certainly store configuration for applications and maybe even the host. But you have need some other tool to pull the data from the store and transform it into configuration that the application or host recognizes. The application I use to do this inside Docker containers is confd (https://github.com/kelseyhightower/confd).

    For configuration of the CoreOS host, you would generally be using Cloud-Config (https://coreos.com/docs/cluster-management/setup/cloudinit-cloud-config/) and writing unit files to deal with certain parts of the system, such as networking (https://coreos.com/docs/cluster-management/setup/network-config-with-networkd/). Hope this helps!

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.