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

Compatibility issue with Linkerd #1768

Open
klauserber opened this issue Dec 27, 2024 · 0 comments
Open

Compatibility issue with Linkerd #1768

klauserber opened this issue Dec 27, 2024 · 0 comments
Labels

Comments

@klauserber
Copy link

klauserber commented Dec 27, 2024

Report

I am experiencing a compatibility issue between the Percona MongoDB Operator and Linkerd.

More about the problem

The MongoDB instance should deploy successfully with Linkerd injection enabled.

Steps to reproduce

  1. Create a namespace with Linkerd injection enabled:

    apiVersion: v1
    kind: Namespace
    metadata:
      annotations:
        linkerd.io/inject: enabled
      labels:
        kubernetes.io/metadata.name: myapp-dev
      name: myapp-dev
  2. Install the operator following the documentation:

  3. Deploy a minimal MongoDB instance:

    apiVersion: psmdb.percona.com/v1
    kind: PerconaServerMongoDB
    metadata:
      name: minimal-cluster
    spec:
      crVersion: 1.18.0
      image: perconalab/percona-server-mongodb-operator:main-mongod7.0
      unsafeFlags:
        replsetSize: true
        mongosSize: true
      upgradeOptions:
        apply: disabled
        schedule: "0 2 * * *"
      secrets:
        users: minimal-cluster
      replsets:
      - name: rs0
        size: 3
        volumeSpec:
          persistentVolumeClaim:
            resources:
              requests:
                storage: 3Gi

The pods enter a crash loop due to an incorrect mongo-init container image (cr.l5d.io/linkerd/proxy instead of percona-server-mongodb-operator).

Versions

  1. Kubernetes: v1.30.6-gke.1125000
  2. Operator: 1.18.0
  3. Database: 7
  4. Linkerd: 2.14.10

Anything else?

Workaround:

To resolve the issue, patch the operator Deployment to disable Linkerd injection:

kubectl -n myapp-dev patch deployment percona-server-mongodb-operator -p '{"spec": {"template": {"metadata": {"annotations": {"linkerd.io/inject": "disabled"}}}}}'

Then, delete the PerconaServerMongoDB CR and apply it again. The pods should come up correctly.
@klauserber klauserber added the bug label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant