use-proxy-protocol: "true"
proxy-real-ip-cidr: "0.0.0.0/32"
use-forwarded-headers: "false"
log-format-upstream: '$proxy_protocol_addr etc...'
http-snippet: |
geo $realip_remote_addr $is_lb {
default 0;
10.108.0.0/14 1;
}
server-snippet: |
if ($is_lb != 1) {
return 403;
}
helm install stable/nginx-ingress --namespace arx-dev --name app-proxy \
--set rbac.create=true \
--set controller.service.externalTrafficPolicy=Local \
--set controller.service.annotations."service\.beta\.kubernetes\.io/ovh-loadbalancer-proxy-protocol"=v1
@SystemZ Hello ! Did you manage to get the fluent-bit grep filter to work to exclude canal pods logs ? I added this bloc to the end of my filter-kubernetes.conf
entry in the configmap:
[FILTER]
Name grep
Match *
Exclude kubernetes_container_name calico-node|wormhole
and I still keep getting canal logs sent to graylog
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 3m12s default-scheduler Successfully assigned cattle-system/rancher-84955df7bc-czmn7 to worker-3
Warning FailedCreatePodSandBox 3m9s kubelet, worker-3 Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "7e376e706e0dc527138ceaefcbf92410a716c5dd95661e0e72e8d3deb48e7a78" network for pod "rancher-84955df7bc-czmn7": NetworkPlugin cni failed to set up pod "rancher-84955df7bc-czmn7_cattle-system" network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 3m kubelet, worker-3 Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "8f215886b17a1160bb5835d5a6650e70c03cb661d2a623a542e1e97b5de7a09c" network for pod "rancher-84955df7bc-czmn7": NetworkPlugin cni failed to set up pod "rancher-84955df7bc-czmn7_cattle-system" network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 2m50s kubelet, worker-3 Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "0ed4c2c8dd092b318f9639c823330fa4dd8fd14fc5bc5ffe7017bf9f21b9668d" network for pod "rancher-84955df7bc-czmn7": NetworkPlugin cni failed to set up pod "rancher-84955df7bc-czmn7_cattle-system" network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 2m29s kubelet, worker-3 Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "b13a56e92a7ed8848008334211c47d36f471b06b5d4f51e5315426e4032843fa" network for pod "rancher-84955df7bc-czmn7": NetworkPlugin cni failed to set up pod "rancher-84955df7bc-czmn7_cattle-system" network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 2m18s kubelet, worker-3 Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "4aa951d441f9171b37d2d5f7c6b96912a69393602e7997aaf6f289222f247039" network for pod "rancher-84955df7bc-czmn7": NetworkPlugin cni failed to set up pod "rancher-84955df7bc-czmn7_cattle-system" network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 2m2s kubelet, worker-3 Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "7ab8ac00e5b0ba941d6e37464fff93d0639432a993032ddcd300f5dda62b0d8e" network for pod "rancher-84955df7bc-czmn7": NetworkPlugin cni failed to set up pod "rancher-84955df7bc-czmn7_cattle-system" network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 104s kubelet, worker-3 Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "dcbb4d39e804fb011e341f40e6b3de467945440586c18acb4d4c961687a44009" network for pod "rancher-84955df7bc-czmn7": NetworkPlugin cni failed to set up pod "rancher-84955df7bc-czmn7_cattle-system" network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 94s kubelet,
̀