Skip to content

Commit

Permalink
fix jenkins log dir
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Dec 17, 2023
1 parent a392556 commit 6c6eacd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/prod/jenkins-beta/release/values-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@ controller:
-XX:+UnlockDiagnosticVMOptions
-Xlog:gc*=info,gc+heap=debug,gc+ref*=debug,gc+ergo*=trace,gc+age*=trace:file=/var/jenkins_home/logs/gc-%t.log:utctime,pid,level,tags:filecount=2,filesize=100M
# Optionally specify additional init-containers
customInitContainers:
- name: init-create-logs-dir
image: "alpine:3.18.3"
imagePullPolicy: Always
command: ["mkdir", "-p", "/var/jenkins_home/logs"]
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsGroup: 1000
runAsUser: 1000
volumeMounts:
- mountPath: /var/jenkins_home
name: jenkins-home

# jenkinsOpts: ""
# If you are using the ingress definitions provided by this chart via the `controller.ingress` block the configured hostname will be the ingress hostname starting with `https://` or `http://` depending on the `tls` configuration.
# The Protocol can be overwritten by specifying `controller.jenkinsUrlProtocol`.
Expand Down
15 changes: 15 additions & 0 deletions apps/prod/jenkins/release/values-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ controller:
-XX:+DisableExplicitGC -XX:+UnlockExperimentalVMOptions
-XX:+UnlockDiagnosticVMOptions
-Xlog:gc*=info,gc+heap=debug,gc+ref*=debug,gc+ergo*=trace,gc+age*=trace:file=/var/jenkins_home/logs/gc-%t.log:utctime,pid,level,tags:filecount=2,filesize=100M
# Optionally specify additional init-containers
customInitContainers:
- name: init-create-logs-dir
image: "alpine:3.18.3"
imagePullPolicy: Always
command: ["mkdir", "-p", "/var/jenkins_home/logs"]
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsGroup: 1000
runAsUser: 1000
volumeMounts:
- mountPath: /var/jenkins_home
name: jenkins-home

# jenkinsOpts: ""
# If you are using the ingress definitions provided by this chart via the `controller.ingress` block the configured hostname will be the ingress hostname starting with `https://` or `http://` depending on the `tls` configuration.
Expand Down

0 comments on commit 6c6eacd

Please sign in to comment.