Add resource allocation limits for pods

This commit is contained in:
2019-12-02 14:49:34 +11:00
parent 8291f9364d
commit 030faa475b
+15
View File
@@ -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