Destination host unreachable

24 views
Skip to first unread message

julian dn

unread,
Oct 10, 2024, 12:33:50 AM10/10/24
to metallb-users
when I ping 192.168.1.240 is not not reachable 

fastapi-deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: fastapi-deployment
  labels:
    app: fastapi
spec:
  replicas: 1
  selector:
    matchLabels:
      app: fastapi
  template:
    metadata:
      labels:
        app: fastapi
    spec:
      containers:
        - name: fastapi
          image: juliann/hello:latest # Replace with your image
          ports:
            - containerPort: 8000

fastapi-service.yaml
apiVersion: v1
kind: Service
metadata:
  name: fastapi-service
spec:
  type: LoadBalancer
  ports:
    - port: 80
      targetPort: 8000
  selector:
    app: fastapi
  # Uncomment the following line if using specific external IP
  # externalIPs:
  #   - 192.168.1.200


l2advertisement.yaml
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
  name: my-l2-advertisement
  namespace: metallb-system
spec:
  ipAddressPools:
    - my-ip-address-pool


this is my metallb ippool.yaml 
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
  name: my-ip-address-pool
  namespace: metallb-system
spec:
  addresses:
    - 192.168.1.240-192.168.1.250  # Adjust the range to fit your network


Arthur Enright

unread,
May 30, 2025, 5:55:58 PMMay 30
to metallb-users
Curious if you were able to get help with this issue.  It would appear that this mailing list is pretty quiet.

Not sure if it's relevant anymore, but I'm curious if you were tryin to access the load balancer IP from the same network (192.168.1.0/24)?

Best,
Arthur

Reply all
Reply to author
Forward
0 new messages