You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Imran Raza Khan <im...@gmail.com> on 2019/09/12 15:20:32 UTC
Restart POD on ConfigMap Change with kubernetes Component
I am looking for option to restart pods if configmap get change, but i was
not able to find trigger for it, please point me in the right direction,
example would be look like
from(to("kubernetes-config-maps:///?kubernetesClient=#kubernetesClient&operation=getConfigMapEvents")
.toF("kubernetes-pods://
https://localhost:8443?oauthToken=xxxxxxxx&operation=deletePod", host,
authToken);
.toF("kubernetes-pods://
https://localhost:8443?oauthToken=xxxxxxxx&operation=createPod", host,
authToken);
Last two lines are available in documents but not the first where i can get
events from configmap