Skip to content

Commit 0ac6e31

Browse files
authored
Merge pull request #20818 from wawa0210/change-zh-os-label
[Trival] beta.kubernetes.io/os deprecated since v1.14, are targeted for removal in v1.18
2 parents 400227d + de2b6f3 commit 0ac6e31

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ spec:
100100
- -command
101101
- "<#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) } ; "
102102
nodeSelector:
103-
beta.kubernetes.io/os: windows
103+
kubernetes.io/os: windows
104104
```
105105
106106
{{< note >}}

content/zh/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/zh/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/zh/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/zh/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/zh/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

content/zh/examples/windows/simple-pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ spec:
1111
ports:
1212
- containerPort: 80
1313
nodeSelector:
14-
"beta.kubernetes.io/os": windows
14+
"kubernetes.io/os": windows

0 commit comments

Comments
 (0)