Skip to content

Commit

Permalink
Add Kernel Version of node
Browse files Browse the repository at this point in the history
  • Loading branch information
lazam committed Sep 1, 2023
1 parent 314193c commit 61a9044
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/lib/kubernetes_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ def get_pod_node_details(pod_name):
for label in ["beta.kubernetes.io/arch", "beta.kubernetes.io/instance-type", "beta.kubernetes.io/os"]:
if label in node.metadata.labels:
node_details[label] = node.metadata.labels[label]

if node.status.node_info.kernel_version:
node_details['kernel-version'] = node.status.node_info.kernel_version

return node_details


Expand Down

0 comments on commit 61a9044

Please sign in to comment.