Logging Verbosity setting for kube* components
The following logs are available for cluster debugging:
Master
/var/log/kube-apiserver.log- API Server, responsible for serving the API/var/log/kube-scheduler.log- Scheduler, responsible for making scheduling decisions/var/log/kube-controller-manager.log- Controller that manages replication controllers
Worker Nodes
/var/log/kubelet.log- Kubelet, responsible for running containers on the node/var/log/kube-proxy.log- Kube Proxy, responsible for service load balancing
It is my understanding that they all support a -v verbosity flag (klog convention), which can be immensely useful in test clusters. Unfortunately,
- Master nodes cannot be interacted with, so the verbosity of the components they host is impossible to change.
- Worker-level system pods can be hacked to enable this (Kured, DaemonSet) but there is no built-in, proper solution.
There is also the related matter of container logs settings (number of log files, max log file size, etc): https://github.com/Azure/AKS/issues/1062
Hi ohadschn, AKS bot here :wave: Thank you for posting on the AKS Repo, I'll do my best to get a kind human from the AKS team to assist you.
I might be just a bot, but I'm told my suggestions are normally quite good, as such:
- If this case is urgent, please open a Support Request so that our 24/7 support team may help you faster.
- Please abide by the AKS repo Guidelines and Code of Conduct.
- If you're having an issue, could it be described on the AKS Troubleshooting guides or AKS Diagnostics?
- Make sure your subscribed to the AKS Release Notes to keep up to date with all that's new on AKS.
- Make sure there isn't a duplicate of this issue already reported. If there is, feel free to close this one and '+1' the existing issue.
- If you have a question, do take a look at our AKS FAQ. We place the most common ones there!
Triage required from @Azure/aks-pm
Action required from @Azure/aks-pm
Issue needing attention of @Azure/aks-leads
Same here. It is necessary to get the more detailed log....
$ kubectl describe pvc gluster-pvc
Name: gluster-pvc
Namespace: default
StorageClass: gluster-heketi-external
Status: Pending
Volume:
Labels: <none>
Annotations: volume.beta.kubernetes.io/storage-class: gluster-heketi-external
volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/glusterfs
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Filesystem
Used By: <none>
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ProvisioningFailed 51s (x205 over 9h) persistentvolume-controller Failed to provision volume with StorageClass "gluster-heketi-external": failed to create volume: failed to create volume: see kube-controller-manager.log for details
We just hit a case that is pretty much impossible without access to detailed kube-scheduler logs. Having read only access to all logs would be amazing.
kube-scheduler supports this flag: https://kubernetes.io/docs/reference/command-line-tools-reference/kube-scheduler/
@Yuri
Same here. It is necessary to get the more detailed log....
$ kubectl describe pvc gluster-pvc Name: gluster-pvc Namespace: default StorageClass: gluster-heketi-external Status: Pending Volume: Labels: <none> Annotations: volume.beta.kubernetes.io/storage-class: gluster-heketi-external volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/glusterfs Finalizers: [kubernetes.io/pvc-protection] Capacity: Access Modes: VolumeMode: Filesystem Used By: <none> Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning ProvisioningFailed 51s (x205 over 9h) persistentvolume-controller Failed to provision volume with StorageClass "gluster-heketi-external": failed to create volume: failed to create volume: see kube-controller-manager.log for details
Could you please elaborate what led you to this issue - 'ProvisioningFailed' , please describe the problem use case here and can you also let us know which log details are you most interested in - Any Support cases opened on this prior would be helpful for us .
Hi @Kaarthis you may mention another Yuri... Anyway, in my scenario, I set up GluserFS cluster and create Stroage Class & PVC. But I couldn't investigate the reason why ProvisioningFailed occur (it's limited in log level)
Any Support cases opened on this prior would be helpful for us .
Let me loop in the MS internal email thread.
Got it @Yuriwoof - which logs did you access for this and may i know if through the support case having increased verbosity helped you at all ,if so how ?
@yuriwoof any luck with the MS Internal thread ? also happy to sync with you if you are available to discuss this.
We are evaluating this for long term impact especially balancing component CCP stability vs benefits of increased logging. Closing this for now as we have communicated with Octopus group in the thread.