typora/note/K8S/实战笔记/开源loadblancer.md

30 lines
448 B
Markdown
Raw Permalink Normal View History

2024-12-11 21:48:55 -05:00
### 1. OpenELB
### 2. MetalLB
#### 2.1 部署
```bash
wget https://raw.githubusercontent.com/metallb/metallb/v0.13.12/config/manifests/metallb-native.yaml
kubectl apply -f metallb-native.yaml
```
#### 2.2 创建ip池
- metallb-ip.yaml
- kubectl apply -f metallb-ip.yaml
```yaml
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: first-pool
namespace: metallb-system
spec:
addresses:
- 192.168.0.40-192.168.0.50
```