How to update/check the ubuntu kernel configuration?

12/27/2015

I am new to Linux, and currently I want to try Kubernetes in my laptop. The official tutorial says

  1. You need to have docker installed on one machine.
  2. Your kernel should support memory and swap accounting. Ensure that the following configs are turned on in your linux kernel: CONFIG_RESOURCE_COUNTERS=y CONFIG_MEMCG=y CONFIG_MEMCG_SWAP=y CONFIG_MEMCG_SWAP_ENABLED=y CONFIG_MEMCG_KMEM=y

I just installed Ubuntu 14.04, and I dont know whether the above configs are already turned on or not, how to check them? and if some are still off, how to turn them on?

-- Chris Tien
kubernetes
linux

1 Answer

2/2/2016

As other commenters pointed out, the list of configuration options can be found in the single-node docker getting-started guide:

https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md#node-is-in-notready-state

Those configuration options can be found in /boot/config-*

The grub options can be found/set in /etc/default/grub.

-- briangrant
Source: StackOverflow