virtual-kubelet / azure-aci

Things related to Azure Container Instances for Virtual Kubelet
Apache License 2.0
92 stars 71 forks source link

--follow option does not work with kubectl logs command for a pod running on ACI virtual node #147

Open atakadams opened 3 years ago

atakadams commented 3 years ago

kubectl logs --follow <Pod-running-on-ACI-virtual-node> doesn't follow the incoming log output but only shows existing log and then exit, as same as the command without "--follow" option.

Expected behavior: kubectl logs -f <Pod-running-on-ACI-virtual-node> command shows the latest log already stored and then continues showing new log lines without immediate exit. (For the pod create with the template attached, latest date appears on every 10 seconds)

Actual behavior: The command shows the latest log and exits immediately.

How to reproduce:

  1. Create an AKS cluster with ACI virtual node enabled
  2. Create a pod "log-test-aci" with log-test-aci.yaml in log-test-aci.zip attached.
  3. Execute kubectl logs -f log-test-aci

Note:

nakazonot commented 2 years ago

Is there a plan to resolve the issue? The problem continues in v1.4.5.