Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TCP CRD - log_level: silent not working? #742

Open
@GilchristT

Description

I'm using the TCP CRD version 3.1 installed using the raw manifest https://www.haproxy.com/documentation/kubernetes-ingress/community/crd/v3-1/ingress.v1.haproxy.org_tcps.yaml

It's up and running fine but I've one particularly noisy ingress that I don't want the logs from but I can't find any way to silence it.

If I'm reading the documentation at https://www.haproxy.com/documentation/kubernetes-ingress/community/configuration-reference/tcps-crd/#frontend-tcp_request_rule_list-version-v3-1 correctly, the correct incantation is

spec:
- name: my-rule-name
 tcp_request_rule_list:
 - log_level: silent

but this isn't working. I've also tried log_level: silent in the frontend section but it hasn't worked either.

See below for my full TCP ingress definition. I've shown all combinations I've tried but I've tried them all separately e.g., just tcp_request_rule, just defining log_level: silent in the frontend section, with and without the log_format, etc.

apiVersion: ingress.v1.haproxy.org/v1
kind: TCP
metadata:
 name: zabbix-server-tcp
 annotations:
 ingress.class: haproxy
spec:
- name: zabbix-10051
 tcp_request_rule_list:
 - log_level: silent
 frontend:
 log_level: silent
 name: zabbix-frontend
 log_format: "%{+json}o %(log_bucket)[str(zabbix)] %(haproxy_log_type)[str(tcp)] %(target_ip)si %(target_port)sp %(source_ip)ci %(bytes_read)B %(bytes_uploaded)U %(request_sni)[ssl_fc_sni] %(time_active)Ta %(termination_state)ts"
 binds:
 - name: zabbix-10051-bind
 port: 10051
 service:
 name: zabbix-server
 port: 10051

Any assistance greatly appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /