Giter Site home page Giter Site logo

jenkins-k8-deployment's Introduction

Build and Deploy Sample Application with Jenkins Pipeline to Minikube Kubernetes Cluster

Prerequisites

Ensure you have Homebrew installed on your Mac. If not, you can install it using:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

1. Install Java

  1. Install Java using Homebrew:

    brew install java11

    This will install OpenJDK 11.

  2. Set JAVA_HOME Environment Variable: (Optional)

    After installation, you need to set the JAVA_HOME environment variable. The lines will be populated in the logs of java installation. The lines might look like the below examples.

    export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH" >> ~/.zshrc
    export JAVA_HOME=$(/usr/libexec/java_home -v 11)
    export PATH=$JAVA_HOME/bin:$PATH

2. Install Jenkins LTS

  1. Install Jenkins LTS using Homebrew:

    brew install jenkins-lts
  2. Start Jenkins:

    brew services start jenkins-lts

    Jenkins will start automatically and run as a background service.

  3. Access Jenkins:

    Open your web browser and navigate to:

    http://localhost:8080
    
  4. Unlock Jenkins:

    You’ll need to unlock Jenkins using the initial admin password. Find the password with:

    cat /Users/$(whoami)/.jenkins/secrets/initialAdminPassword

    Copy the password and paste it into the Jenkins unlock page.

4. Install Minikube

  1. To install the latest minikube stable release on x86-64 macOS using binary download::

    curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64
    sudo install minikube-darwin-amd64 /usr/local/bin/minikube
  2. Start Minikube:

    minikube start

    This will start Minikube with default settings.

  3. Verify Minikube Status:

    minikube status

Once you are done with you setup, Below are the steps for clean up.

minikube stop

brew services stop jenkins-lts

brew uninstall jenkins-lts

brew uninstall java11

Conclusion

You have successfully installed Java, Jenkins LTS, and Minikube on your Mac using Homebrew. Ensure to check each tool's documentation for advanced configurations and troubleshooting.

jenkins-k8-deployment's People

Contributors

nanditechbytes 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.