Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f0e755c

Browse filesBrowse files
authored
Fix step indentations in windows user guide (#41283)
1 parent a748e78 commit f0e755c
Copy full SHA for f0e755c

File tree

1 file changed

+67
-67
lines changed
Filter options

1 file changed

+67
-67
lines changed

‎content/en/docs/concepts/windows/user-guide.md

Copy file name to clipboardExpand all lines: content/en/docs/concepts/windows/user-guide.md
+67-67Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -242,76 +242,76 @@ Here are values used for each Windows Server version:
242242
A cluster administrator can create a `RuntimeClass` object which is used to encapsulate these taints and tolerations.
243243

244244
1. Save this file to `runtimeClasses.yml`. It includes the appropriate `nodeSelector`
245-
for the Windows OS, architecture, and version.
246-
247-
```yaml
248-
---
249-
apiVersion: node.k8s.io/v1
250-
kind: RuntimeClass
251-
metadata:
252-
name: windows-2019
253-
handler: example-container-runtime-handler
254-
scheduling:
255-
nodeSelector:
256-
kubernetes.io/os: 'windows'
257-
kubernetes.io/arch: 'amd64'
258-
node.kubernetes.io/windows-build: '10.0.17763'
259-
tolerations:
260-
- effect: NoSchedule
261-
key: os
262-
operator: Equal
263-
value: "windows"
264-
```
245+
for the Windows OS, architecture, and version.
246+
247+
```yaml
248+
---
249+
apiVersion: node.k8s.io/v1
250+
kind: RuntimeClass
251+
metadata:
252+
name: windows-2019
253+
handler: example-container-runtime-handler
254+
scheduling:
255+
nodeSelector:
256+
kubernetes.io/os: 'windows'
257+
kubernetes.io/arch: 'amd64'
258+
node.kubernetes.io/windows-build: '10.0.17763'
259+
tolerations:
260+
- effect: NoSchedule
261+
key: os
262+
operator: Equal
263+
value: "windows"
264+
```
265265

266266
1. Run `kubectl create -f runtimeClasses.yml` using as a cluster administrator
267267
1. Add `runtimeClassName: windows-2019` as appropriate to Pod specs
268268

269-
For example:
270-
271-
```yaml
272-
---
273-
apiVersion: apps/v1
274-
kind: Deployment
275-
metadata:
276-
name: iis-2019
277-
labels:
278-
app: iis-2019
279-
spec:
280-
replicas: 1
281-
template:
282-
metadata:
283-
name: iis-2019
284-
labels:
285-
app: iis-2019
286-
spec:
287-
runtimeClassName: windows-2019
288-
containers:
289-
- name: iis
290-
image: mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019
291-
resources:
292-
limits:
293-
cpu: 1
294-
memory: 800Mi
295-
requests:
296-
cpu: .1
297-
memory: 300Mi
298-
ports:
299-
- containerPort: 80
300-
selector:
301-
matchLabels:
302-
app: iis-2019
303-
---
304-
apiVersion: v1
305-
kind: Service
306-
metadata:
307-
name: iis
308-
spec:
309-
type: LoadBalancer
310-
ports:
311-
- protocol: TCP
312-
port: 80
313-
selector:
314-
app: iis-2019
315-
```
269+
For example:
270+
271+
```yaml
272+
---
273+
apiVersion: apps/v1
274+
kind: Deployment
275+
metadata:
276+
name: iis-2019
277+
labels:
278+
app: iis-2019
279+
spec:
280+
replicas: 1
281+
template:
282+
metadata:
283+
name: iis-2019
284+
labels:
285+
app: iis-2019
286+
spec:
287+
runtimeClassName: windows-2019
288+
containers:
289+
- name: iis
290+
image: mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019
291+
resources:
292+
limits:
293+
cpu: 1
294+
memory: 800Mi
295+
requests:
296+
cpu: .1
297+
memory: 300Mi
298+
ports:
299+
- containerPort: 80
300+
selector:
301+
matchLabels:
302+
app: iis-2019
303+
---
304+
apiVersion: v1
305+
kind: Service
306+
metadata:
307+
name: iis
308+
spec:
309+
type: LoadBalancer
310+
ports:
311+
- protocol: TCP
312+
port: 80
313+
selector:
314+
app: iis-2019
315+
```
316316

317317
[RuntimeClass]: /docs/concepts/containers/runtime-class/

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.