On 15 February 2017 at 14:02, <dan.gard...@baddogdown.com> wrote: > > REJECTED OPTIONS: > 1.b) A Scheduled job to update the squid.conf in a configMap with the IPs > for all the Pods. No, a deployment wont pick up a changed configMap without > the pods being recreated / cycled, meaning new IPs and alas the config is no > longer valid.
Pods do actually get the file updated when a configmap is changed - but normally daemons don't reload it. The prometheus-operator (where I first saw this technique), uses a container that triggers an reload of the daemon when a change is noticed: https://github.com/jimmidyson/configmap-reload (I'm not sure how relevant this is to Squid, if you can trigger a config reload by hitting a http endpoint) > > OPTIONS CURRENTLY BEING CONSIDERED: > 1.g) Can I predictably name pods & DNS resolve them ? e.g. > appX-pod01.{namespace}.cluster.local ? Therefore hardcode all potential pods > by name in the squid.conf Yes, a StatefulSet gives predictable network identity for pods: https://kubernetes.io/docs/concepts/abstractions/controllers/statefulsets/#pod-identity There's also an option mentioned here: https://stackoverflow.com/questions/37317003/restart-pods-when-configmap-updates-in-kubernetes where you use liveness checks to make Kubernetes restart your pod if the configmap changes. Hope that's helpful Cheers Mike -- Mike Bryant | Network Systems Team Leader | Ocado Technology mike.bry...@ocado.com | 07825 226780 | www.ocadotechnology.com -- Notice: This email is confidential and may contain copyright material of members of the Ocado Group. Opinions and views expressed in this message may not necessarily reflect the opinions and views of the members of the Ocado Group. If you are not the intended recipient, please notify us immediately and delete all copies of this message. Please note that it is your responsibility to scan this message for viruses. Fetch and Sizzle are trading names of Speciality Stores Limited and Fabled is a trading name of Marie Claire Beauty Limited, both members of the Ocado Group. References to the “Ocado Group” are to Ocado Group plc (registered in England and Wales with number 7098618) and its subsidiary undertakings (as that expression is defined in the Companies Act 2006) from time to time. The registered office of Ocado Group plc is Titan Court, 3 Bishops Square, Hatfield Business Park, Hatfield, Herts. AL10 9NE. -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.