Skip to content

Commit

Permalink
Merge pull request #395 from galal-hussein/docs_containerd_template
Browse files Browse the repository at this point in the history
Update README with containerd template
  • Loading branch information
erikwilson authored May 6, 2019
2 parents e9ebfbd + c51149d commit 8c0116d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ yes then you just need to run the agent with the `--docker` flag

k3s agent -s ${SERVER_URL} -t ${NODE_TOKEN} --docker &

k3s will generate config.toml for containerd in `/var/lib/rancher/k3s/agent/etc/containerd/config.toml`, for advanced customization for this file you can create another file called `config.toml.tmpl` in the same directory and it will be used instead.

The `config.toml.tmpl` will be treated as a Golang template file, and the `config.Node` structure is being passed to the template,the following is an example on how to use the structure to customize the configuration file https://github.com/rancher/k3s/blob/master/pkg/agent/templates/templates.go#L16-L32

systemd
-------

Expand Down

0 comments on commit 8c0116d

Please sign in to comment.