mirror of
https://github.com/wahyd4/knowledge.git
synced 2026-08-09 05:06:28 +10:00
Add resource allocation limits for pods
This commit is contained in:
@@ -231,6 +231,21 @@ spec:
|
||||
type: Value
|
||||
value: 10k
|
||||
```
|
||||
## Limit CPU and memory for pods
|
||||
|
||||
```yaml
|
||||
ports:
|
||||
- name: db-port
|
||||
containerPort: 2345
|
||||
protocol: TCP
|
||||
resources:
|
||||
requests:
|
||||
cpu: 30m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 256Mi
|
||||
```
|
||||
|
||||
## Tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user