We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59bea22 commit 5739facCopy full SHA for 5739fac
examples/logs/Logs.cs
@@ -23,7 +23,7 @@ private static async Task Main(string[] args)
23
24
var response = await client.CoreV1.ReadNamespacedPodLogWithHttpMessagesAsync(
25
pod.Metadata.Name,
26
- pod.Metadata.NamespaceProperty, follow: true).ConfigureAwait(false);
+ pod.Metadata.NamespaceProperty, container: pod.Spec.Containers[0].Name, follow: true).ConfigureAwait(false);
27
var stream = response.Body;
28
stream.CopyTo(Console.OpenStandardOutput());
29
}
0 commit comments