Giter VIP home page Giter VIP logo

Comments (4)

theemadnes avatar theemadnes commented on May 22, 2024

The fields have been updated a bit lately - a sample (current) response:

{"cluster_name":"ph-demo-01","host_header":"hello","node_name":"gke-ph-demo-01-default-pool-2259626e-qqxj.c.alexmattson-scratch.internal","pod_ip":"10.48.2.24","pod_name":"whereami-7566845f96-l5klw","pod_name_emoji":"💔","pod_namespace":"default","pod_service_account":"whereami-ksa","project_id":"alexmattson-scratch","timestamp":"2020-07-14T04:03:49","version":"1.0","zone":"us-central1-f"}

It uses a bunch of data sources in its response, like host headers, K8s downstream API, etc. Per a GOOG coworker's request, I added a feature flag to contact a downstream JSON service to include its response in the reply, which can be demo'ed using Kustomize via the overlay directory in the repo. As the name suggests, it's GKE-centric.

from kubernetes-engine-samples.

theemadnes avatar theemadnes commented on May 22, 2024

I added the emoji bit to hash the pod_name so you have a consistent visual representation of which pod you're talking to.

from kubernetes-engine-samples.

mark-church avatar mark-church commented on May 22, 2024

The code is now pushed to this repo via #132 and #133. Once @theemadnes is able to get the image into the google-samples GCR we can close this issue. Thanks for all the help @askmeegs !

from kubernetes-engine-samples.

theemadnes avatar theemadnes commented on May 22, 2024

Pushed #134 to include header reflection.

from kubernetes-engine-samples.

Related Issues (20)

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.