如何打开rbd-gateway内的nginx的access_log
Closed this issue · 5 comments
碰到了一些ingress访问的问题,需要能打开特定域名的access log,发现页面上的网关配置中,没有关于日志的选项,直接修改ingress加注解会被刷掉。请教下,有办法打开吗
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Title: How to open the access_log of nginx in rbd-gateway
I encountered some ingress access problems. I needed to be able to open the access log of a specific domain name. I found that in the gateway configuration on the page, there was no log option. If I directly modify the ingress and add annotations, it would be erased. Please tell me, is there any way to open it?
kubectl edit rbdcomponent rbd-gateway -n rbd-system
spec:
args:
- --access-log=/dev/stdout
rainbond/cmd/gateway/option/option.go
Line 107 in f0d3a47
- 编辑 rbd-gateway 的 crd 资源。
kubectl edit rbdcomponent rbd-gateway -nrbd-system
- 增加上面的 access-log 参数,如下所示
apiVersion: rainbond.io/v1alpha1
kind: RbdComponent
metadata:
name: rbd-gateway
namespace: rbd-system
spec:
args:
- --access-log=/logs/access.log
image: registry.cn-hangzhou.aliyuncs.com/goodrain/rbd-gateway:v5.17.0-release
- 上面的 access-log 定义的地址,就是accesslog文件。进入 rbd-gateway 容器下该路径查看即可。
由于这个issue已经有一段时间没有更新,我打算关闭它以保持项目的整洁。如果您在未来还有任何问题或需要进一步的帮助,请随时重新打开此issue或创建一个新的issue。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Since this issue hasn't been updated in a while, I'm going to close it to keep the project tidy. If you have any questions or need further assistance in the future, please feel free to reopen this issue or create a new one.