Kubernetes Dashboard Editing

62 views
Skip to first unread message

mutes...@gmail.com

unread,
Mar 4, 2019, 1:21:03 PM3/4/19
to kubernetes-sig-ui
Hello people. I'm working on an improved design for the dashboard for my final year project. Is the dashboard open source and editable? Cause I have gotten its source files from github but I do not know how to deploy and edit them. I'm running miikube locally

Elijah Oyekunle

unread,
Mar 4, 2019, 1:28:41 PM3/4/19
to kubernetes-sig-ui
Hi,
Thanks for checking out Kubernetes Dashboard.

Since you have minikube running already, what you need to do next is start the Kubernetes Dashboard development server.
First install NPM dependencies:
npm ci

Then, start the development server:

npm start

This will serve the development server on a port that you can open in your browser. It will also listen for any code changes you make and reload automatically.

For more details, check out the Developer Getting Started Guide for the Kubernetes Dashboard.

Daniel Romlein

unread,
Mar 4, 2019, 8:15:14 PM3/4/19
to Elijah Oyekunle, kubernetes-sig-ui
Hey there! 

+1 to what Elijah said (thanks for the response!). Also, our Slack channel is probably a more effective way to get these sorts of questions addressed: 

Thanks,
Dan

--
You received this message because you are subscribed to the Google Groups "kubernetes-sig-ui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-sig-ui/8dedf4ea-1003-409f-a5f8-2f239e0156db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my iPhone

mutes...@gmail.com

unread,
Mar 5, 2019, 5:50:56 AM3/5/19
to kubernetes-sig-ui
Hello again Elijah. The files cloned from github have a src sub-folder within, is that what I should place in my go directory? Or the entire folder?

mutes...@gmail.com

unread,
Mar 5, 2019, 6:22:04 AM3/5/19
to kubernetes-sig-ui

Kube-error.png

I have cloned the folder to the recommended directory and I am getting this error

mutes...@gmail.com

unread,
Mar 5, 2019, 11:43:52 AM3/5/19
to kubernetes-sig-ui
Hello Dan. How do I attain that particular email required to join the sack channel

Mutesasira Timothy

unread,
Mar 7, 2019, 6:41:44 AM3/7/19
to kubernetes-sig-ui
Hello people, I am kindly requesting help with this error. npm and node js are properly installed.Plus I cloned the kubernetes into the recommended go directory from github. Kindly help

You received this message because you are subscribed to a topic in the Google Groups "kubernetes-sig-ui" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kubernetes-sig-ui/VS0Q7Ozws9o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kubernetes-sig...@googlegroups.com.

To post to this group, send email to kubernet...@googlegroups.com.
Kube-error.png

Marcin Maciaszczyk

unread,
Mar 7, 2019, 6:45:30 AM3/7/19
to Mutesasira Timothy, kubernetes-sig-ui
Hi,

Please run following commands from project directory: `rm -r node_modules && npm ci && npm start` and provide us results of it.

Regards,
Marcin

Wiadomość napisana przez Mutesasira Timothy <mutes...@gmail.com> w dniu 07.03.2019, o godz. 12:41:


For more options, visit https://groups.google.com/d/optout.
<Kube-error.png>

Mutesasira Timothy

unread,
Mar 7, 2019, 7:55:28 AM3/7/19
to Marcin Maciaszczyk, kubernetes-sig-ui
Hello, thanks for your response Mark. Ii worked in this directory :/usr/local/go/src/github.com/kubernetes/dashboard$
and this is my error " rm: cannot remove 'node_modules': No such file or directory "

Marcin Maciaszczyk

