Jenkins setup: Jenkins-Operator
Cluster setup: k3d
I’m trying to figure out how to allow access to the Jenkins instance spun up by the Jenkins Operator.
This command works:
“kubectl --namespace default port-forward jenkins-jenkins 8080:8080 --address 0.0.0.0”
But once I do a NodePort:
apiVersion: v1
kind: Service
metadata:
name: jenkins-nodeport
namespace: default
spec:
selector:
app.kubernetes.io/name: jenkins-jenkins
ports:
- name: http
port: 8080
targetPort: 8080
nodePort: 30500
- name: agent
port: 50000
targetPort: 50000
nodePort: 30501
type: NodePort
status:
loadBalancer: {}
It doesn’t provide connection. Any pointers would be much appreciated.