Skip to content

Commit 0f31876

Browse files
authored
Merge pull request #51 from eranra/ocp-correctness2
improve the code ...adding packets and SequenceNum
2 parents 2bca692 + bfad27e commit 0f31876

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

hack/deploy-and-monitor-k8s-network-workload.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ pipeline:
5151
output: proto
5252
- input: Bytes
5353
output: bytes
54+
- input: SequenceNum
55+
output: sequenceNum
56+
- input: Packets
57+
output: packets
5458
type: generic
5559
- network:
5660
rules:
@@ -228,9 +232,10 @@ main() {
228232
deploy-pod-to-pod-workload
229233
deploy-flowlogs2metrics
230234
echo ":::====> Done executing"
231-
echo "Use: kubectl logs -l app=flowlogs2metrics | grep ingress-workload"
232-
echo "Use: kubectl logs -l app=flowlogs2metrics | grep egress-workload"
233-
echo "Use: kubectl logs -l app=flowlogs2metrics | grep pod-to-pod-workload"
235+
POD_NAME=$(oc get pod -n default -l app=flowlogs2metrics -o jsonpath="{.items[0].metadata.name}")
236+
echo "Use: kubectl logs $POD_NAME | grep ingress-workload"
237+
echo "Use: kubectl logs $POD_NAME | grep egress-workload"
238+
echo "Use: kubectl logs $POD_NAME | grep pod-to-pod-workload"
234239
}
235240

236241
main

0 commit comments

Comments
 (0)