Skip to content

Deployment Overview of Minikube on Server

Prerequisites and Basic Requirements

To ensure a successful deployment, the following requirements must be met by the host system:

  • Operating System: Ubuntu (specifically version 24.04 or compatible).

  • Privileges: Root or sudo access is required for package installation and binary placement.

  • Dependencies: Python 3 and pip must be available to facilitate library installations.

  • Container Runtime: Docker must be installed and running on the host to serve as the Minikube driver.

File and Directory Structure

The deployment modifies several system paths to ensure command availability:

  • /usr/local/bin/minikube: The Minikube binary executable.

  • /usr/local/bin/kubectl: The Kubernetes command-line tool.

  • ~/.bashrc: Updated to include /usr/local/bin in the system PATH.

Application installation process

The installation of Minikube is performed through a series of automated steps on Ubuntu systems:

  1. System Package Installation: The system installs python3-pip and the python3-docker library to allow Python-based management of Docker containers.

  2. Minikube Binary Deployment:

  3. The latest Minikube Linux AMD64 binary is downloaded from Google Cloud Storage.

  4. The binary is moved to /usr/local/bin/minikube.

  5. Execution permissions are granted via chmod +x.

  6. Kubernetes CLI Installation:

  7. The latest stable version of Kubernetes is retrieved from the official release URL.

  8. The kubectl binary is downloaded and placed in /usr/local/bin/kubectl with executable permissions (0755).

  9. Environment Configuration: The /usr/local/bin directory is appended to the user's PATH within the .bashrc file to ensure commands are accessible from any terminal session.

  10. Minikube Initialization: The application is started using the Docker driver with the --force flag:

    minikube start --driver=docker --force
    

Access Rights and Security

  • Binary Permissions: All installed binaries (minikube, kubectl) are granted execution rights for system-wide access.

  • Path Security: The installation modifies the user's shell configuration to ensure proper command resolution within the /usr/local/bin directory.

Starting and Stopping the application

The application is managed through the Minikube CLI:

  • Starting the application:

    minikube start --driver=docker
    

  • Stopping the application:

    minikube stop
    

Available ports for connection

Minikube utilizes Docker as a driver, meaning it operates within a containerized environment. Standard Kubernetes API communication and service access will depend on the specific workloads deployed within the cluster once initialized.

question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×