Relationship between a deployment and a secrets
crystralRamirez
✭✭✭✭✭
How do I find the relationship between a deployment and a secret?
0
Answers
-
The relationship between a deployment and a secret is through the namespace. Can you try the following query?
find kube_deployment with displayName~='example' as deployment that contains kube_namespace as namespace that contains kube_secret as secret return deployment.displayName, deployment.strategy.type, deployment.generation, namespace.displayName, namespace.status.phase, namespace.resourceVersion, secret.displayName, secret.encrypted, secret.type
I’d also recommend returning this as a graph so you can view the relationships.find kube_deployment with displayName~='example' as deployment that contains kube_namespace as namespace that contains kube_secret as secret return tree
0
This Month's Leaders
Categories
- 336 All Categories
- Featured Categories
- 7 About the AskJ1 Community
- 11 Product Announcements
- From Mission Control
- 1 Rapid Response
- 3 How J1 Uses J1
- Topics
- 131 Asset Management
- 56 Compliance & Reporting
- 65 Security Operations
- 40 Security Engineering
- 5 Open Source
- 18 News, Careers and More