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

default resources missing for config-init container #767

Closed
f41gh7 opened this issue Sep 29, 2023 · 1 comment
Closed

default resources missing for config-init container #767

f41gh7 opened this issue Sep 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@f41gh7
Copy link
Collaborator

f41gh7 commented Sep 29, 2023

It caused following errors when creating VMAgent/VMauth components:

Warning  FailedCreate  19s                replicaset-controller  Error creating: pods "vmagent-vm-victoria-metrics-k8s-stack-64d6f94466-r58xk" is forbidden: failed quota: stag-hoothoot: must specify │
│  limits.cpu for: config-init; limits.memory for: config-init; requests.cpu for: config-init; requests.memory for: config-init    

Regression after #619

Current workaround, patch container manually:

kind: VMAgent
spec:
  initContainers:
    - name: config-init
       resources:
         limits:
            cpu: 10m
            memory: 52Mi
         requests:
            cpu: 10m
            memory: 52Mi
@f41gh7 f41gh7 added the bug Something isn't working label Sep 29, 2023
f41gh7 added a commit that referenced this issue Oct 4, 2023
…iners

it must fix an issue for envs with strict policy for resource requests
#767
@f41gh7
Copy link
Collaborator Author

f41gh7 commented Oct 5, 2023

Fix included into the https://github.com/VictoriaMetrics/operator/releases/tag/v0.39.0 release

@f41gh7 f41gh7 closed this as completed Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant