error when creating IPAddressPool and L2Advertisement after helm install metallb/metallb

111 views
Skip to first unread message

曾正光

unread,
Nov 9, 2022, 11:26:39 PM11/9/22
to metallb-users
helm install metallb metallb/metallb -n metallb-system
NAME: metallb
LAST DEPLOYED: Wed Nov  9 23:18:08 2022
NAMESPACE: metallb-system
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
MetalLB is now running in the cluster.

Now you can configure it via its CRs. Please refer to the metallb official docs
on how to use the CRs.

helm list -n metallb-system
NAME       NAMESPACE         REVISION    UPDATED                                    STATUS      CHART             APP VERSION
metallb    metallb-system    1           2022-11-09 23:18:08.154552137 -0500 EST    deployed    metallb-0.13.7    v0.13.7

kubectl get all -n metallb-system
NAME                                     READY   STATUS    RESTARTS   AGE
pod/metallb-controller-99b88c55f-rp9gb   1/1     Running   0          101s
pod/metallb-speaker-7frmg                1/1     Running   0          101s
pod/metallb-speaker-9tbxk                1/1     Running   0          101s
pod/metallb-speaker-lgj9b                1/1     Running   0          101s
pod/metallb-speaker-nbjd2                1/1     Running   0          101s

NAME                              TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)   AGE
service/metallb-webhook-service   ClusterIP   10.97.136.39   <none>        443/TCP   101s

NAME                             DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR            AGE
daemonset.apps/metallb-speaker   4         4         4       4            4           kubernetes.io/os=linux   101s

NAME                                 READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/metallb-controller   1/1     1            1           101s

NAME                                           DESIRED   CURRENT   READY   AGE
replicaset.apps/metallb-controller-99b88c55f   1         1         1       101s


cat values.yaml
---
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
  name: default
  namespace: metallb-system
spec:
  addresses:
  - 192.168.123.73
  autoAssign: true
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
  name: default
  namespace: metallb-system
spec:
  ipAddressPools:
  - default

kubectl apply -f values.yaml
Error from server (InternalError): error when creating "values.yaml": Internal error occurred: failed calling webhook "ipaddresspoolvalidationwebhook.metallb.io": failed to call webhook: Post "https://metallb-webhook-service.metallb-system.svc:443/validate-metallb-io-v1beta1-ipaddresspool?timeout=10s": context deadline exceeded
Error from server (InternalError): error when creating "values.yaml": Internal error occurred: failed calling webhook "l2advertisementvalidationwebhook.metallb.io": failed to call webhook: Post "https://metallb-webhook-service.metallb-system.svc:443/validate-metallb-io-v1beta1-l2advertisement?timeout=10s": dial tcp 10.97.136.39:443: i/o timeout


曾正光

unread,
Nov 10, 2022, 1:40:23 AM11/10/22
to metallb-users
k8s: 1.25.3
metallb:0.13.7
ipvs mode
flannle network addon

Reply all
Reply to author
Forward
0 new messages