beta.kubernetes.io/os deprecated since v1.14, are targeted for removal in v1.18

pull/20815/head
wawa0210 2020-05-07 11:36:13 +08:00
parent f3891c9baf
commit 13aee8fe47
No known key found for this signature in database
GPG Key ID: 900C83A2C098B3B1
8 changed files with 9 additions and 9 deletions

View File

@ -70,7 +70,7 @@ spec:
- -command
- "<#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) } ; "
nodeSelector:
beta.kubernetes.io/os: windows
kubernetes.io/os: windows
```
{{< note >}}

View File

@ -154,7 +154,7 @@ spec:
imagePullPolicy: Always
name: iis
nodeSelector:
beta.kubernetes.io/os: windows
kubernetes.io/os: windows
```
Individual containers in a Pod spec can also specify the desired GMSA credspec using a per-container `securityContext.windowsOptions.gmsaCredentialSpecName` field. For example:
@ -185,7 +185,7 @@ spec:
windowsOptions:
gmsaCredentialSpecName: gmsa-Webapp1
nodeSelector:
beta.kubernetes.io/os: windows
kubernetes.io/os: windows
```
As Pod specs with GMSA fields populated (as described above) are applied in a cluster, the following sequence of events take place:

View File

@ -28,4 +28,4 @@ spec:
name: example-config
key: example.property.2
nodeSelector:
beta.kubernetes.io/os: windows
kubernetes.io/os: windows

View File

@ -17,5 +17,5 @@ spec:
- name: foo
image: microsoft/windowsservercore:1709
nodeSelector:
beta.kubernetes.io/os: windows
kubernetes.io/os: windows

View File

@ -17,4 +17,4 @@ spec:
- name: scratch-volume
emptyDir: {}
nodeSelector:
beta.kubernetes.io/os: windows
kubernetes.io/os: windows

View File

@ -11,7 +11,7 @@ spec:
mountPath: "C:\\etc\\foo"
readOnly: true
nodeSelector:
beta.kubernetes.io/os: windows
kubernetes.io/os: windows
volumes:
- name: foo
hostPath:

View File

@ -29,4 +29,4 @@ spec:
name: mysecret
key: password
nodeSelector:
beta.kubernetes.io/os: windows
kubernetes.io/os: windows

View File

@ -11,4 +11,4 @@ spec:
ports:
- containerPort: 80
nodeSelector:
"beta.kubernetes.io/os": windows
"kubernetes.io/os": windows