An open API service indexing awesome lists of open source software.

https://github.com/philips/host-info


https://github.com/philips/host-info

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

## Simple Host Info

[![Docker Repository on Quay.io](https://quay.io/repository/philips/host-info/status "Docker Repository on Quay.io")](https://quay.io/repository/philips/host-info)

Host info generates a unique looking page for every instance of the application inoder to make it easy to demo the scaling properties of Kubernetes. The goal is to have something that is small and easy to run while being visually easy to distinguish.

```
kubectl run --image=quay.io/philips/host-info:latest host-info
kubectl expose deployment host-info --session-affinity=None --port 8080
```

```
kubectl proxy
```

Visit http://localhost:8001/api/v1/proxy/namespaces/default/services/host-info/

```
kubectl scale --replicas=5 deployment/host-info
```

This app also exports Prometheus metrics, perfect for consumptin by the [Prometheus Operator](https://coreos.com/blog/the-prometheus-operator.html). Demo below:

[![host-info screenshot](screenshot.png)](http://i.imgur.com/kIJJRpV.gif)