https://github.com/philips/host-info
https://github.com/philips/host-info
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/philips/host-info
- Owner: philips
- Created: 2017-01-07T02:41:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T22:47:51.000Z (almost 8 years ago)
- Last Synced: 2025-02-01T20:31:37.545Z (over 1 year ago)
- Language: Go
- Size: 603 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Simple Host Info
[](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:
[](http://i.imgur.com/kIJJRpV.gif)