redhat-nfvpe / vnf-asterisk

Documentation, configuration, reference material and other information around an Asterisk-based VNF
Apache License 2.0
39 stars 9 forks source link

Adapt containers so they may communicate with the controller via etcd (how?!?!?!?! :)) #35

Closed dougbtv closed 7 years ago

dougbtv commented 7 years ago

Alright, this is really part of the v0.0.2 tagged release of the vnf-asterisk-controller -- it's kind of crude, but, it does the trick for now, the gist is that it uses an entrypoint script to talk to etcd, and uses environment variables to tell it where etcd is.

The way forward that's "the right way" is probably to use a Kubernetes job to do this when the pod is created.