mirror of
https://github.com/thejimnicholson/jenkins.git
synced 2025-12-06 03:30:43 +00:00
restore init container
This commit is contained in:
parent
749ff2e38e
commit
104abe3455
34
jenkins.yaml
34
jenkins.yaml
@ -20,23 +20,23 @@ spec:
|
|||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
nodetype: worker
|
nodetype: worker
|
||||||
# initContainers:
|
initContainers:
|
||||||
# - name: jenkins-init
|
- name: jenkins-init
|
||||||
# image: jenkins/jenkins:2.504.1-lts-jdk21
|
image: jenkins/jenkins:2.504.1-lts-jdk21
|
||||||
# command:
|
command:
|
||||||
# - sh
|
- sh
|
||||||
# - -c
|
- -c
|
||||||
# - |
|
- |
|
||||||
# jenkins-plugin-cli --plugin-file /var/jenkins_home/plugin-config/plugin.txt
|
jenkins-plugin-cli --plugin-file /var/jenkins_home/plugin-config/plugins.txt
|
||||||
# cp -r -p /usr/share/jenkins/ref/plugins/. /var/jenkins_home/plugins/.
|
cp -r -p /usr/share/jenkins/ref/plugins/. /var/jenkins_home/plugins/.
|
||||||
# env:
|
env:
|
||||||
# - name: TZ
|
- name: TZ
|
||||||
# value: "America/Los_Angeles"
|
value: "America/Los_Angeles"
|
||||||
# volumeMounts:
|
volumeMounts:
|
||||||
# - name: jenkins-vol
|
- name: jenkins-vol
|
||||||
# mountPath: /var/jenkins_home
|
mountPath: /var/jenkins_home
|
||||||
# - name: jenkins-plugins-config
|
- name: jenkins-plugins-config
|
||||||
# mountPath: /var/jenkins_home/plugin-config
|
mountPath: /var/jenkins_home/plugin-config
|
||||||
containers:
|
containers:
|
||||||
- name: jenkins
|
- name: jenkins
|
||||||
image: jenkins/jenkins:2.504.1-lts-jdk21
|
image: jenkins/jenkins:2.504.1-lts-jdk21
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user