Skip to content

Commit bcadabe

Browse files
authored
Merge pull request #51376 from mburke5678/winc-fix-securityContext
Edit securityContext in sample windows deployment
2 parents b60151c + 3849746 commit bcadabe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/sample-windows-workload-deployment.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ spec:
6464
- -command
6565
- $listener = New-Object System.Net.HttpListener; $listener.Prefixes.Add('http://*:80/'); $listener.Start();Write-Host('Listening at http://*:80/'); while ($listener.IsListening) { $context = $listener.GetContext(); $response = $context.Response; $content='<html><body><H1>Red Hat OpenShift + Windows Container Workloads</H1></body></html>'; $buffer = [System.Text.Encoding]::UTF8.GetBytes($content); $response.ContentLength64 = $buffer.Length; $response.OutputStream.Write($buffer, 0, $buffer.Length); $response.Close(); };
6666
securityContext:
67+
runAsNonRoot: false
6768
windowsOptions:
6869
runAsUserName: "ContainerAdministrator"
6970
nodeSelector:

0 commit comments

Comments
 (0)