Deployment Overview of Minikube on Server¶
Prerequisites and Basic Requirements¶
To ensure a successful deployment, the server must meet the following requirements:
-
Operating System: Ubuntu (specifically required for the automated installation tasks).
-
Privileges: Root or
sudoaccess is required to install packages and manage system binaries. -
Dependencies:
-
Python 3 with
pipinstalled. -
Docker engine must be present on the host to serve as the Minikube driver.
Application installation process¶
The installation of Minikube and its associated Kubernetes management tools is performed through a series of system configuration steps:
-
System Package Installation: The installer ensures that
python3-pipis installed and uses it to install thedockerPython library for programmatic interaction with the Docker engine. -
Minikube Binary Deployment:
-
The latest Minikube binary for Linux (amd64) is downloaded from Google Cloud Storage.
-
The binary is moved to
/usr/local/bin/minikube. -
Execution permissions are granted via
chmod +x. -
Kubernetes CLI Installation:
-
The latest stable version of the Kubernetes release URL is retrieved.
-
The
kubectlbinary is downloaded from the official Kubernetes repository and placed in/usr/local/bin/kubectl. -
Permissions are set to
0755(executable). -
Environment Configuration: The
/usr/local/bindirectory is appended to the systemPATHwithin the user's.bashrcfile to ensure commands are available in all new shell sessions. -
Minikube Initialization: Minikube is started using the Docker driver with the
--forceflag:
Custom Scripts and Additional Setup¶
The deployment process includes several lifecycle management actions:
-
System Notification: The installation process triggers external notifications at various stages (start, progress updates, and completion) to monitor the deployment status.
-
Environment Path Update: A script modifies the
.bashrcfile to ensure that newly installed binaries in/usr/local/binare immediately accessible to the user environment.
Application Update Instructions¶
To update the Minikube installation:
-
Download and replace the existing binary in
/usr/local/bin/minikubewith the latest version from the official repository. -
Apply execution permissions:
chmod +x /usr/local/bin/minikube. -
Restart the Minikube instance to apply changes:
Available ports for connection¶
The application utilizes Docker as a driver; therefore, connectivity depends on the specific Kubernetes services deployed within the cluster. Standard management access is provided via kubectl once the environment is initialized.