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

MetalLB Operator doesn't coexist with other operators #431

Open
petercb opened this issue Mar 3, 2024 · 1 comment
Open

MetalLB Operator doesn't coexist with other operators #431

petercb opened this issue Mar 3, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@petercb
Copy link

petercb commented Mar 3, 2024

If you install MetalLB operator from the instructions given at OperatorHub.io it will install into the operators namespace.

If you happen to have also installed https://operatorhub.io/operator/intel-device-plugins-operator this doesn't work out very well because both operators Service selectors are exactly the same, and both of their pods have the same port (9443) and so kubernetes will end up routing things wrong.

Error from server (InternalError): error when creating "metallb.yaml": Internal error occurred: failed calling webhook "metallbvalidationwebhook.metallb.io": failed to call webhook: Post "https://metallb-operator-controller-manager-service.operators.svc:443/validate-metallb-io-v1beta1-metallb?timeout=10s": tls: failed to verify certificate: x509: certificate is valid for inteldeviceplugins-controller-manager-service.operators, inteldeviceplugins-controller-manager-service.operators.svc, not metallb-operator-controller-manager-service.operators.svc

I was briefly confused why the metallb-operator-controller-manager-service was using the wrong cert, but on further inspection I found it wasn't, the request had actually gone to to the intel-device-plugins-operator pods

This is because both services yaml look identical aside from the name:

apiVersion: v1
kind: Service
metadata:
  name: <service>
  namespace: operators 
spec:
  ports:
  - name: "443"
    port: 443
    protocol: TCP
    targetPort: 9443
  selector:
    control-plane: controller-manager
  type: ClusterIP

I think adding a label to the pods and selector of the service something like app: metallb would solve this.

@fedepaol
Copy link
Member

Thanks for the report, should be easy to fix. We'll work on this.

@fedepaol fedepaol added bug Something isn't working help wanted Extra attention is needed labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants