Skip to content

Commit

Permalink
Configure Socat to only print fatal, error and warning message. (#7561)
Browse files Browse the repository at this point in the history
  • Loading branch information
davinchia committed Nov 3, 2021
1 parent 24a38f7 commit c845493
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,21 +325,21 @@ public KubePodProcess(final String processRunnerHost,
final Container remoteStdin = new ContainerBuilder()
.withName("remote-stdin")
.withImage("alpine/socat:1.7.4.1-r1")
.withCommand("sh", "-c", "socat -d -d -d TCP-L:9001 STDOUT > " + STDIN_PIPE_FILE)
.withCommand("sh", "-c", "socat -d TCP-L:9001 STDOUT > " + STDIN_PIPE_FILE)
.withVolumeMounts(pipeVolumeMount, terminationVolumeMount)
.build();

final Container relayStdout = new ContainerBuilder()
.withName("relay-stdout")
.withImage("alpine/socat:1.7.4.1-r1")
.withCommand("sh", "-c", String.format("cat %s | socat -d -d -d - TCP:%s:%s", STDOUT_PIPE_FILE, processRunnerHost, stdoutLocalPort))
.withCommand("sh", "-c", String.format("cat %s | socat -d - TCP:%s:%s", STDOUT_PIPE_FILE, processRunnerHost, stdoutLocalPort))
.withVolumeMounts(pipeVolumeMount, terminationVolumeMount)
.build();

final Container relayStderr = new ContainerBuilder()
.withName("relay-stderr")
.withImage("alpine/socat:1.7.4.1-r1")
.withCommand("sh", "-c", String.format("cat %s | socat -d -d -d - TCP:%s:%s", STDERR_PIPE_FILE, processRunnerHost, stderrLocalPort))
.withCommand("sh", "-c", String.format("cat %s | socat -d - TCP:%s:%s", STDERR_PIPE_FILE, processRunnerHost, stderrLocalPort))
.withVolumeMounts(pipeVolumeMount, terminationVolumeMount)
.build();

Expand Down

0 comments on commit c845493

Please sign in to comment.