Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: my-external-agent
  5. spec:
  6. type: NodePort
  7. selector:
  8. com.cloudbees.cje.tenant: cjoc # TODO: Change this to match the labels of a master
  9. ports:
  10. - name: jnlp
  11. port: 50000 # TODO: Confirm that this is the port configured in the master to accept requests from agents
  12. protocol: TCP
  13.  
  14.  
  15. # TODO: Create this resource with `kubectl apply -f ...`
  16.  
  17. # TODO: Describe the newly created Service to find out the port it exposed
  18.  
  19. # 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