Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Include known_hosts in secret to make it a bit easier to mount into container #1113

Closed
squaremo opened this issue Jun 1, 2018 · 4 comments
Closed
Labels
enhancement nice-to-have review Issues that need a review size/small UX In pursuit of a delightful user experience

Comments

@squaremo
Copy link
Member

squaremo commented Jun 1, 2018

Either as the standard way of deploying it, or as an alternative means of overriding known_hosts (as in #724).

@squaremo
Copy link
Member Author

squaremo commented Jun 1, 2018

Alternative: put known_hosts and config in a configmap that is always mounted. That way people can override them, while reapplying the standard configuration without losing their overrid-- .. their overris-- ... their customisation.

@squaremo
Copy link
Member Author

squaremo commented Jun 5, 2018

Maybe a docker-config too? (e.g., as generated from sidecars, like the workaround posted in #539)

NB one thing to keep in mind: if you mount a secret or configmap using subPath, the files won't get updated when the resources do.

@squaremo squaremo added the review Issues that need a review label Jul 12, 2018
@dholbach dholbach added the UX In pursuit of a delightful user experience label Sep 28, 2018
@hiddeco
Copy link
Member

hiddeco commented Oct 2, 2018

NB one thing to keep in mind: if you mount a secret or configmap using subPath, the files won't get updated when the resources do.

You can get around this by specifying .configMap.items in combination with a mountPath as mounted ConfigMaps are updated automatically.

The downside of this approach is that it overwrites all the original data in the mountPath (if any).

You can however get around this (again) by creating a symlink to your mountPath (e.g. /home/flux/.ssh/known_hosts -> /home/flux/config/known_hosts).

@supra08
Copy link

supra08 commented Mar 10, 2020

@2opremio I would like to work on this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement nice-to-have review Issues that need a review size/small UX In pursuit of a delightful user experience
Projects
None yet
Development

No branches or pull requests

5 participants