Alberga una configuración de Gitea y Jenkins para pruebas ci/cd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

50 lines
1.3 KiB

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.34.0 (cbf2835db)
labels:
io.kompose.service: jenkins
name: jenkins
namespace: jenkins
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: jenkins
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.34.0 (cbf2835db)
labels:
io.kompose.service: jenkins
spec:
containers:
- image: jenkins/jenkins:2.484
name: jenkins
ports:
- containerPort: 8080
protocol: TCP
- containerPort: 50000
protocol: TCP
securityContext:
privileged: true
volumeMounts:
- mountPath: /var/jenkins_home
name: jenkins-claim0
- mountPath: /var/jenkins_home/.ssh
name: jenkins-claim1
readOnly: true
restartPolicy: Always
volumes:
- name: jenkins-claim0
persistentVolumeClaim:
claimName: jenkins-claim0
- name: jenkins-claim1
persistentVolumeClaim:
claimName: jenkins-claim1
readOnly: true