Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to Loadbalancer service when. #317

Closed
FerronN opened this issue Sep 22, 2018 · 3 comments
Closed

Cannot connect to Loadbalancer service when. #317

FerronN opened this issue Sep 22, 2018 · 3 comments

Comments

@FerronN
Copy link

FerronN commented Sep 22, 2018

Is this a bug report or a feature request?:
bug

What happened:
I've created two loadBalance service. When I connected to the pulbic ip of the service everything works fine. When I delete and recreate the deployment for the app the loadBalance service is supposed to loadBalance I can't connect anymore.

I've a workaround as follows:
Delete the speaker pods and it works again.

service yaml:
apiVersion: v1
kind: Service
metadata:
  name: teamspeak-tcp
  annotations:
    metallb.universe.tf/address-pool: production-public-ips
    metallb.universe.tf/allow-shared-ip: teamspeak
spec:
  ports:
  - port: 10011
    targetPort: 10011
    name: file
    protocol: TCP
  - port: 30033
    targetPort: 30033
    name: query
    protocol: TCP
  selector:
    app: teamspeak-server
  type: LoadBalancer
---
apiVersion: v1
kind: Service
metadata:
  name: teamspeak-udp
  annotations:
    metallb.universe.tf/address-pool: production-public-ips
    metallb.universe.tf/allow-shared-ip: teamspeak
spec:
  ports:
  - port: 9987
    targetPort: 9987
    name: voice
    protocol: UDP
  selector:
    app: teamspeak-server
  type: LoadBalancer

What you expected to happen:
That I could connect to my service again after I recreated the deployment.

How to reproduce it (as minimally and precisely as possible):

  1. Create a deployment with some app
  2. Setup a loadbalance service and attach it to the app label of the deployment
  3. Check if the connection work trough the loadbalancer to the app
  4. Delete the deployment of the app
  5. Recreate the deployment of the app
  6. Can't connect

Anything else we need to know?:
No that I can think of, but if you need something please ask

Environment:

  • MetalLB version: 0.7.3
  • Kubernetes version: 1.11.2
  • BGP router type/version: layer2
  • OS (e.g. from /etc/os-release): Ubuntu 18.04
  • Kernel (e.g. uname -a):
@jeefy
Copy link

jeefy commented Nov 4, 2018

Very similar issue here as well with my DNS setup. I have two services: one serves UDP(53), the other serves TCP(53). Both share a load balancer IP.

@glycerine102
Copy link

I experience a similar issue as well. I set up 2 services with metallb.universe.tf/allow-shared-ip for port 53 on TCP and UDP. Recreating, or applying changes to the deployment will prohibit connections to the service's IP. Deleting the speaker pods (and letting it recreate) works around the issue.

@danderson
Copy link
Contributor

Sorry, but I no longer have the time to debug MetalLB deployments for people. I want to keep this tracker specifically for bugs and features, so I'm going to close this. At some point I may have time to write general troubleshooting documentation, but as a first step towards that I need to clear up the issue tracker.

You could try asking for help on the #metallb channel on the Kubernetes slack, where there are people other than me who can assist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants