I am using:
https://github.com/jenkinsci/kubernetes-plugin
to configure Jenkins and Jenkins agents to run in kubernetes.
I have created my own jenkins agent