Hi Balkrishna, good article with deep dive on how to use static pods for setting up and using keepalived for HA Proxy and API endpoint. I have a quick question is it possible to configure and manage these static pods using MCO by just adding to the manifests.
Yes it is possible to use machineconfig to create static file. Simply create a file where kubelet is tracking and rest kubelet will start managing the pod.
Thanks for that, i was looking the static pod resources and there are some variables in haproxy config template. I was wondering how are these variables passed on to the haproxy config file, does installer passes these variables ?
There are 2 containers in that pod, haproxy-monitor resolve the variable and produce the correct config, so that haproxy container can consume it.
- name: haproxy-monitor
cp /host/etc/resolv.conf /etc/resolv.conf
monitor /var/lib/kubelet/kubeconfig /config/haproxy.cfg.tmpl /etc/haproxy/haproxy.cfg --api-vip 172.21.104.25
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
For further actions, you may consider blocking this person and/or reporting abuse
Shaping the future of IT, one connection at a time.