### 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
```

