Skip to main content

Catalog

ConfigDB component lookup enables you to query configs from the database to use as components.

kubernetes-cluster.yml
apiVersion: canaries.flanksource.com/v1
kind: Topology
metadata:
name: kubernetes-cluster
spec:
type: KubernetesCluster
icon: kubernetes
schedule: '@every 10m'
id:
javascript: properties.id
components:
- name: nodes
icon: server
type: KubernetesNode
lookup:
catalog:
- selector:
- types:
- Kubernetes::Node
FieldDescriptionSchemeRequired
displayTemplate to display query results in text (overrides default bar format for UI)Template
selectorQuery that needs to be executed on the serverResource SelectorYes
transformTemplate to transform results toTemplate

Results

The results variable will be a list of [Config][/reference/config-db]