Code Monkey home page Code Monkey logo

kubernetes-pod-ip-finder's Introduction

kubernetes-pod-ip-finder

Simple Kubernetes Microservice to find all the IP addresses of Pods that have a set of labels. Exposes a simple REST API.

Prerquisties

This Docker image needs to be run in a Kubernetes Cluster. You need to first create a Kubernetes Cluster and set up the kubectl tool. See the guide to learn how to create and configure a cluster.

Download the controller.yaml and service.yaml files to install the service in your cluster.

How to Use

  1. Launch Service
    • kubectl create -f service.yaml
  2. Launch Controller
    • kubectl create -f controller.yaml
  3. To find all Pod IP addresses
    • http://kubernetes-pod-ip-finder/
  4. To find all Pod IP addresses with the label: "env: test"
    • http://kubernetes-pod-ip-finder/?env=test
  5. To find all Pod IP addresses with the labels: "env: test" and "role: database"
    • http://kubernetes-pod-ip-finder/?env=test&role=database
  6. The service will return an Array of IP addresses that match the labels
    • ["10.168.9.14","10.168.3.27"]

Note: This is not an official Google product

kubernetes-pod-ip-finder's People

Contributors

thesandlord avatar

Stargazers

Joana  avatar João Marins avatar Sibelius Seraphini avatar arun9theja avatar Anthony BARRE avatar  avatar sharmistha avatar Junwei Zhao avatar Chad Mayfield avatar Gonzalo avatar Michael Panzer avatar Chavee Issariyapat avatar Valentin P avatar Ganesh Kumar R avatar Bear Su avatar Frank Zheng avatar Andrey Sidorov avatar Anson Hu avatar Eric Mwiti avatar Mohamed Meabed avatar Alexey Mikhaylov avatar romejiang avatar Don Abrams avatar Adrian van Dongen avatar Harmoniq Punk avatar Bill Prin avatar Mauricio avatar

Watchers

James Cloos avatar  avatar  avatar

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.