apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: cicd
  name: myjenkins
  labels:
    app: myjenkins
spec:
  replicas: 1
  selector:
    matchLabels:
      app: myjenkins
  template:
    metadata:
      labels:
        app: myjenkins
    spec:
      containers:
      - name: jenkins
        image: rafabene/myjenkins
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 8080
        - containerPort: 50000
