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.