I’ve found a way to retrieve metadata defined at Kubernetes deployment level within the containers :
By adding these lines ( env: ) in the containers part of the deployment file .yaml :
- image: 19562019/centos-ribo1
- name: APPLI_AGGREGATE_1*
- name: APPLI_AGGREGATE_2*
then a docker inspect of the containers created by this deployment shows following env variables :
Not too bad …
Using environment variables injection seems the only way (up to now) .