Asuforce / multi-container-pod-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi container pod example

How to start on local

preparation

$ docker run -d -p 5000:5000 --name registry registry:2.6

Build then push to the local registry

$ make docker-push-app-local
$ make docker-push-nginx-local

Deploy to k8s

$ make kubectl-create-example

Links

Prometheus

http://localhost:30000/

Scraping targets

http://localhost:30000/targets

Scraped metrics

Example PromQL

Example nginx metrics

Example Java app metrics

Example Container metrics

 

App

Serve from nginx

http://localhost:31000

Serve from the Java app (through nginx)

http://localhost:31000/hello/world

About

License:Apache License 2.0


Languages

Language:Java 40.6%Language:Makefile 24.4%Language:Dockerfile 23.7%Language:Shell 11.3%