I have to download kernel headers in 3 nodes in a Kubernetes cluster that is run on GKE. The nodes use Google's container optimized OS which appears to be a fork of Chromium OS.
How can I check if kernel headers are installed and where they are installed ? And how to install them if they are not already installed ? I tried using apt but it's not available in that OS.
a) As per the official doc:
b) As described in the doc:
In some cases, The agent may not install correctly if the nodes in your Kubernetes environment use Unix versions that do not match the headers provided. The kernel headers must be manually installed on each node in those circumstances
For RHEL-style distributions, run:
For more information on troubleshooting, refer to the Kernel Headers module
c) The below commands described in the doc will help you in validating the kernel header:
To check whether the kernel headers are installed (any user can run this):
To install the necessary kernel headers:
When properly installed, the required kernel headers are located under: