启用container日志
oc patch ingresscontroller default --patch '{"spec":{"logging": {"access":{"destination":{"type":"Container"}}}}}' --type=merge -n openshift-ingress-operator
查看
oc logs pod/router-default-5b54f98c95-7tlkb -c logs -n openshift-ingress-operator
启用syslog日志
oc patch ingresscontroller default --patch '{"spec":{"logging": {"access":{"destination":{"type":"Syslog","syslog":{"address":"1.2.3.4","port":"10514"}}}}}}' --type=merge -n openshift-ingress-operator