Skip to content

Commit

Permalink
v0.0.8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-uk committed Feb 26, 2019
1 parent aaab199 commit 98ae63e
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN npm run build
#
FROM node:10-alpine

LABEL version="0.0.7"
LABEL version="0.0.8"
ARG basedir="server"
ENV NODE_ENV production

Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# KubeView
Kubernetes cluster visualiser and visual explorer

Shows what is happening inside a Kubernetes cluster, the objects and how they are interconnected. Data is fetched real-time from the Kubernetes API. The status of some objects (Pods, ReplicaSets, Deployments) are colour coded red/green to represent their status and health
KubeView displays what is happening inside a Kubernetes cluster, it maps out the API objects and how they are interconnected. Data is fetched real-time from the Kubernetes API. The status of some objects (Pods, ReplicaSets, Deployments) is colour coded red/green to represent their status and health

The app auto refreshes and dynamically updates the view as new data comes in or changes

Expand All @@ -16,14 +16,15 @@ Currently displays:

**Note.** This is a work in progress ☢

## Demo & Screenshots
### [Short video demo 🡕 ](https://www.youtube.com/watch?v=ukF6aLIUu58)

![demo](https://user-images.githubusercontent.com/14982936/53411103-87b68a00-39bd-11e9-81b2-df2fb9cd7b28.png)

## Application Components
- **Client SPA** - Vue.js single page app. All visualisation, mapping & logic done here
- **API Server** - Scrapes Kubernetes API and presents it back out as a custom REST API. Also acts as HTTP server to the SPA

### [Short video demo 🡕 ](https://www.youtube.com/watch?v=ukF6aLIUu58)

![demo](https://user-images.githubusercontent.com/14982936/53201465-0311e780-361c-11e9-96ad-f627e903ad1a.png)


# Repo Details
- [server](./server) - Source of the Node.js Express API server
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kubeview",
"version": "0.0.7",
"version": "0.0.8",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
1 change: 1 addition & 0 deletions client/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<b-navbar-nav>
<b-dropdown split :text="autoRefreshText" split-variant="light" variant="info">
<b-dropdown-item @click="autoRefresh=0">Off</b-dropdown-item>
<!-- <b-dropdown-item @click="autoRefresh=2">2 secs</b-dropdown-item> -->
<b-dropdown-item @click="autoRefresh=5">5 secs</b-dropdown-item>
<b-dropdown-item @click="autoRefresh=10">10 secs</b-dropdown-item>
<b-dropdown-item @click="autoRefresh=15">15 secs</b-dropdown-item>
Expand Down
9 changes: 6 additions & 3 deletions client/src/components/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,13 @@ export default {
if(type == "Ingress") icon = 'ing'
if(type == "PersistentVolumeClaim") icon = 'pvc'
// Trim long names for labels, and get pod's hashed generated name suffix
let label = node.metadata.name.substr(0, 24)
if(type == "Pod")
label = node.metadata.labels['pod-template-hash'] || node.metadata.labels['controller-revision-hash'] || node.status.podIP || ""
if(type == "Pod") {
let podName = node.metadata.name.replace(node.metadata.generateName, '')
label = podName || node.status.podIP || ""
}
//console.log(`### Adding: ${type} -> ${node.metadata.name || node.metadata.selfLink}`);
cy.add({ data: { id: `${type}_${node.metadata.name}`, label: label, icon: icon, sourceObj: node,
type: type, parent: groupId, status: status, name: node.metadata.name } })
Expand Down
5 changes: 4 additions & 1 deletion kubernetes/readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# KubeView - Deployment Manifests

These manifests deploy KuebView from public images pushed to DockerHub via the CI builds in Azure Pipelines

We assume RBAC is enabled in the cluster, so a *ServiceAccount* and custom *ClusterRole* is needed:
```
kubectl apply -f service-account.yaml
```
(Only need to do this once!)

To deploy:
To deploy the app:
```
kubectl apply -f deploy.yaml
```
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kubeview-server",
"version": "0.0.7",
"version": "0.0.8",
"description": "API server for KubeView, scrapes/proxies Kubernetes API",
"main": "server.js",
"scripts": {
Expand Down

0 comments on commit 98ae63e

Please sign in to comment.