This is a docker container intended to run inside a kubernetes cluster to collect config maps with a specified label and store the included files in an local folder. It can also send a html request to a specified URL after a configmap change. The main target is to be run as a sidecar container to supply an application with information from the cluster. The contained python script is working with the Kubernetes API 1.10
Currently (April 2018) there is no simple way to hand files in configmaps to a service and keep them updated during runtime.
Run the container created by this repo together you application in an single pod with a shared volume. Specify which label should be monitored and where the files should be stored. By adding additional env variables the container can send a html request to specified URL.
Example for a simple deployment can be found in example.yaml. Depending on the cluster setup you have to grant yourself admin rights first: kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user $(gcloud config get-value account)
LABEL
FOLDER
NAMESPACE
ALL to search in all namespaces.REQ_URL
REQ_METHOD
REQ_PAYLOAD
Content type
Image
Digest
Size
27.4 MB
Last updated
over 5 years ago
docker pull banzaicloud/k8s-sidecar