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

Simplify getting the SSH key from the logs #1179

Closed
dholbach opened this issue Jun 28, 2018 · 6 comments
Closed

Simplify getting the SSH key from the logs #1179

dholbach opened this issue Jun 28, 2018 · 6 comments
Labels
docs Issue or PR relates to documentation

Comments

@dholbach
Copy link
Member

As part of #1130 @squaremo and I talked about how to most easily get the SSH keys from the log.

We currently

  1. advertise fluxctl identity (which requires having downloaded the binary and put it into $PATH) in site/using.md.
  2. extract it from Flux's logs:
[daniel@reef flux ]$ git grep "grep identity.pub"
chart/flux/README.md:kubectl -n flux logs deployment/flux | grep identity.pub | cut -d '"' -f2
chart/flux/templates/NOTES.txt:  kubectl -n {{ .Release.Namespace }} logs $FLUX_POD | grep identity.pub | cut -d '"' -f2
site/helm/installing.md:kubectl -n flux logs $FLUX_POD | grep identity.pub | cut -d '"' -f2
site/standalone/installing.md:kubectl logs deployment/flux | grep identity.pub | cut -d '"' -f2
[daniel@reef flux ]$ 

The latter can be convenient, but maybe we should agree on one way to go about it.

@squaremo brought up the idea of using something like kubectl run --image weaveworks/flux -- identity.

@dholbach
Copy link
Member Author

Now that #1212 is landed, shall we cut over our docs to tell people to download fluxctl and use identity instead?

@dholbach dholbach added the docs Issue or PR relates to documentation label Jul 24, 2018
@dholbach
Copy link
Member Author

If yes, we should probably land this before the next release? :)

@squaremo
Copy link
Member

Now that #1212 is landed, shall we cut over our docs to tell people to download fluxctl and use identity instead?

Can you elaborate on this suggestion? I thought the objection to "just use fluxctl" is that it means you have to go on an excursion to explain where to download fluxctl and so on.

@dholbach
Copy link
Member Author

Where to download was only one step. This was what we had documented before:

fluxpod=$(kubectl get pod -l name=flux -o name | awk -F / '{ print $2; }')
kubectl port-forward "$fluxpod" 10080:3030 &
export FLUX_URL="http://localhost:10080/api/flux"
fluxctl list-controllers --all-namespaces

@dholbach
Copy link
Member Author

Maybe we can do this once we put up packages for fluxctl:

@dholbach
Copy link
Member Author

A quick update, fluxctl is

  • in Homebrew official (Mac)
  • accepted in chocolatey (Windows) - process is not automated yet though
  • in AUR (Arch Linux), Snaps are unfortunately still some time off.

I personally feel we're not too far off from recommending the use of fluxctl as opposed to using kubectl logs deployment/flux | grep identity.pub | cut ....

I'll start working on a PR for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
docs Issue or PR relates to documentation
Projects
None yet
Development

No branches or pull requests

2 participants