Installing a Minimal k8s Environment with Minikube
Deploying Minikube on Proxmox VE (a Debian-based virtualization environment) requires consideration of Proxmox’s characteristics, as it is essentially a virtual machine and container management platform. You will need to create a virtual machine (VM) on Proxmox VE and then install Minikube within that VM. Below are the detailed steps:
Step 1: Create and Configure the Virtual Machine
-
Log in to the Proxmox VE management interface:
- Typically accessed via a web browser at
https://<Proxmox_IP>:8006.
- Typically accessed via a web browser at
-
Create a new virtual machine:
- Click the “Create VM” button in Proxmox.
- Name the VM, select “Linux” as the installation type, and determine the version based on the Linux distribution you intend to install (Ubuntu or Debian is recommended).
-
Configure hardware:
- CPU: Allocate at least 2 cores.
- Memory: Allocate at least 2GB of RAM.
- Disk: At least 20GB of storage space.
- Network: Ensure the VM can access the internet.
-
Install the operating system:
- Mount the ISO file and perform the OS installation via Proxmox’s console.
- Set the necessary user and network configurations during the installation process.
Step 2: Install and Configure Minikube
-
Connect to the virtual machine:
- Use SSH or connect through Proxmox’s console to access the newly created VM.
-
Install kubectl:
- Install
kubectlon the VM. For Ubuntu/Debian systems, you can use the following command:curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" chmod +x ./kubectl sudo mv ./kubectl /usr/local/bin/kubectl kubectl version --client
- Install
-
Install Minikube:
- Download and install Minikube. For Linux systems, you can use the following command:
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 chmod +x minikube sudo install minikube /usr/local/bin/
- Download and install Minikube. For Linux systems, you can use the following command:
-
Start Minikube:
- Since running inside a VM, it is recommended to use Docker as the driver. First ensure Docker is installed, then start Minikube:
minikube start --driver=docker - This step will automatically pull the necessary Minikube Docker images and start the Kubernetes cluster.
- Since running inside a VM, it is recommended to use Docker as the driver. First ensure Docker is installed, then start Minikube:
-
Verify the installation:
- Run
kubectl get nodesto check the cluster status; it should show the minikube node in the READY state.
- Run
Step 3: Configure and Use the Kubernetes Cluster
- Interact with the cluster using the
kubectlcommand to deploy applications or perform other management tasks. - If you need to access applications running inside the cluster, you can use Minikube’s
minikube servicecommand to expose services.
By following the steps above, you can successfully deploy and run a Minikube Kubernetes cluster on Proxmox VE, providing a relatively isolated and resource-controlled environment for development and testing purposes.