Git Product home page Git Product logo

jaeger1.16-python-flask-envoy-k8s's Introduction

jaeger1.16-python-flask-envoy-k8s

This repository contains the files to install Jaeger 1.16 in to a K8s(tested in a 1.17.5 k8s) cluster, it also includes a Flask application that spans information to Jaeger, Jaeger is exposed through an ingress nginx or envoy using gloo

How to use this repository

  1. Clone the repository
git clone https://github.com/sergioarmgpl/jaeger1.16-python-flask-envoy-k8s.git
cd jaeger1.16-python-flask-envoy-k8s
  1. Build your image choose between index.py or index_base.py and rename it as index.py the image is supposed that use the jaeger installation in the observability namespace. index.py file generates span and metrics and index_basic.py just span
cd python3-flask-traced/
mv index_base.py index.py #(If applies)
  1. Edit the build.sh file with your username, please execute docker login and enter your credentials to push the image in a public repository the run the build.sh
/bin/bash build.sh or ./build
  1. Push your image to docker hub
docker push user/image
  1. Install your ingress controller, nginx or gloo(envoy)
  2. Install jaeger operator
/bin/bash jaeger_install.sh
  1. Install jaeger simplest installation
kubectl create -f simplest.yaml
  1. Deploy the flask application, will be deployed in the default namespace
kubectl create -f jaeger-app.yaml
  1. Expose your app with NodePort service type or as you want
kubectl expose deployment/jaeger-app --port=5000 --target-port=5000 --type=NodePort -n observability
  1. Create the ingress rule to expose Jaeger UI
kubectl create -f ingress.yaml

Note: Uncomment your desired ingress 8. Enter to Jaeger Alt text 9. Access your app to generate some span in Jaeger 10. Choose in the Service dropdown my-traced-service o my-hello-service depending in the case Alt text

Enjoy it!

Coming up

The next release will include the metrics in Prometheus

Ingress Notes

install nginx-ingress with helm for quickstart install gloo ingress with this link: https://docs.solo.io/gloo/1.1.0/installation/ingress

References

  1. https://opentelemetry-python.readthedocs.io/en/stable/getting-started.html
  2. https://www.jaegertracing.io/docs/1.16/operator/
  3. https://docs.solo.io/gloo/1.1.0/installation/ingress

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.