Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
c26a76d0
Commit
c26a76d0
authored
Dec 10, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18430 from fgrzadkowski/simpler_prerequisites
Auto commit by PR queue bot
parents
0f399211
b17c1cb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
29 deletions
+36
-29
docker.md
docs/getting-started-guides/docker.md
+36
-29
No files found.
docs/getting-started-guides/docker.md
View file @
c26a76d0
...
...
@@ -44,6 +44,7 @@ Running Kubernetes locally via Docker
-
[
Run an application
](
#run-an-application
)
-
[
Expose it as a service
](
#expose-it-as-a-service
)
-
[
A note on turning down your cluster
](
#a-note-on-turning-down-your-cluster
)
-
[
Troubleshooting
](
#troubleshooting
)
### Overview
...
...
@@ -55,35 +56,7 @@ Here's a diagram of what the final result will look like:
### Prerequisites
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:
```console
CONFIG_RESOURCE_COUNTERS=y
CONFIG_MEMCG=y
CONFIG_MEMCG_SWAP=y
CONFIG_MEMCG_SWAP_ENABLED=y
CONFIG_MEMCG_KMEM=y
```
3.
Enable the memory and swap accounting in the kernel, at boot, as command line
parameters as follows:
```console
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
```
NOTE: The above is specifically for GRUB2.
You can check the command line parameters passed to your kernel by looking at the
output of /proc/cmdline:
```console
$cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.18.4-aufs root=/dev/sda5 ro cgroup_enable=memory
swapaccount=1
```
4.
Decide what Kubernetes version to use. Set the
`${K8S_VERSION}`
variable to
2.
Decide what Kubernetes version to use. Set the
`${K8S_VERSION}`
variable to
a value such as "1.1.1".
### Step One: Run etcd
...
...
@@ -209,6 +182,40 @@ the cluster, you need to first kill the kubelet container, and then any other co
You may use
`docker kill $(docker ps -aq)`
, note this removes _all_ containers running under Docker, so use with caution.
### Troubleshooting
#### Node is in ```NotReady``` state
If you see your node as
```NotReady```
it's possible that your OS does not have memcg and swap enabled.
1.
Your kernel should support memory and swap accounting. Ensure that the
following configs are turned on in your linux kernel:
```console
CONFIG_RESOURCE_COUNTERS=y
CONFIG_MEMCG=y
CONFIG_MEMCG_SWAP=y
CONFIG_MEMCG_SWAP_ENABLED=y
CONFIG_MEMCG_KMEM=y
```
2.
Enable the memory and swap accounting in the kernel, at boot, as command line
parameters as follows:
```console
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
```
NOTE: The above is specifically for GRUB2.
You can check the command line parameters passed to your kernel by looking at the
output of /proc/cmdline:
```console
$cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.18.4-aufs root=/dev/sda5 ro cgroup_enable=memory
swapaccount=1
```
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
<!-- END MUNGE: GENERATED_ANALYTICS -->
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment