Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions haproxy-ingress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ Parameter | Description | Default
`controller.logs.port` | port used by sidecar logs container | `514`
`controller.logs.probes` | enable tcp based liveness and readiness probes in the log container | `false`
`controller.logs.securityContext` | Security context settings for sidecar logs container | `{}`
`controller.logs.lifecycle` | Lifecycle hooks for sidecar logs container | `{}`
`controller.logs.resources` | access-logs container resource requests & limits | `{}`
`defaultBackend.enabled` | whether to use the default backend component | `false`
`defaultBackend.name` | name of the default backend component | `default-backend`
Expand Down
4 changes: 4 additions & 0 deletions haproxy-ingress/templates/_podtemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ spec:
securityContext:
{{- toYaml .Values.controller.logs.securityContext | nindent 8 }}
{{- end }}
{{- if .Values.controller.logs.lifecycle }}
lifecycle:
{{- toYaml .Values.controller.logs.lifecycle | nindent 8 }}
{{- end }}
{{- end }}
{{- if and .Values.controller.stats.enabled .Values.controller.metrics.enabled (not .Values.controller.metrics.embedded) }}
- name: prometheus-exporter
Expand Down
3 changes: 2 additions & 1 deletion haproxy-ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,8 @@ controller:
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
securityContext: {}

# If lifecycle is added to the haproxy container, it can be useful to also configure it here to ensure the syslog container is not killed before haproxy when the pod is terminating, allowing it to flush the logs properly.
lifecycle: {}
# port used by syslog container
port: 514

Expand Down