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