Skip to content

Commit

Permalink
Fix the haproxy pod yaml format
Browse files Browse the repository at this point in the history
This fixes the structure of the yaml when k8s_ingress_nginx_haproxy_conf is set
to true.

Fixes: #3
  • Loading branch information
rascasoft committed May 31, 2024
1 parent 3f730d9 commit 3d5ada5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/multi-control-plane/haproxy_pod.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ spec:
path: /healthz
port: {{ k8s_balancer_port }}
scheme: HTTPS
{% if k8s_ingress_nginx_haproxy_conf | bool %}
{% if k8s_ingress_nginx_haproxy_conf | bool -%}
securityContext:
capabilities:
add:
- NET_BIND_SERVICE
runAsUser: 0
{% endif %}
{% endif -%}
volumeMounts:
- mountPath: /usr/local/etc/haproxy/haproxy.cfg
name: haproxyconf
Expand Down

0 comments on commit 3d5ada5

Please sign in to comment.