Destination host unreachable

8 views
Skip to first unread message

julian dn

unread,
Oct 10, 2024, 12:33:50 AMOct 10
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


Reply all
Reply to author
Forward
0 new messages