apiVersion: v1 kind: Service metadata: name: jenkins labels: run: jenkins namespace: default annotations: prometheus.io/scrape: 'true' prometheus.io/path: / prometheus.io/port: '8080' spec: selector: run: jenkins # app: jenkins-server # type: NodePort ports: - name: http port: 80 targetPort: 8080 # nodePort: 32000 - name: jnlpport port: 50000 targetPort: 50000 # nodePort: 32000 --- # Hosting apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: jenkins annotations: cert-manager.io/cluster-issuer: "letsencrypt-prod" ## No basic auth for smokeping ## type of authentication #nginx.ingress.kubernetes.io/auth-type: basic ## name of the secret that contains the user/password definitions #nginx.ingress.kubernetes.io/auth-secret: basic-auth ## message to display with an appropriate context why the authentication is required #nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - Octoprint' spec: tls: - hosts: - jenkins.monkeybox.org secretName: jenkins-tls rules: - host: jenkins.monkeybox.org http: paths: - path: / pathType: Prefix backend: service: name: jenkins port: number: 80