There are 2 containers in that pod, haproxy-monitor resolve the variable and produce the correct config, so that haproxy container can consume it.
haproxy-monitor
- name: haproxy-monitor securityContext: privileged: true image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:c1f0f7c54f0f2ecd38fdf2667651f95153a589bd7fe4605f0f96a97899576a08 command: - "/bin/bash" - "-c" - | 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 resources:
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
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
Shaping the future of IT, one connection at a time.
There are 2 containers in that pod,
haproxy-monitor
resolve the variable and produce the correct config, so that haproxy container can consume it.