-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addon: add headlamp #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome.
I didn't try it yet (I will in a while!). Been looking forward to using this :)
- Where is the description of the addon? Probably this needs to be added somewhere.
- Why would this be added as well as the dashboard addon? Probably write that it's extensible dashboard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty cool! What would be the commands for users to be able to expose/access Headlamp in the browser? Have you checked whether we can expose an endpoint, so we can minikube addons open headlamp
?
I'm not sure this is possible but my idea is that new k8s users could set up Headlamp and access it in the browser without any prior knowledge of how to expose services in k8s.
5700408
to
2f6af6d
Compare
The description should be added in the upstream PR.
Will include this in the upstream PR description 👍🏽 |
Cool. A few other things for your consideration:
|
47f46c6
to
afae655
Compare
deploy/addons/headlamp/README.md
Outdated
@@ -0,0 +1,41 @@ | |||
## Headlamp Addon | |||
[Headlamp](https://github.com/kinvolk/headlamp) - Headlamp is an easy-to-use and extensible Kubernetes web UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have added documentation for the addon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, why not just add the link + the description: Headlamp is an easy-to-use ....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have also noticed that apparently other addons don't have a README.md file, so not sure if they will accept it for us.
Done
This looks custom made for the dashboard command, I don't think something like this is possible unless we propose a
Great, have added README for headlamp too 👍🏽
👍🏽
Interesting! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's looking very good. I found some issues related to language, so left some comments.
Also, I see you added the volume claim but I haven't seen instructions on how to set up the plugins. If the instructions should be in headlamp's docs, maybe we shouldn't have the volume claim here and just have instructions on how to set up plugins in a generic (in-cluster) way and point minikube's users there on a successful addon enabling.
export SECRET=$(kubectl get secrets --namespace headlamp -o custom-columns=":metadata.name" | grep "headlamp-token") | ||
kubectl get secret $SECRET --namespace headlamp --template=\{\{.data.token\}\} | base64 --decode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is slightly different from what we have as instructions in https://kinvolk.github.io/headlamp/docs/latest/installation/#create-a-service-account-token .
Should be make more similar? (the current way looks good, just wonder if there's a way to approximate either case)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to update the documentation as it involves the user to copy the headlamp-token name, whereas this solution can be run directly.
deploy/addons/headlamp/README.md
Outdated
@@ -0,0 +1,41 @@ | |||
## Headlamp Addon | |||
[Headlamp](https://github.com/kinvolk/headlamp) - Headlamp is an easy-to-use and extensible Kubernetes web UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, why not just add the link + the description: Headlamp is an easy-to-use ....
deploy/addons/headlamp/README.md
Outdated
@@ -0,0 +1,41 @@ | |||
## Headlamp Addon | |||
[Headlamp](https://github.com/kinvolk/headlamp) - Headlamp is an easy-to-use and extensible Kubernetes web UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have also noticed that apparently other addons don't have a README.md file, so not sure if they will accept it for us.
Seems to be some other optional addons have a command. Like this gvisor one: kubernetes#3399 In perhaps a future PR I think it's worth asking about adding an optional headlamp cmd... perhaps on a future PR. Being able to run code could be useful for making some of these things run as smoothly as ps. The I noticed the service command works with --url similar to the |
a729874
to
cd455e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 🎈🎉
Signed-off-by: Santhosh Nagaraj S <[email protected]>
Signed-off-by: Santhosh Nagaraj S [email protected]