Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: v1
- kind: Service
- metadata:
- name: my-external-agent
- spec:
- type: NodePort
- selector:
- com.cloudbees.cje.tenant: cjoc # TODO: Change this to match the labels of a master
- ports:
- - name: jnlp
- port: 50000 # TODO: Confirm that this is the port configured in the master to accept requests from agents
- protocol: TCP
- # TODO: Create this resource with `kubectl apply -f ...`
- # TODO: Describe the newly created Service to find out the port it exposed
- # TODO: Run your external agent that connects to this port. Preferably, use Jenkins Swarm agent to create it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement