You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "StandNorthStar (via GitHub)" <gi...@apache.org> on 2025/07/29 02:40:02 UTC

Re: [I] help request: multiple apisix instance log directories conflict [apisix]

StandNorthStar commented on issue #12467:
URL: https://github.com/apache/apisix/issues/12467#issuecomment-3130384591

   解决了。 在deployment部署文件中把logs目录挂载到以pod命名的子目录下,相当于多了一级目录。
   
           volumeMounts:
           - name: logs
             mountPath: /usr/local/apisix/logs
             subPathExpr: $(POD_NAME)
           env:
             - name: TZ
               value: "Asia/Shanghai"
             - name: POD_NAME
               valueFrom:
                 fieldRef:
                   fieldPath: metadata.name
         volumes:
         - name: logs
           hostPath:
             path: /data/logs


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org