File tree 1 file changed +67
-67
lines changed
Filter options
content/en/docs/concepts/windows 1 file changed +67
-67
lines changed
Original file line number Diff line number Diff line change @@ -242,76 +242,76 @@ Here are values used for each Windows Server version:
242
242
A cluster administrator can create a `RuntimeClass` object which is used to encapsulate these taints and tolerations.
243
243
244
244
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
+ ` ` `
265
265
266
266
1. Run `kubectl create -f runtimeClasses.yml` using as a cluster administrator
267
267
1. Add `runtimeClassName : windows-2019` as appropriate to Pod specs
268
268
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
+ ` ` `
316
316
317
317
[RuntimeClass] : /docs/concepts/containers/runtime-class/
You can’t perform that action at this time.
0 commit comments