Open margamanterola opened 4 years ago
Thanks for reporting @marga-kinvolk. This is a known issue and already reported in #557. There is even PR opened for it https://github.com/kinvolk/lokomotive/pull/567 (I already forgot :smile:).
I'm not sure how the order of components is decided when doing cluster apply, but it should be done in a way that creating the cluster works when these two components are installed at the same time.
The order of installing the components is defined by the order in the configuration file. I don't know though, how they are ordered, if you spread the configuration across multiple files (e.g. one file per component). Can you tell how did you configure the components?
Sure, I have:
cluster.lokocfg
with the cluster definition plus the openebs* and cert-manager components.auth.lokocfg
with dex and gangwayingress.lokocfg
with contour, metallb and external-dnsmonitoring.lokocfg
with prometheus-operatorI'm guessing it goes alphabetically through the files, so I need to rename either ingress or monitoring to have them in a different order...
So, the files are read also alphabetically, as they are returned from the glob *.lokocfg
.
I'm keeping this one open for now, as we need to address in which order the components are being installed, regardless of the user configuration form.
I'm creating a cluster from scratch that includes a contour component with monitoring enabled and a prometheus-operator component (among other components, as seen below).
When creating the cluster and applying the components, this happened:
This is because contour was applied before prometheus-operator and so it couldn't enable monitoring as requested. I manually applied prometheus-operator and then all components, and it worked:
I'm not sure how the order of components is decided when doing cluster apply, but it should be done in a way that creating the cluster works when these two components are installed at the same time.