All,

I'm aware that there is a k8s manager for clustering (CloudMembershipService) but I was wondering if / how that could be extended in order to provide any other types of automated configuration information for a Tomcat installation.

For example, I'd love to be able to deploy a Tomcat node and have it grab its primary database connection information from k8s.

I spent like 5 minutes reading through the CloudMembershipService and KubernetesMembershipProvider classes and it seems to be all bundled together and very geared toward fetching cluster information.

It seems that most of the KubernetesMembershipProvider.start method could be moved into a separate support class which just manages k8s connection information (e.g. fetching from the environment, building URLs to various interesting paths, wrapping fethcing-and-JSON-parsing, etc.) and that could be re-used for a parameter-resolver for XML config files like we can do for system properties like

<Connector jvmRoute="${foo}">

It occurs to be that we should be able to do something like this:

<Connector jvmRoute="${k8s:jvmRoute}">

... and write a resolver that fetches that value on the fly. (Hopefully it would cache stuff, so that a dozen different environmental references don't have to be resolved separately.)

Does that sound useful to anyone? I've never used k8s but I'm looking at making a service of mine easier to deploy in a totally automated way, and this kind of thing would certainly help with that.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to