Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
Adds some documentation about KUBELET_EXTRA_ARGS
Browse files Browse the repository at this point in the history
  • Loading branch information
errm committed Aug 30, 2018
1 parent e7a0e8a commit 971d6bc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ When run on an ec2 node ekstrap performs several tasks.

In order to run ekstrap your instance should have an IAM instance profile that allows the `EC2::DescribeInstances` action and the `EKS::DescribeCluster` action. Both of these actions are already included in the AWS managed policy `arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy` along with the other permissions that the kubelet requires to connect to your cluster, it is recommended therefore to simply attach this policy to your instance role/profile.

### Extra Arguments

If you wish to provide extra aruguments to the kubelet you can create a drop-in that sets the `KUBELET_EXTRA_ARGS` environment variable.

For example to [taint nodes with GPU hardware](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/#example-use-cases) you could add:

_/etc/systemd/system/kubelet.service.d/30-kubelet-extra-args.conf_
```
[Service]
Environment='KUBELET_EXTRA_ARGS=--register-with-taints="gpu=true:PreferNoSchedule"'
```

## Installation

The simplest way to install ekstrap is to use our packagecloud repository.
Expand Down

0 comments on commit 971d6bc

Please sign in to comment.