File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -216,4 +216,5 @@ jobs:
216216 sudo helm repo add jenkinsci https://charts.jenkins.io
217217 sudo helm repo update
218218 sudo helm install jenkins jenkinsci/jenkins -n jenkins -f /tmp/helm/jenkins-values.yaml --kubeconfig /etc/rancher/k3s/k3s.yaml
219+ sudo kubectl create -f /tmp/helm/templates/jenkins-deployment.yaml -n jenkins
219220 EOF
Original file line number Diff line number Diff line change 1+ apiVersion : apps/v1
2+ kind : Deployment
3+ metadata :
4+ name : jenkins
5+ spec :
6+ replicas : 1
7+ selector :
8+ matchLabels :
9+ app : jenkins
10+ template :
11+ metadata :
12+ labels :
13+ app : jenkins
14+ spec :
15+ containers :
16+ - name : jenkins
17+ image : jenkins/jenkins:lts-jdk11
18+ ports :
19+ - containerPort : 8080
20+ volumeMounts :
21+ - name : jenkins-home
22+ mountPath : /var/jenkins_home
23+ volumes :
24+ - name : jenkins-home
25+ persistentVolumeClaim :
26+ claimName : jenkins-pvс
27+
You can’t perform that action at this time.
0 commit comments