Skip to content

Commit

Permalink
Add note about non-default AMIs using docker to download files
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Rifel <[email protected]>
  • Loading branch information
rifelpet committed Apr 26, 2018
1 parent c56784f commit c466dee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ Perform the following steps to setup Authenticator on a Kops cluster:
ExecStart=/bin/mkdir -p /srv/kubernetes/heptio-authenticator-aws
ExecStart=/usr/local/bin/aws s3 cp --recursive s3://KOPS_STATE_STORE/CLUSTER_NAME/addons/authenticator /srv/kubernetes/heptio-authenticator-aws/
```
If using a non-default AMI that does not have the AWS CLI, replace the second ExecStart statement with

```
ExecStart=/usr/bin/docker run --net=host --rm -v /srv/kubernetes/heptio-authenticator-aws:/srv/kubernetes/heptio-authenticator-aws quay.io/coreos/awscli@sha256:7b893bfb22ac582587798b011024f40871cd7424b9026595fd99c2b69492791d aws s3 cp --recursive s3://KOPS_STATE_STORE/CLUSTER_NAME/addons/authenticator /srv/kubernetes/heptio-authenticator-aws/
```
3. Apply the changes with `kops update cluster ${CLUSTER_NAME}`.
If the cluster already exists, roll the cluster with `kops rolling-update cluster ${CLUSTER_NAME}` in order to recreate the master nodes.
4. Update the Authenticator DaemonSet's state and output volumes to both use `/srv/kubernetes/heptio-authenticator-aws/` for their `hostPath`s.
Expand Down

0 comments on commit c466dee

Please sign in to comment.