I have mapped an azure disk to one of the kafka pods,I want to check the logs stored in the azure disk, is there any provision for this ?
Asked
Active
Viewed 409 times
-1
-
Any more questions? Does it solve your problem? Don't leave without any response. – Charles Xu Oct 04 '19 at 01:08
2 Answers
0
For your requirement, I think you can ssh into the pods to check the logs stored in the disk. Actually, Azure disk is a VHD file, so you cannot check the files inside it when it is not in the attached state.

Charles Xu
- 29,862
- 2
- 22
- 39
-
If I ssh into the pod, then primarily it will give me local logs of the pod, not of all time. May be I can now try attaching that disk to a VM and then check into, if AKS allows that – Tushar Mahajan Oct 01 '19 at 08:43
-
@TusharMahajan Yes, you can detach the disk when the pod finishes the life cycle. And then attached the disk to a VM. – Charles Xu Oct 01 '19 at 08:45
-
@TusharMahajan I think the static disk is a good choice. Additional, if it solves your problem, please accept it as the answer. – Charles Xu Oct 01 '19 at 08:53
-
@TusharMahajan Any more questions? And if it works for you please accept it as the answer. – Charles Xu Oct 02 '19 at 00:57
-
This got sorted by doing ssh into the specific node placed under AKS cluster and checking into the mounted disk to that – Tushar Mahajan Oct 04 '19 at 09:51
-
@TusharMahajan So, does it solve your problem? Or you think it's not the answer you expected? – Charles Xu Oct 07 '19 at 01:06
-
0
This got sorted by doing ssh into the specific node placed under AKS cluster and checking into the mounted disk to that

Tushar Mahajan
- 2,044
- 1
- 7
- 18