instrumenta / instrumenta/kubeval

Invalid memory resources

Open
#195 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3.2k
Forks
227
PR merge metrics
No merged PRs in 30d

Description

Hi
i've got a CronJob with resources like that :

```yaml
resources:
limits:
cpu: 300m
memory: 300m
requests:
cpu: 100m
memory: 100m
```

I've got an error when pod is created :

```
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 2m9s default-scheduler Successfully assigned operations-preprod/clean-gcp-images-lequipe-1572516000-q4jt4 to gke-lequipe-exploita-auto-europe-west-5348ea87-ghjq
Normal SuccessfulMountVolume 2m8s kubelet, gke-lequipe-exploita-auto-europe-west-5348ea87-ghjq MountVolume.SetUp succeeded for volume "default-token-wgffl"
Normal SuccessfulMountVolume 2m8s kubelet, gke-lequipe-exploita-auto-europe-west-5348ea87-ghjq MountVolume.SetUp succeeded for volume "serviceaccount-volume"
Normal SandboxChanged 113s (x11 over 2m5s) kubelet, gke-lequipe-exploita-auto-europe-west-5348ea87-ghjq Pod sandbox changed, it will be killed and re-created.
Warning FailedCreatePodSandBox 112s (x12 over 2m7s) kubelet, gke-lequipe-exploita-auto-europe-west-5348ea87-ghjq Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "clean-gcp-images-lequipe-1572516000-q4jt4": Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:286: decoding sync type from init pipe caused \"read parent: connection reset by peer\""
```

Without the typo error it works :

```
resources:
limits:
cpu: 300m
memory: 300M
requests:
cpu: 100m
memory: 100M
```

Documentation : https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-memory

It is possible to check memory values ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.