-
Notifications
You must be signed in to change notification settings - Fork 686
adding configmaps #71
base: master
Are you sure you want to change the base?
Conversation
WFM on minikube 0.15.0 (k8s 1.5.1) I'll add some docs changes |
RFR @pires |
@puja108 TBH this is more verbose with little gains. I was thinking more of having a ConfigMap containing default |
True, somehow didn't think of the |
- name: ES_JAVA_OPTS
valueFrom:
configMapKeyRef:
name: es-config
key: ES_JAVA_OPTS Here you're still using container environment variables to override values in |
Sure, the general options are only 2 though (cluster name and java opts). So I'd move those two into |
If the yaml refers to environment variables, yes, e.g. https://github.com/pires/docker-elasticsearch/blob/master/config/elasticsearch.yml. |
Yeah, still the envs need to be set, I meant more like overriding the yaml with an env. cause otherwise the yaml would be nearly identical to what you posted (minus the 2 general options). If overriding would be possible we could set a "default" in the yaml and override it only when needed. E.g. default is HTTP_ENABLED=false but for client we enable it. There's something about a |
@puja108 thanks for taking the effort to get this going, truly appreciated. I need to take some time to focus on this. Will ping you ASAP! |
@puja108 Aren't you missing the including of the ConfigMap in the Deployment file? |
@puja108 Any further plans with this? |
Actually, the fact this isn't merged is my fault. I still haven't found the time to test properly and merge. So sorry all, but most of all @puja108 😭 |
Once this get merged will be possible to use it for x-pack credentials rotation? |
@alexbrand that would be sweet! |
@alexbrand @pires |
@kskewes Unfortunately no. |
solving #58
WIP