Refactor common configurations for rails applications
Recently we made a change to our sidekiq configuration which forced sidekiq to attempt to make calls to servers it was unable to reach due to port configurations not allowed on sidekiq, but were allowed on our webservice deployments.
Since some of our network policies have a large overlap, perhaps we can simplify our configurations such that when our infra changes that require new ports to be opened, they'd apply more broadly than they do currently. Our rails apps for the most part all talk to the same systems, so there should not be a heavy need to keeps these as segregated as they are.
This same issue was seen with our psql service discovery mechanism. We define the psql
configuration block in two places, once in the global.appConfig section, and again in the sidekiq configuration.
Utilize this issue to determine how we can combine our configurations. We may be able to easily leverage yaml anchors for this.
Milestones
-
NetworkPolicy configurations are merged -
psql configurations are merged