Skip to content

Kubernetes plugin - best practices for working with multiple clusters #1264

Answered by e-gineer
mynameiswhm asked this question in FAQ
Discussion options

You must be logged in to vote

The recommended best practice is to:

  • Create a connection per Kubernetes cluster.
  • Setup an aggregator, so you can query across all those connections at the same time.

Aggregator docs - https://steampipe.io/docs/using-steampipe/managing-connections#using-aggregators

connection "k8s_all" {
  type        = "aggregator"
  plugin      = "kubernetes"
  # Named connections
  connections = ["k8s_conn_a", "k8s_conn_b"]
  # Or use wildcards
  # connections = ["k8s_conn_*"]
}

Each table in the kubernetes plugin then has a context_name column so you can work out which cluster / connection the results are coming from.

Does that help?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mynameiswhm
Comment options

Answer selected by mynameiswhm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
2 participants