Coder Social home page Coder Social logo

kube-detective's Introduction

Kubernetes Network Detective

This tool is used to validate the network setup of a Kubernetes cluster. It goes beyond the basic e2e tests and verifies each node of a cluster. This allows to find even the most arcane or temporary network problems.

Test Bed

Before any testing the following test bed is being created:

  • Ephemeral Namespace
  • Two pods per node. One with hostNetwork mode enabled, one without.
  • For each pod a service is created. A unique external IP is assigned to each.

Test Scenarios

To test connectivty the tool will call a kubectl exec wget http://$IP:$PORT. It tests the following scenarios.

  • Connectivity from Pod to Pod
  • Connectivity from Pod to ClusterIP to Pod
  • Connectivity from Pod to ExternalIP to Pod

It tests all possible permutations. This is not feasable for large clusters... Only schedulable nodes are taken into account.

Running

Default load order for .kubeconfig applies. If you have a working kubectl it will just work

kube-detective -externalCIDR 10.44.11.32/27

Additional logging can be enabled by setting --v=2 or --v=3.

Docker image

Docker image with latest binary is available at sapcc/kube-detective.

kube-detective's People

Contributors

bugroger avatar databus23 avatar defo89 avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kube-detective's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
  • golang 1.19
  • alpine 3.16
gomod
go.mod
  • github.com/hashicorp/go-multierror v1.1.1
  • gopkg.in/tomb.v2 v2.0.0-20161208151619-d5d1b5820637@d5d1b5820637
  • k8s.io/api v0.21.11
  • k8s.io/apimachinery v0.21.11
  • k8s.io/client-go v0.21.11
  • k8s.io/klog/v2 v2.9.0
  • go 1.18

  • Check this box to trigger a request for Renovate to run again on this repository

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.