Added configuration to deploy Jenkins in Kubernetes

This commit is contained in:
Marcin-Ramotowski
2025-06-05 19:25:43 +00:00
commit e06412832c
6 changed files with 172 additions and 0 deletions

17
service.yaml Normal file
View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: service-jenkins
namespace: jenkins
annotations:
prometheus.io/scrape: 'true'
prometheus.io/path: /
prometheus.io/port: '8080'
spec:
selector:
app: server-jenkins
type: NodePort
ports:
- port: 8080
targetPort: 8080
nodePort: 32000