Skip to content

Commit e3a8d73

Browse files
author
Mykyta Tarasov
committed
kubectl apply deployment
1 parent 1d0b295 commit e3a8d73

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+

0 commit comments

Comments
 (0)