Configure Selector Relations of Kubernetes Resources
Configuration
discovery.informer.k8s block
discovery.informer.k8s blockdiscovery "informer" "k8s" { selector_relations = [ { kind = "NetworkPolicy" to = "Pod" selector_match_labels_field = "spec.podSelector.matchLabels" selector_match_expressions_field = "spec.podSelector.matchExpressions" }, { kind = "Service" to = "Pod" selector_match_labels_field = "spec.selector" }, ] }
Object Types
Selector Relation Object
Common Configurations
NetworkPolicy → Pod
Service → Pod
Workload controllers → Pod
CronJob → Pod
Next Steps
Need Help?
Last updated