question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unknown field "requests" in io.k8s.api.core.v1.Container

See original GitHub issue

Describe the bug

Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.containers[0]): unknown field "requests" in io.k8s.api.core.v1.Container

To Reproduce Steps to reproduce the behavior:

  1. helm install test-pulsar --values ./pulsar/values.yaml ./pulsar

Desktop (please complete the following information):

  • OS: Mac os

Additional context

$ helm version

version.BuildInfo{Version:"v3.0.2", GitCommit:"19e47ee3283ae98139d98460de796c1be1e3975f", GitTreeState:"clean", GoVersion:"go1.13.5"}
$kubectl version

Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.3", GitCommit:"b3cbbae08ec52a7fc73d334838e18d17e8512749", GitTreeState:"clean", BuildDate:"2019-11-14T04:24:34Z", GoVersion:"go1.12.13", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.5", GitCommit:"20c265fef0741dd71a66480e35bd69f18351daea", GitTreeState:"clean", BuildDate:"2019-10-15T19:07:57Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
jiazhaicommented, Jan 3, 2020

After comments the config out, it is OK now. would like to work with helm to solve this issue later.

When we comment out the following code in grafana in values.yaml:

#  resources:
#    requests:
#      memory: 4Gi
#      cpu: 1

everything is ok. And in helm2, the issue does not appear to occur

0reactions
sijiecommented, Jan 31, 2020

I think the change was for helm3. We might need to consider support both helm3 and helm2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

kubernetes - unknown field "resources" in io.k8s.api.apps.v1 ...
I'd expect to see a YAML syntax error from what you've shown, but not that validation error. (You have two spaces before the...
Read more >
unknown field "fsGroup" in io.k8s.api.core.v1.SecurityContext
No tasks are currently assigned. Use tasks to break down this issue into smaller parts. Linked items. 0.
Read more >
Package k8s.io.api.core.v1 | Cloud Run Documentation
This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that...
Read more >
Kubernetes Troubleshooting - Fixing Validation Error | Datree.io
spec.containers[0]): unknown field "names" in io.k8s.api.core.v1.Container, ValidationError(Deployment.spec.template.
Read more >
查询StatefulSet_云容器实例 CCI_API参考
containers. Array of io.k8s.api.core.v1.Container objects. List of containers belonging to the pod. Containers cannot currently be added or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found