Configuring the Kubernetes plugin

Click on Back to Dashboard or the Jenkins link in the top-left corner. From the main dashboard page, click on the Credentials link. Choose a domain from the list; in my case, I just used the default Global credentials domain. Click on Add Credentials:

Add credentials screen

Leave Kind as Username with password and Scope as Global. Add your Kubernetes admin credentials. Remember that you can find these by running the config command:

$ kubectl config view

You can leave ID blank, give it a sensible description, and click on the OK button.

Now that we have our credentials saved, we can add our Kubernetes server. ...

Get Getting Started with Kubernetes - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.