Giter VIP home page Giter VIP logo

jenkins-on-minikube's Introduction

Jenkins-On-Minikube

Step 1: Install minikube on ubuntu system or Ubuntu ec2 Instance

Perform below Step:

i. : curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64

ii. : sudo apt-get update

ii : sudo install minikube-linux-amd64 /usr/local/bin/minikube

Step 2: After install Start minikube

Perform below Step:

i. : minikube start                    # Start minikube with default setting
ii.: minikube start --memory=5000MB    # start minikube with 5000MB of Memory 

alias kubectl="minikube kubectl --"

kreate name space kubectl create namespace jenkins

Create a jenkins-deployment.yaml

apiVersion: apps/v1 kind: Deployment metadata: name: jenkins #name of the Jenkins Kubernetes Deployment spec: replicas: 1 #number of Jenkins pods created in the Minikube Kubernetes Cluster selector: matchLabels: app: jenkins template: metadata: labels: app: jenkins spec: containers: - name: jenkins #name of the Jenkins container image: jenkins/jenkins:lts-jdk11 #name of the Jenkins image used to create the Jenkins container ports: - containerPort: 8080 #the port in which the Jenkins container will run inside the Minikube Kubernetes Cluster

#Create a Jenkins Kubernetes Deployment in the jenkins namespace kubectl apply -f jenkins-deployment.yaml --namespace jenkins

kubectl get deployment --namespace jenkins

kubectl get pod --namespace jenkins

Create a jenkins-service.yaml

apiVersion: v1 kind: Service metadata: name: jenkins #name of the Jenkins Kubernetes Service spec: type: NodePort #Type of the Jenkins Kubernetes Service ports:

  • port: 8080 #port for the Jenkins Kubernetes Service targetPort: 8080 #port for the Jenkins pod selector: app: jenkins

#Create a Jenkins Kubernetes Service in the jenkins namespace kubectl apply -f jenkins-service.yaml --namespace jenkins

Get service detail like service name , port kubectl get service --namespace jenkins

get minikube ip minikube ip

perform ssh turnning to acsess jenkins on local machine ssh -i "akash-devops.pem" -L :: [email protected] ssh -i "akash-devops.pem" -L 8080:192.168.49.2:31401 [email protected]

jenkins-on-minikube's People

Contributors

akashvyavhare avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.