Configure Jenkins with Kubernetes.

Introduction

Prerequisite

Preparing the Kubernetes cluster

# kubectl create serviceaccount jenkins
# kubectl get secret# kubectl describe secrets jenkins-token-z259g

Configure Jenkins Master

Secret Creation step 01
Secret Creation step 01

Integrate Jenkins with Kubernetes

Jenkins Kubenetes Configurations
Jenkins Kubenetes Configurations

Test the Jenkins integration with Kubernetes

echo Hi from Kubernetes Pod
java -version
sleep 10

Take the full power of the Kubernetes with Jenkins

https://hub.docker.com/r/jenkins/jnlp-slavehttps://hub.docker.com/r/jenkins/slavehttps://github.com/jenkinsci/docker-slavehttps://github.com/jenkinsci/docker-jnlp-slave