This repo contains an azure web application which hosts the azPipelines kubernetes UI to demonstratre that the UI is hostable outside of azure pipelines product.
Перейти к файлу
Martin Mrazik c1ada8f8fc
Merge pull request #62 from microsoft/users/GitHubPolicyService/1ea2eff5-2f84-4b64-8035-4f92fac0a94d
Adding Microsoft SECURITY.MD
2022-10-10 06:23:52 +02:00
Azure removing app-insights component from the default website (#22) 2019-02-12 20:05:28 +05:30
docs including images in the repo (#49) 2019-07-19 16:37:46 +05:30
src Added sample image provenance to page data 2019-11-28 16:45:36 +05:30
.gitignore k8s ui summary webapp example (#1) 2018-11-29 18:40:54 +05:30
.npmignore k8s ui summary webapp example (#1) 2018-11-29 18:40:54 +05:30
.npmrc Added Node and Npm version check in package.json. 2018-12-05 12:27:16 +05:30
LICENSE.txt update license (#4) 2018-11-29 20:17:57 +05:30
README.md including images in the repo (#49) 2019-07-19 16:37:46 +05:30
SECURITY.md Microsoft mandatory file 2022-06-27 09:44:09 +00:00
azure-pipelines.yml optimize the publish package by deploying only dependencies (#21) 2019-01-29 11:08:41 +05:30
package-lock.json npm audit fix 2022-05-12 17:32:27 +05:30
package.json npm audit fix 2022-05-12 17:32:27 +05:30
tsconfig.json k8s ui summary webapp example (#1) 2018-11-29 18:40:54 +05:30
webpack.config.js update package of devops-ui (#25) 2019-03-20 14:24:43 +05:30

README.md

Kubernetes summary UI Web App

Prerequisites: Node and Npm

Windows and Mac OSX: Download and install node from nodejs.org

Linux: Install using package manager

From a terminal ensure at least node 8.9 and npm 5.5.1:

$ node -v && npm -v
v8.9.0
5.5.1

To install npm separately:

[sudo] npm install npm@5 -g
npm -v
5.6.0

Note: On windows if it's still returning npm 2.x run where npm. Notice hits in program files. Rename those two npm files and the 5.6.0 in AppData will win.

Build

npm install
npm run build

dist folder contains a node.js file [server.js], which acts as server later.

Run

  1. Make sure you have kubeconfig file. How to get kubeconfig file

  2. run local node.js server

    npm run start

  3. open browser, and localhost:8095, provide config file, and can see default namespace UI. Provide namespace as query parameter to get other namespace details.

Cluster workloads page UI

  1. Azure template to create a webapp in azure Azure\windows-webapp-template.json.

How to test changes made in 'azpipelines-kubernetesUI'

  1. Build azpipelines-kubernetesUI repo, afetr making changes in the repo.

  2. Run following command, after replacing <src-location-of-zpipelines-kubernetesUI> and <version> with right values.

    npm install <src-location-of-zpipelines-kubernetesUI>\_bin\webAppPackage\azurepipelines-webapp-kube-summary-<version>.tgz

  3. After running the following command, navigate to localhost:8095 using browser to check the changes made.

    npm run start

Dependencies

This repository depends on the following package:

Some external dependencies:

  • React - Is used to render the UI.
  • TypeScript - Example is written in TypeScript and complied to JavaScript
  • SASS - Example is styled using SASS (which is compiled to CSS and delivered in webpack js bundles).
  • webpack - Is used to gather dependencies into a single javascript bundle for each sample.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.