gpt4 book ai didi

Jenkins Deployment on Kubernetes 日志有问题

转载 作者:行者123 更新时间:2023-12-02 11:53:50 29 4
gpt4 key购买 nike

我在 Kubernetes 上进行了 Jenkins 部署。它工作正常,但当我尝试显示容器日志时发生错误。

$ kubectl logs jenkins-5b587f57b8-tfz2f
Can not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permissions?
touch: cannot touch '/var/jenkins_home/copy_reference_file.log': Permission denied

最佳答案

干得好 solution我发现正在添加 Security Context :

securityContext:
fsGroup: 1000
runAsUser: 0

Jenkins 部署规范。

关于Jenkins Deployment on Kubernetes 日志有问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56003468/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com