Skip to content

sergiomartins8/jenkins-k8s-minikube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jenkins-k8s-minikube

Prerequisites

Install kubectl
$ brew install kubectl
Install virtualbox
$ brew cask install virtualbox
Install helm
$ brew install helm

Helm v3 is strongly recommended ⚠️

Helm repo update
$ helm repo add stable https://kubernetes-charts.storage.googleapis.com

Getting started

Execute the following script
$ ./build.sh

Jenkins credentials: admin/admin 🚨

Jenkinsfile example
podTemplate(label: 'jenkins-slave-base-pod', serviceAccount: 'jenkins', containers: [
    containerTemplate(
        name: 'base', 
        image: 'sergiomartins8/jenkins-slave-base:latest', 
        ttyEnabled: true, 
        command: 'cat'
    )
  ],
  volumes: [
    hostPathVolume(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock')
  ]
  ) {
    node('jenkins-slave-base-pod') {
        stage('Awesome stage') {
            container('base') {
                sh 'kubectl get po'
                sh 'helm env'
            }
        }
    }
}

Checkout the complete article here.

About

A jenkins-kubernetes-helm deployment using minikube

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages