You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/tko/session-5/docs/fix-apache.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,12 @@ You do this by placing a Resource section in the deployment of you application/
13
13
14
14
```yaml
15
15
resources:
16
-
requests: # Request are the expected amount of CPU & memory for normal use
17
-
memory: "10Mi"# Requesting 10 Megabyte of memory
18
-
cpu: "0.5"# Requesting half of Core of a CPU
19
-
limits: # Maximum amount of CPU & memory for peek use
20
-
memory: "16Mi"# Maximum allowed 16 Megabyte of memory
16
+
limits: # Maximum amount of CPU & memory for peek use
21
17
cpu: "1"# Maximum of 1 core of CPU allowed at for peek use
18
+
memory: "16Mi"# Maximum allowed 16 Megabyte of memory
19
+
requests: # Request are the expected amount of CPU & memory for normal use
20
+
cpu: "0.5"# Requesting half of Core of a CPU
21
+
memory: "10Mi"# Requesting 10 Megabyte of memory
22
22
```
23
23
24
24
More information can be found here : [Resource Management for Pods and Containers](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
@@ -48,11 +48,11 @@ Find the resources section and reduce the CPU limits to **1** and the CPU reques
48
48
```yaml
49
49
resources:
50
50
limits:
51
-
memory: "16Mi"
52
51
cpu: "1"
52
+
memory: "16Mi"
53
53
requests:
54
-
memory: "10Mi"
55
54
cpu: "0.5"
55
+
memory: "10Mi"
56
56
```
57
57
58
58
Save the above changes. The deployment will be updated and the pods will be restarted. You can validate the changes have been applied by running the following command:
0 commit comments