-
Notifications
You must be signed in to change notification settings - Fork 213
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