File tree 3 files changed +4
-17
lines changed
3 files changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -107,20 +107,7 @@ A saída será algo como:
107
107
E com base nessa saída definimos o range de IPs para utilizar no arquivo de configuração do MetalLB.
108
108
109
109
```
110
- apiVersion: metallb.io/v1beta1
111
- kind: IPAddressPool
112
- metadata:
113
- name: example
114
- namespace: metallb-system
115
- spec:
116
- addresses:
117
- - 172.18.255.200-172.18.255.250
118
- ---
119
- apiVersion: metallb.io/v1beta1
120
- kind: L2Advertisement
121
- metadata:
122
- name: empty
123
- namespace: metallb-system
110
+ kubectl apply -f metallb-config.yaml
124
111
```
125
112
126
113
Agora vamos criar um service do tipo LoadBalancer para testar o MetalLB.
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ nodes:
13
13
node-labels: "ingress-ready=true"
14
14
extraPortMappings :
15
15
- containerPort : 80
16
- hostPort : 80
16
+ hostPort : 8080
17
17
protocol : TCP
18
18
- containerPort : 443
19
- hostPort : 443
19
+ hostPort : 8443
20
20
protocol : TCP
21
21
- role : control-plane
22
22
- role : control-plane
Original file line number Diff line number Diff line change 1
1
apiVersion : metallb.io/v1beta1
2
2
kind : IPAddressPool
3
3
metadata :
4
- name : example
4
+ name : metallb-ip-pool
5
5
namespace : metallb-system
6
6
spec :
7
7
addresses :
You can’t perform that action at this time.
0 commit comments