Skip to content

Commit

Permalink
change direcotry name
Browse files Browse the repository at this point in the history
  • Loading branch information
tom9eiger committed Jul 3, 2024
1 parent 7f0ffe5 commit 1ba5635
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 0 deletions.
69 changes: 69 additions & 0 deletions MINIKUBE_SETUP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
To set up a local Kubernetes cluster using Minikube with Calico for network policy and MetalLB for load balancing, follow these steps. This setup will help you deploy and test the demo application locally.

### Step-by-Step Guide

### Prerequisites

- Install Minikube: Follow the [Minikube installation guide](https://minikube.sigs.k8s.io/docs/start/)
- Install kubectl: Follow the [kubectl installation guide](https://kubernetes.io/docs/tasks/tools/install-kubectl/)

### Setup Minikube with Calico and MetalLB

#### 1. Start Minikube with Calico

Start Minikube with the Calico CNI plugin:

```bash
minikube start --network-plugin=cni --cni=calico
```

Verify that Calico is running:

```bash
kubectl get pods -n kube-system | grep calico
```

#### 2. Set Up MetalLB

1. **Install MetalLB**

Apply the MetalLB manifests:

```bash
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/namespace.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/metallb.yaml
```

2. **Configure MetalLB**

Determine the IP address range that your Minikube cluster is using:

```bash
minikube ip
```

Let's assume your Minikube IP is `192.168.49.2`. Use an IP range in the same subnet for MetalLB (e.g., `192.168.49.30-192.168.49.40`).

Create a MetalLB configuration file:

```yaml
# metallb-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: metallb-system
name: config
data:
config: |
address-pools:
- name: default
protocol: layer2
addresses:
- 192.168.49.30-192.168.49.40
```
Apply the configuration:
```bash
kubectl apply -f metallb-config.yaml
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions deployment/metallb-config-minikube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# metallb-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: metallb-system
name: config
data:
config: |
address-pools:
- name: default
protocol: layer2
addresses:
- 192.168.49.30-192.168.49.40
File renamed without changes.

0 comments on commit 1ba5635

Please sign in to comment.