This tutorial guides you through setting up a local Kubernetes cluster using Minikube, with a focus on exposing services using LoadBalancer and the essential minikube tunnel.

Prerequisites

Before you begin, ensure you have the following installed:

Installation

Minikube

brew install minikube
For other installation methods, refer to the official Minikube documentation.

Installing kubectl

brew install kubectl
For other installation methods, visit the official kubectl installation guide.

Starting Your Local Cluster

minikube start
This command will initialize a new Kubernetes cluster in your local environment. The process may take a few minutes as it downloads the necessary components and sets up the virtual machine.

Connecting Ankra to Your Local Cluster

To begin deploying services through Ankra, you need to import your Minikube cluster into the platform by connecting the Ankra Agent to your local cluster.
  1. Navigate to the Clusters tab in the Ankra UI.
  2. Click Import Cluster.
  3. Enter the Cluster Name.
  4. Connect a GitHub Credential and select a GitHub repository.
    • The chosen repository will be where Ankra stores the YAML configuration files for the services deployed onto your local cluster from the Ankra Library.
  5. Run the Helm command provided in the Ankra UI to connect the Ankra Agent to your local cluster.
  6. Once your cluster is imported, you will be able to view the cluster dashboard and begin installing add-ons.

Optional: If your services will be of type LoadBalancer, you will need to start the Minikube tunnel by running the following command in a separate terminal to provide them with a public IP address:
minikube tunnel