You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
背景
使用官方的helm部署higress集群,由于我们有自己的日志收集系统,打算做higress gateway的日志收集。由于官方给定的gateway默认access.log输出位置时/var/log/proxy/accesss.log,且属于emptyDir挂载模式,所以想要在pod主容器启动时将higress-config configMap的mesh中的accessLogFile: /var/log/proxy/access.log 修改为动态的日志文件。
操作
将higress-config 挂载在/etc/istio/tmp-config下,通过initcontainer读取并修改mesh的内容将文件放到/etc/istio/config目录下
现状
gateway在控制台打印日志显示
但是实际上access.log还是输出在/var/log/proxy/access.log中
难道gateway获取配置是直接读取configMap吗,挂载只是为了打日志输出,并不生效吗?
Beta Was this translation helpful? Give feedback.
All reactions