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

2 Different instances of Traefik receive the same external IP from MetalLB #399

Open
MichaelThamm opened this issue Sep 12, 2024 · 0 comments

Comments

@MichaelThamm
Copy link
Contributor

Bug Description

When multiple Juju models have a traefik instance the latter one does not reach active/idle state because there was only 1 IP address in the pool. After re-enabling MetalLB with a range of IP addresses, both Traefik instances received the same IP address.

To Reproduce

  1. sudo microk8s enable metallb:10.77.43.192-10.77.43.192
  2. juju deploy traefik-k8s
  3. sudo microk8s disable metallb
  4. sudo microk8s enable metallb:10.77.43.192-10.77.43.195
  5. kubectl get svc -A -o wide | grep -E "^NAMESPACE|traefik"

Environment

Multipass VM with the Charm-Dev blueprint

Model  Controller  Cloud/Region        Version  SLA          Timestamp
goss   microk8s    microk8s/localhost  3.5.3    unsupported  15:16:40-04:00

App           Version  Status  Scale  Charm             Channel        Rev  Address         Exposed  Message
traefik       v2.11.0  active      1  traefik-k8s       latest/stable  194  10.152.183.102  no       Serving at 10.77.43.192

Unit             Workload  Agent  Address       Ports  Message  
traefik/0*       active    idle   10.1.157.91          Serving at 10.77.43.192

microk8s version
MicroK8s v1.29.8 revision 7176

Relevant log output

$ kubectl get svc -A -o wide | grep -E "^NAMESPACE|$JUJU_APP_NAME"

NAMESPACE             NAME                       TYPE           CLUSTER-IP       EXTERNAL-IP    PORT(S)                       AGE     SELECTOR
goss                  traefik                    ClusterIP      10.152.183.102   <none>         65535/TCP                     24h     app.kubernetes.io/name=traefik
goss                  traefik-endpoints          ClusterIP      None             <none>         <none>                        24h     app.kubernetes.io/name=traefik
goss                  traefik-lb                 LoadBalancer   10.152.183.175   10.77.43.192   80:32580/TCP,443:30275/TCP    24h     app.kubernetes.io/name=traefik
test-charm-ha-jvfj    traefik                    ClusterIP      10.152.183.73    <none>         65535/TCP                     68m     app.kubernetes.io/name=traefik
test-charm-ha-jvfj    traefik-endpoints          ClusterIP      None             <none>         <none>                        68m     app.kubernetes.io/name=traefik
test-charm-ha-jvfj    traefik-lb                 LoadBalancer   10.152.183.164   10.77.43.192   80:31587/TCP,443:30727/TCP    67m     app.kubernetes.io/name=traefik

Additional context

No response

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

No branches or pull requests

2 participants