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

[bitnami/matomo] Failed to calculate the number of expected pods: jobs.batch does not implement the scale subresource #29884

Closed
viceice opened this issue Oct 14, 2024 · 7 comments · Fixed by #32774
Assignees
Labels
matomo solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@viceice
Copy link
Contributor

viceice commented Oct 14, 2024

Name and Version

bitnami/matomo 8.0.13

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Deploy chart with archive job enabled
  2. See Failed to calculate the number of expected pods: jobs.batch does not implement the scale subresource warning

Are you using any custom parameters or values?

cronjobs:
  taskScheduler:
    enabled: false
  archive:
    schedule: 15 * * * *

What is the expected behavior?

Don't see that warning

What do you see instead?

Seeing the Failed to calculate the number of expected pods: jobs.batch does not implement the scale subresource warning for the PodDisruptionBudget

Additional information

It looks like the pdb is also matching the archive job because the selector label are matching all matomo pods.

image

image

image

I think the matomo deployment should also get the app.kubernetes.io/component label and the pdb selector should also get that added.

@viceice viceice added the tech-issues The user has a technical issue about an application label Oct 14, 2024
@github-actions github-actions bot added the triage Triage is needed label Oct 14, 2024
@carrodher
Copy link
Member

Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.

Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Oct 30, 2024
Copy link

github-actions bot commented Nov 4, 2024

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot added the solved label Nov 4, 2024
@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 4, 2024
@viceice
Copy link
Contributor Author

viceice commented Nov 4, 2024

please reopen, it's still an issue

@no-fy
Copy link

no-fy commented Nov 13, 2024

Thank you @viceice for pointing out that the “component” label missing
As a temporary fix, in the values,
I added a component label to the matomo pod using:

podLabels:
  app.kubernetes.io/component: matomo

Disabled the provided podDisruptionBudget :

pdb:
  create: false

And then created a custom PDB matching the component using the extradeploy option available in Bitnami charts :

extraDeploy:
  - apiVersion: policy/v1
    kind: PodDisruptionBudget
    metadata:
      name: matomo-pdb
    spec:
      maxUnavailable: 1
      selector:
        matchLabels:
          app.kubernetes.io/component: matomo

Hope it can help.

@viceice
Copy link
Contributor Author

viceice commented Apr 2, 2025

@javsalgar
Copy link
Contributor

Thank you for the PR! The team will take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
matomo solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
5 participants