diff --git a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/ExecWebSocketListener.java b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/ExecWebSocketListener.java
index <HASH>..<HASH> 100644
--- a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/ExecWebSocketListener.java
+++ b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/ExecWebSocketListener.java
@@ -322,7 +322,7 @@ public class ExecWebSocketListener extends WebSocketListener implements ExecWatc
         if (stream != null) {
             return stream;
         } else if (out != null) {
-            PipedInputStream pis = new PipedInputStream();
+            PipedInputStream pis = new PipedInputStream(2 * 1024);
             toClose.add(out);
             toClose.add(pis);
             return pis;
Fix #<I> Use a reasonable buffer size for exec stdin