Skip to content

Commit d85c0d3

Browse files
authored
Merge pull request #20817 from wawa0210/change-ja-os-label
[Trival] beta.kubernetes.io/os deprecated since v1.14, are targeted for removal in v1.18
2 parents 72130f7 + 5c864a0 commit d85c0d3

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

content/ja/docs/setup/production-environment/windows/user-guide-windows-containers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ To deploy a Windows container on Kubernetes, you must first create an example ap
6464
- -command
6565
- "<#code used from https://gist.github.com/wagnerandrade/5424431#> ; $$listener = New-Object System.Net.HttpListener ; $$listener.Prefixes.Add('http://*:80/') ; $$listener.Start() ; $$callerCounts = @{} ; Write-Host('Listening at http://*:80/') ; while ($$listener.IsListening) { ;$$context = $$listener.GetContext() ;$$requestUrl = $$context.Request.Url ;$$clientIP = $$context.Request.RemoteEndPoint.Address ;$$response = $$context.Response ;Write-Host '' ;Write-Host('> {0}' -f $$requestUrl) ; ;$$count = 1 ;$$k=$$callerCounts.Get_Item($$clientIP) ;if ($$k -ne $$null) { $$count += $$k } ;$$callerCounts.Set_Item($$clientIP, $$count) ;$$ip=(Get-NetAdapter | Get-NetIpAddress); $$header='<html><body><H1>Windows Container Web Server</H1>' ;$$callerCountsString='' ;$$callerCounts.Keys | % { $$callerCountsString+='<p>IP {0} callerCount {1} ' -f $$ip[1].IPAddress,$$callerCounts.Item($$_) } ;$$footer='</body></html>' ;$$content='{0}{1}{2}' -f $$header,$$callerCountsString,$$footer ;Write-Output $$content ;$$buffer = [System.Text.Encoding]::UTF8.GetBytes($$content) ;$$response.ContentLength64 = $$buffer.Length ;$$response.OutputStream.Write($$buffer, 0, $$buffer.Length) ;$$response.Close() ;$$responseStatus = $$response.StatusCode ;Write-Host('< {0}' -f $$responseStatus) } ; "
6666
nodeSelector:
67-
beta.kubernetes.io/os: windows
67+
kubernetes.io/os: windows
6868
```
6969
7070
{{< note >}}
@@ -113,8 +113,8 @@ Users today need to use some combination of taints and node selectors in order t
113113

114114
Users can ensure Windows containers can be scheduled on the appropriate host using Taints and Tolerations. All Kubernetes nodes today have the following default labels:
115115

116-
* beta.kubernetes.io/os = [windows|linux]
117-
* beta.kubernetes.io/arch = [amd64|arm64|...]
116+
* kubernetes.io/os = [windows|linux]
117+
* kubernetes.io/arch = [amd64|arm64|...]
118118

119119
If a Pod specification does not specify a nodeSelector like `"beta.kubernetes.io/os": windows`, it is possible the Pod can be scheduled on any host, Windows or Linux. This can be problematic since a Windows container can only run on Windows and a Linux container can only run on Linux. The best practice is to use a nodeSelector.
120120

content/ja/examples/windows/configmap-pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ spec:
2828
name: example-config
2929
key: example.property.2
3030
nodeSelector:
31-
beta.kubernetes.io/os: windows
31+
kubernetes.io/os: windows

content/ja/examples/windows/daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ spec:
1717
- name: foo
1818
image: microsoft/windowsservercore:1709
1919
nodeSelector:
20-
beta.kubernetes.io/os: windows
20+
kubernetes.io/os: windows
2121

content/ja/examples/windows/emptydir-pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ spec:
1717
- name: scratch-volume
1818
emptyDir: {}
1919
nodeSelector:
20-
beta.kubernetes.io/os: windows
20+
kubernetes.io/os: windows

content/ja/examples/windows/hostpath-volume-pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
mountPath: "C:\\etc\\foo"
1212
readOnly: true
1313
nodeSelector:
14-
beta.kubernetes.io/os: windows
14+
kubernetes.io/os: windows
1515
volumes:
1616
- name: foo
1717
hostPath:

content/ja/examples/windows/secret-pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ spec:
2929
name: mysecret
3030
key: password
3131
nodeSelector:
32-
beta.kubernetes.io/os: windows
32+
kubernetes.io/os: windows

0 commit comments

Comments
 (0)