Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update e.observability.md #134

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update e.observability.md #134

wants to merge 1 commit into from

Conversation

VRay27
Copy link
Contributor

@VRay27 VRay27 commented Sep 20, 2020

With the double-quotes enclosing : $i: $(date) , it not yielding the logs. Therefore by removing the double quotes it works just fine.

With the double-quotes enclosing :  $i: $(date) , it not yielding the logs. Therefore by removing the double quotes it works just fine.
@dgkanatsios
Copy link
Owner

thanks for the review, are you sure it doesn't work as is? Can't repro

dgkanatsios@digkanat:dgkanatsios$ kubectl run busybox --image=busybox --restart=Never -- /bin/sh -c 'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 1; done'
pod/busybox created
dgkanatsios@digkanat:dgkanatsios$ k logs busybox -f
0: Mon Oct  5 03:05:43 UTC 2020
1: Mon Oct  5 03:05:44 UTC 2020
2: Mon Oct  5 03:05:45 UTC 2020
3: Mon Oct  5 03:05:46 UTC 2020
4: Mon Oct  5 03:05:47 UTC 2020
5: Mon Oct  5 03:05:48 UTC 2020
6: Mon Oct  5 03:05:49 UTC 2020
7: Mon Oct  5 03:05:50 UTC 2020
8: Mon Oct  5 03:05:51 UTC 2020
9: Mon Oct  5 03:05:52 UTC 2020
10: Mon Oct  5 03:05:53 UTC 2020
11: Mon Oct  5 03:05:54 UTC 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants