http-add-on icon indicating copy to clipboard operation
http-add-on copied to clipboard

Add ability to debug outside cluster (Proposal)

Open arschles opened this issue 4 years ago • 2 comments

The ability to run one or more components on your local machine, outside a cluster, would ease debuggability for some folks.

Use-Case

A developer fixing a bug or building a feature might have an easier time making progress if they can simply go run ./<component> on their local machine and have that component hook directly up to the rest of the system running in a cluster. While there will be limitations to running the system with this arrangement, this feature has good potential to help developers. We will document those limitations well.

Specification

Due to the way the system is architected, some functionality won't work depending on how exactly you set things up, and some things will need to be run together.

Components will add a new configuration parameter to indicate that they should run outside the cluster. When set, the component will fetch a *rest.Config from a local Kubernetes config file rather than use the in-cluster config. For example:

if shouldRunOutsideCluster {
    config, err := clientcmd.BuildConfigFromFlags("", "~/.kube/config")
}

Also, since there is intra-cluster network communication from scaler to interceptor and interceptor to application Service, some of this communication won't work or will be limited. For example, since the scaler uses the interceptor's Service DNS name, the scaler would not be able to communicate with the interceptor if the former was running outside the cluster and the latter inside. We will document this and other similar scenarios, suggest that they be run together (both inside or both outside the cluster), and explain how to do that

arschles avatar Aug 27 '21 17:08 arschles

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 26 '21 18:10 stale[bot]

keeping this open with the feature tag

arschles avatar Oct 27 '21 21:10 arschles

This is already supported

JorTurFer avatar Apr 04 '24 21:04 JorTurFer