This tutorial shows how to create an AI playground with minikube on Apple silicon devices such as a MacBook Pro. We’ll create a cluster that shares your Mac’s GPU using the krunkit driver, deploy two large language models, and interact with the models using Open WebUI. Prerequisites Apple silicon Mac krunkit v1.0.0 or later vmnet-helper v0.6.0 or later generic-device-plugin minikube v1.37.0 or later (krunkit driver only) Installing krunkit and vmnet-helper Install latest krunkit:| minikube
This tutorial shows how to start minikube with support for AMD GPUs. Support is provided by the AMD GPU device plugin for Kubernetes. Prerequisites Linux Latest AMD GPU Drivers 6.2.1 or greater minikube v1.35.0 or later (docker driver only) Using the docker driver Ensure you have an AMD driver installed, you can check if one is installed by running rocminfo, if one is not installed follow the Radeon™ Driver Installation Guide Delete existing minikube (optional)| Tutorials on minikube
Overview minikube implements Kubernetes highly available cluster topology using stacked control plane nodes with colocated etcd nodes using kube-vip in ARP mode. This tutorial will show you how to start and explore a multi-control plane - HA cluster on minikube. Prerequisites minikube > v1.32.0 kubectl Optional ip_vs kernel modules: ip_vs, ip_vs_rr and nf_conntrack rationale: kube-vip supports the control-plane load-balancing by distributing API requests across control-plane nodes using IPVS ...| Tutorials on minikube
Overview This tutorial will show you how to create a minikube cluster with a static IP. Prerequisites minikube v1.29.0 or higher Docker or Podman driver Selecting a static IP The static IP must be IPv4, private, and the last octet must be between 2-254 (X.X.X.2 - X.X.X.254). Valid static IPs: 10.0.0.2 - 10.255.255.254 172.16.0.2 - 172.31.255.254 192.168.0.2 - 192.168.255.254 Tutorial Use the --static-ip flag on minikube start to set the static IP.| Tutorials on minikube
Overview Local Path Provisioner, provides a way for the Kubernetes users to utilize the local storage in each node. It supports multi-node setups. This tutorial will show you how to setup local-path-prvisioner on two node minikube cluster. Prerequisites Minikube version higher than v1.27.0 kubectl Tutorial Start a cluster with 2 nodes: $ minikube start -n 2 Enable storage-provisioner-rancher addon: $ minikube addons enable storage-provisioner-rancher You should be able to see Pod in the local...| Tutorials on minikube
Overview This guide will show you how to setup the minikube GUI WARNING! This GUI is a prototype and therefore may be unstable or contain bugs. Please use at your own risk, we are not responsible for damages. If you experience any bugs or have suggestions to improve the GUI feel free to create a GitHub Issue. Please note that the SSH functionality currently only works on Linux. Before You Begin minikube setup and available on your path, follow the Getting Start doc if not already done Steps D...| Tutorials on minikube
Overview This guide will show you how to use minikube as a Docker Desktop replacement. Before You Begin This only works with the docker container runtime, not with containerd or crio. You need to start minikube with a VM driver instead of docker, such as hyperkit on macOS and hyperv on Windows. Alternatively, you can use the minikube image build command instead of minikube docker-env and docker build. Steps 1Install the Docker CLI brew install docker Download the static binary archive. Go to ...| Tutorials on minikube
Overview This guide will show you how to setup WSL 2 and Docker Desktop. Steps Microsoft and Docker have in-depth guides for both, just follow along for a successful setup! Install WSL Install and setup Docker Desktop for Windows| Tutorials on minikube
Overview A static token file can be used to ensure only authenticated users access the API server. As minikube nodes are run in VMs/containers, this adds a complication to ensuring this token file is accessible to the node. This tutorial explains how to configure a static token file. Tutorial This must be done before creating the minikube cluster. # Create the folder that will be copied into the control plane.mkdir -p ~/.minikube/files/etc/ca-certificates/ # Copy the token file into the folde...| Tutorials on minikube
Overview In minikube, all executed commands are logged to a local audit log in the minikube home directory (default: ~/.minikube/logs/audit.json). These commands are logged with additional information including the user that ran them, which by default is the OS user. However, there is a global flag --user that will set the user who ran the command in the audit log. Prerequisites minikube v1.17.1 or newer What does the flag do? Assuming the OS user is johndoe, running minikube start will add t...| Tutorials on minikube
Overview This tutorial will show you how to configure custom TLS certificatate for ingress addon. mkcert is a simple tool for making locally-trusted development certificates. It requires no configuration. Tutorial Start minikube $ minikube start Create TLS secret which contains custom certificate and private key $ kubectl -n kube-system create secret tls mkcert --key key.pem --cert cert.pem Configure ingress addon $ minikube addons configure ingress -- Enter custom cert(format is "namespace/s...| Tutorials on minikube
Overview minikube provides telemetry support via OpenTelemetry tracing to collect trace data for minikube start. Currently, minikube supports the following exporters for tracing data: Stackdriver To collect trace data with minikube and the Stackdriver exporter, run: MINIKUBE_GCP_PROJECT_ID=<project ID> minikube start --output json --trace gcp Contributing There are many exporters available via OpenTelemetry community contributions. If you would like to see additional exporters, please create ...| Tutorials on minikube
To install and start a minikube cluster, add the following step to your GitHub Actions workflow. steps: - name: start minikube id: minikube uses: medyagh/setup-minikube@latest for more information see GitHub Actions marketplace setup-minikube. Example: build image & deploy to minikube on each PR Requirements: a valid Dockerfile a valid deployment.yaml file with imagePullPolicy: Never see below for an example Create workflow: copy this yaml to your workflow file for example in .github/workflow...| Tutorials on minikube
Overview The minikube registry-creds addon enables developers to setup credentials for pulling images from AWS ECR from inside their minikube cluster. The addon automagically refreshes the service account token for the default service account in the default namespace. Prerequisites a working minikube cluster a container image in AWS ECR that you would like to use AWS access keys that can be used to pull the above image AWS account number of the account hosting the registry Configuring and ena...| Tutorials on minikube
Overview Auditing is not enabled in minikube by default. This tutorial shows how to provide an Audit Policy file to the minikube API server on startup. Tutorial minikube stop mkdir -p ~/.minikube/files/etc/ssl/certs cat <<EOF > ~/.minikube/files/etc/ssl/certs/audit-policy.yaml # Log all requests at the Metadata level. apiVersion: audit.k8s.io/v1 kind: Policy rules: - level: Metadata EOFminikube start \ --extra-config=apiserver.audit-policy-file=/etc/ssl/certs/audit-policy.yaml \ --extra-confi...| Tutorials on minikube
Overview The minikube ingress addon enables developers to route traffic from their host (Laptop, Desktop, etc) to a Kubernetes service running inside their minikube cluster. The ingress addon uses the ingress nginx controller which by default is only configured to listen on ports 80 and 443. TCP and UDP services listening on other ports can be enabled. Prerequisites Latest minikube binary and ISO Telnet command line tool Kubectl command line tool A text editor Configuring TCP and UDP services...| Tutorials on minikube
Overview eBPF tools are performance tools used for observing the Linux kernel. These tools can be used to monitor your Kubernetes application in minikube. This tutorial will cover how to set up your minikube cluster so that you can run eBPF tools from a Docker container within minikube. Requirement use VM Driver (not docker or podman) x86 (currently the bcc image does not support arm64) Latest minikube version Tutorial First, start minikube with a VM driver:| Tutorials on minikube
The kube-apiserver in minikube can be configured to support OpenID Connect Authentication. Read more about OpenID Connect Authentication for Kubernetes here: https://kubernetes.io/docs/reference/access-authn-authz/authentication/#openid-connect-tokens Configuring the API Server Configuration values can be passed to the API server using the --extra-config flag on the minikube start command. See configuring_kubernetes.md for more details. The following example configures your Minikube cluster t...| Tutorials on minikube
Prerequisites Linux Latest NVIDIA GPU drivers minikube v1.32.0-beta.0 or later (docker driver only) Instructions per driver Using the docker driver Ensure you have an NVIDIA driver installed, you can check if one is installed by running nvidia-smi, if one is not installed follow the NVIDIA Driver Installation Guide Check if bpf_jit_harden is set to 0 sudo sysctl net.core.bpf_jit_harden If it’s not 0 run: echo "net.core.bpf_jit_harden=0" | sudo tee -a /etc/sysctl.conf sudo sysctl -p Install ...| Tutorials on minikube
How to run minikube in CI (Continuous Integration)| minikube
CSI Driver and Volume Snapshots| minikube
Overview This tutorial will show you how to start a multi-node clusters on minikube and deploy a service to it. Prerequisites minikube 1.10.1 or higher kubectl Caveat Default host-path volume provisioner doesn’t support multi-node clusters (#12360). To be able to provision or claim volumes in multi-node clusters, you could use CSI Hostpath Driver addon. Tutorial Start a cluster with 2 nodes in the driver of your choice: minikube start --nodes 2 -p multinode-demo 😄 [multinode-demo] miniku...| minikube