Skip to content

Commit 71fd178

Browse files
committed
Alphabetically list tags
1 parent c155de9 commit 71fd178

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

content/en/tko/session-5/docs/deploy-apache.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,12 @@ spec:
136136
- containerPort: 80
137137
resources:
138138
limits:
139-
memory: "16Mi"
140139
cpu: "8"
140+
memory: "16Mi"
141141
requests:
142-
memory: "10Mi"
143142
cpu: "6"
143+
memory: "10Mi"
144+
144145
---
145146
apiVersion: v1
146147
kind: Service

content/en/tko/session-5/docs/fix-apache.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ You do this by placing a Resource section in the deployment of you application/
1313

1414
``` yaml
1515
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
2117
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
2222
```
2323
2424
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
4848
``` yaml
4949
resources:
5050
limits:
51-
memory: "16Mi"
5251
cpu: "1"
52+
memory: "16Mi"
5353
requests:
54-
memory: "10Mi"
5554
cpu: "0.5"
55+
memory: "10Mi"
5656
```
5757
5858
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

Comments
 (0)