unread,
Mar 7, 2019, 7:57:20 AM3/7/19
to Mutesasira Timothy, kubernetes-sig-ui
As it was already explained you need to run ’npm ci` to install dependencies.

Regards,
Marcin

Wiadomość napisana przez Mutesasira Timothy <mutes...@gmail.com> w dniu 07.03.2019, o godz. 13:55:

Mutesasira Timothy

unread,
Mar 7, 2019, 8:04:03 AM3/7/19
to Marcin Maciaszczyk, kubernetes-sig-ui
Hello Marcin... here is what happens when I run  npm ci

Marcin Maciaszczyk

unread,
Mar 7, 2019, 8:08:08 AM3/7/19
to Mutesasira Timothy, kubernetes-sig-ui
Your npm has too low version. Use npm i.

Wiadomość napisana przez Mutesasira Timothy <mutes...@gmail.com> w dniu 07.03.2019, o godz. 14:03:

<IMG_1139.jpg>

Elijah Oyekunle

unread,
Mar 7, 2019, 8:11:03 AM3/7/19
to kubernet...@googlegroups.com

Hi,

You are using an older version of npm. The version of npm you should use, as stated on the Getting started guide is NPM 6+. From the screenshot you shared, you are using version 3.5.2.

Please upgrade your npm version (npm i -g npm) and try again.


For more options, visit https://groups.google.com/d/optout.
--
Elijah Oyekunle
Software Engineer
eloye...@gmail.com, +2348155997362

Mutesasira Timothy

unread,
Mar 7, 2019, 10:53:37 AM3/7/19
to Elijah Oyekunle, kubernetes-sig-ui
Hello, I updated to nodejs 10.5 and npm 6.4.1 using nvm. I set user to 0 and unsafe perm to true..... the installation went on well until I got this error. Please advise

kube-erro2.png

mutes...@gmail.com

unread,
Mar 9, 2019, 10:08:58 AM3/9/19
to kubernetes-sig-ui

mutes...@gmail.com

unread,
Mar 9, 2019, 10:11:35 AM3/9/19
to kubernetes-sig-ui

kube-erro2.png

Hi people, Ive tried to debug all the possible sources of this error in the screen shot below but in vain. Kindly assist if you have any suggestions. 


On Monday, March 4, 2019 at 9:21:03 PM UTC+3, mutes...@gmail.com wrote:

Jeffrey Sica

unread,
Mar 9, 2019, 4:42:25 PM3/9/19
to mutes...@gmail.com, kubernetes-sig-ui
Hello,

Can you provide the output of both `git status` and `git remote -v`? The error makes me think there is something wrong with the repo/folder.

Alternatively, now that you have `npm` updated, and assuming you have no changes staged: I would delete the folder, re-clone it, and try running `npm ci` again.

Let me know which path you take and what happens.

Thanks!

-Jeff

--
You received this message because you are subscribed to the Google Groups "kubernetes-sig-ui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.

mutes...@gmail.com

unread,
Mar 9, 2019, 11:59:09 PM3/9/19
to kubernetes-sig-ui
Thanks for your response Jeff. Ive started with this path below, and my output
$ git status
fatal: Not a git repository (or any of the parent directories): .git
git remote -v
fatal: Not a git repository (or any of the parent directories): .git

Mutesasira Timothy

unread,
Mar 10, 2019, 1:11:35 AM3/10/19
to kubernetes-sig-ui
Hello Jeff, the installation has successfully with some errors the system has overlooked. I was able to see the dashboard after starting minikibe them running non start. My question here; How can I make developer changes to this local copy of my dashboard? Where’s the code?

You received this message because you are subscribed to a topic in the Google Groups "kubernetes-sig-ui" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kubernetes-sig-ui/VS0Q7Ozws9o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kubernetes-sig...@googlegroups.com.

To post to this group, send email to kubernet...@googlegroups.com.

Jeffrey Sica

unread,
Mar 10, 2019, 11:56:25 AM3/10/19
to Mutesasira Timothy, kubernetes-sig-ui
It sounds like you downloaded a tarball of the source code, rather than cloning it from GitHub using git. 

Here is GitHub's guide on how to fork/clone a repo, with some good examples: https://help.github.com/en/articles/fork-a-repo

If you need additional guidance on how to work with git, see https://help.github.com/en/articles/set-up-git 

Once you've got the repository cloned and set up, you should be able to run the `npm` commands without error. From there, the majority of the code lives in `src/app/`

Hope this helps :)

-Jeff

Mutesasira Timothy

unread,
Mar 10, 2019, 4:43:30 PM3/10/19
to Jeffrey Sica, kubernetes-sig-ui
Hello Jeff, thanks for your assistance. I cloned from github into the Kubernetes directory which created a dashboard sub directory. The dashboard is running after minikube start. Now to make sense of the code :) But do I specifically have to make changes in go or do some other languages work too?

Jeffrey Sica

unread,
Mar 11, 2019, 9:02:34 AM3/11/19
to Mutesasira Timothy, kubernetes-sig-ui
The programming languages Dashboard uses are locked in already.

It uses golang for the backend component (src/app/backend/*), and typescript/Angular for the front component (src/app/frontend/*). 

Glad to hear you got things working! :)

Mutesasira Timothy

unread,
Mar 11, 2019, 12:47:08 PM3/11/19
to Jeffrey Sica, kubernetes-sig-ui
Thanks a lot. Is there any documentation you could point me towards. Cause go is entirely new to me unlike angular is
Regards Timothy 

Mutesasira Timothy

unread,
Sep 5, 2019, 5:09:16 AM9/5/19
to Jeffrey Sica, kubernetes-sig-ui
Thanks a lot guys. My project was cleared for graduation.
Reply all
Reply to author
Forward
0 new messages