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

Updated yml definition for LimitRange in readme.md #38

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ metadata:

## Step-02: Create LimitRange manifest
- Instead of specifying `resources like cpu and memory` in every container spec of a pod defintion, we can provide the default CPU & Memory for all containers in a namespace using `LimitRange`
```yaml
```yaml
apiVersion: v1
kind: ResourceQuota
kind: LimitRange
metadata:
name: ns-resource-quota
name: default-cpu-mem-limit-range
namespace: dev3
spec:
limits:
- default:
cpu: "500m" # If not specified default limit is 0.5 vCPU per container
memory: "512Mi" # If not specified the Container's memory limit is set to 512Mi, which is the default memory limit for the namespace.
cpu: "500m" # If not specified default limit is 1 vCPU per container
defaultRequest:
cpu: "300m" # If not specified default it will take from whatever specified in limits.default.cpu
memory: "256Mi" # If not specified default it will take from whatever specified in limits.default.memory
cpu: "300m" # If not specified default it will take from whatever specified in limits.default.cpu
type: Container
type: Container
```

## Step-03: Update all k8s manifest with namespace
Expand Down