Add bootstrap-platform/jenkins/deployment.yaml
This commit is contained in:
parent
60d876563b
commit
7e052c4c68
|
|
@ -0,0 +1,28 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: jenkins
|
||||||
|
labels:
|
||||||
|
app: jenkins
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: jenkins
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: jenkins
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: jenkins
|
||||||
|
image: jenkins/jenkins:lts
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
- containerPort: 50000
|
||||||
|
volumeMounts:
|
||||||
|
- name: jenkins-home
|
||||||
|
mountPath: /var/jenkins_home
|
||||||
|
volumes:
|
||||||
|
- name: jenkins-home
|
||||||
|
emptyDir: {}
|
||||||
Loading…
Reference in New Issue