-
Notifications
You must be signed in to change notification settings - Fork 6
Kubernetes #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Kubernetes #107
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "steps": [ | ||
| { | ||
| "displayName": "Authenticate", | ||
| "dataStream": { | ||
| "name": "namespaces" | ||
| }, | ||
| "required": true, | ||
| "error": "Could not connect to the Kubernetes API server. Check the API Server URL is reachable, the Bearer Token is valid, and enable 'Ignore certificate errors' if the cluster uses a self-signed certificate.", | ||
| "success": "Connected to the Kubernetes API server successfully." | ||
| } | ||
| ] | ||
| } | ||
20 changes: 20 additions & 0 deletions
20
plugins/Kubernetes/v1/correlationRules/relate-daemonset-to-pod.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "displayName": "DaemonSet owns Pod", | ||
| "source": { | ||
| "types": "Pod" | ||
| }, | ||
| "target": { | ||
| "types": "DaemonSet" | ||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "ownerUid", | ||
| "operator": "equals", | ||
| "targetProperty": "uid" | ||
| } | ||
| ], | ||
| "labels": { | ||
| "forward": "owned by", | ||
| "reverse": "runs" | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
plugins/Kubernetes/v1/correlationRules/relate-deployment-to-replicaset.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "displayName": "Deployment owns ReplicaSet", | ||
| "source": { | ||
| "types": "ReplicaSet" | ||
| }, | ||
| "target": { | ||
| "types": "Deployment" | ||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "ownerUid", | ||
| "operator": "equals", | ||
| "targetProperty": "uid" | ||
| } | ||
| ], | ||
| "labels": { | ||
| "forward": "owned by", | ||
| "reverse": "manages" | ||
| } | ||
| } |
25 changes: 25 additions & 0 deletions
25
plugins/Kubernetes/v1/correlationRules/relate-ingress-to-service.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "displayName": "Ingress routes to Service", | ||
| "source": { | ||
| "types": "Ingress" | ||
| }, | ||
| "target": { | ||
| "types": "Service" | ||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "primaryBackendServiceName", | ||
| "operator": "equals", | ||
| "targetProperty": "name" | ||
| }, | ||
| { | ||
| "sourceProperty": "namespace", | ||
| "operator": "equals", | ||
| "targetProperty": "namespace" | ||
| } | ||
|
adamkinniburgh marked this conversation as resolved.
|
||
| ], | ||
| "labels": { | ||
| "forward": "routes to", | ||
| "reverse": "exposed via" | ||
| } | ||
| } | ||
30 changes: 30 additions & 0 deletions
30
plugins/Kubernetes/v1/correlationRules/relate-namespace-to-objects.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { | ||
| "displayName": "Namespace contains Object", | ||
| "source": { | ||
| "types": "Namespace" | ||
| }, | ||
| "target": { | ||
| "types": [ | ||
| "Pod", | ||
| "Deployment", | ||
| "ReplicaSet", | ||
| "DaemonSet", | ||
| "StatefulSet", | ||
| "Service", | ||
| "Ingress", | ||
| "Resource Quota", | ||
| "Limit Range" | ||
| ] | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "name", | ||
| "operator": "equals", | ||
| "targetProperty": "namespace" | ||
| } | ||
| ], | ||
| "labels": { | ||
| "forward": "contains", | ||
| "reverse": "belongs to" | ||
| } | ||
| } | ||
20 changes: 20 additions & 0 deletions
20
plugins/Kubernetes/v1/correlationRules/relate-node-to-pod.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "displayName": "Node runs Pod", | ||
| "source": { | ||
| "types": "Pod" | ||
| }, | ||
| "target": { | ||
| "types": "Node" | ||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "nodeName", | ||
| "operator": "equals", | ||
| "targetProperty": "name" | ||
| } | ||
| ], | ||
| "labels": { | ||
| "forward": "scheduled on", | ||
| "reverse": "hosts" | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
plugins/Kubernetes/v1/correlationRules/relate-replicaset-to-pod.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "displayName": "ReplicaSet owns Pod", | ||
| "source": { | ||
| "types": "Pod" | ||
| }, | ||
| "target": { | ||
| "types": "ReplicaSet" | ||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "ownerUid", | ||
| "operator": "equals", | ||
| "targetProperty": "uid" | ||
| } | ||
| ], | ||
| "labels": { | ||
| "forward": "owned by", | ||
| "reverse": "runs" | ||
| } | ||
| } |
25 changes: 25 additions & 0 deletions
25
plugins/Kubernetes/v1/correlationRules/relate-service-to-pod.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "displayName": "Service routes to Pod", | ||
| "source": { | ||
| "types": "Service" | ||
| }, | ||
| "target": { | ||
| "types": "Pod" | ||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "selectorAppLabel", | ||
| "operator": "equals", | ||
| "targetProperty": "appLabel" | ||
| }, | ||
| { | ||
| "sourceProperty": "namespace", | ||
| "operator": "equals", | ||
| "targetProperty": "namespace" | ||
| } | ||
| ], | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| "labels": { | ||
| "forward": "routes to", | ||
| "reverse": "exposed by" | ||
| } | ||
| } | ||
20 changes: 20 additions & 0 deletions
20
plugins/Kubernetes/v1/correlationRules/relate-statefulset-to-pod.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "displayName": "StatefulSet owns Pod", | ||
| "source": { | ||
| "types": "Pod" | ||
| }, | ||
| "target": { | ||
| "types": "StatefulSet" | ||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "ownerUid", | ||
| "operator": "equals", | ||
| "targetProperty": "uid" | ||
| } | ||
| ], | ||
| "labels": { | ||
| "forward": "owned by", | ||
| "reverse": "runs" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| [ | ||
| { | ||
| "name": "Namespace", | ||
| "sourceType": "Namespace", | ||
| "icon": "folder", | ||
| "singular": "Namespace", | ||
| "plural": "Namespaces" | ||
| }, | ||
| { | ||
| "name": "Node", | ||
| "sourceType": "Node", | ||
| "icon": "server", | ||
| "singular": "Node", | ||
| "plural": "Nodes" | ||
| }, | ||
| { | ||
| "name": "Deployment", | ||
| "sourceType": "Deployment", | ||
| "icon": "rocket", | ||
| "singular": "Deployment", | ||
| "plural": "Deployments" | ||
| }, | ||
| { | ||
| "name": "ReplicaSet", | ||
| "sourceType": "ReplicaSet", | ||
| "icon": "clone", | ||
| "singular": "ReplicaSet", | ||
| "plural": "ReplicaSets" | ||
| }, | ||
| { | ||
| "name": "DaemonSet", | ||
| "sourceType": "DaemonSet", | ||
| "icon": "layer-group", | ||
| "singular": "DaemonSet", | ||
| "plural": "DaemonSets" | ||
| }, | ||
| { | ||
| "name": "StatefulSet", | ||
| "sourceType": "StatefulSet", | ||
| "icon": "database", | ||
| "singular": "StatefulSet", | ||
| "plural": "StatefulSets" | ||
| }, | ||
| { | ||
| "name": "Pod", | ||
| "sourceType": "Pod", | ||
| "icon": "cube", | ||
| "singular": "Pod", | ||
| "plural": "Pods" | ||
| }, | ||
| { | ||
| "name": "Service", | ||
| "sourceType": "Service", | ||
| "icon": "network-wired", | ||
| "singular": "Service", | ||
| "plural": "Services" | ||
| }, | ||
| { | ||
| "name": "Ingress", | ||
| "sourceType": "Ingress", | ||
| "icon": "route", | ||
| "singular": "Ingress", | ||
| "plural": "Ingresses" | ||
| }, | ||
| { | ||
| "name": "Persistent Volume", | ||
| "sourceType": "Persistent Volume", | ||
| "icon": "database", | ||
| "singular": "Persistent Volume", | ||
| "plural": "Persistent Volumes" | ||
| }, | ||
| { | ||
| "name": "Resource Quota", | ||
| "sourceType": "Resource Quota", | ||
| "icon": "gauge", | ||
| "singular": "Resource Quota", | ||
| "plural": "Resource Quotas" | ||
| }, | ||
| { | ||
| "name": "Limit Range", | ||
| "sourceType": "Limit Range", | ||
| "icon": "sliders", | ||
| "singular": "Limit Range", | ||
| "plural": "Limit Ranges" | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| { | ||
| "name": "daemonsets", | ||
| "displayName": "DaemonSets", | ||
| "description": "Kubernetes daemonsets, one row per daemonset", | ||
| "tags": [ | ||
| "Resources" | ||
| ], | ||
|
adamkinniburgh marked this conversation as resolved.
|
||
| "baseDataSourceName": "httpRequestUnscoped", | ||
| "config": { | ||
| "httpMethod": "get", | ||
| "endpointPath": "/apis/apps/v1/daemonsets", | ||
| "postRequestScript": "daemonsets.js", | ||
| "paging": { | ||
| "mode": "token", | ||
| "pageSize": { | ||
| "realm": "queryArg", | ||
| "path": "limit", | ||
| "value": "250" | ||
| }, | ||
| "in": { | ||
| "realm": "payload", | ||
| "path": "metadata.continue" | ||
| }, | ||
| "out": { | ||
| "realm": "queryArg", | ||
| "path": "continue" | ||
| } | ||
| } | ||
| }, | ||
| "matches": "none", | ||
| "metadata": [ | ||
| { | ||
| "name": "uid", | ||
| "displayName": "UID", | ||
| "shape": "string", | ||
| "role": "id" | ||
| }, | ||
| { | ||
| "name": "name", | ||
| "displayName": "Name", | ||
| "shape": "string", | ||
| "role": "label" | ||
| }, | ||
| { | ||
| "name": "namespace", | ||
| "displayName": "Namespace", | ||
| "shape": "string" | ||
| }, | ||
| { | ||
| "name": "desiredNumberScheduled", | ||
| "displayName": "Desired Number Scheduled", | ||
| "shape": "number" | ||
| }, | ||
| { | ||
| "name": "numberReady", | ||
| "displayName": "Number Ready", | ||
| "shape": "number" | ||
| }, | ||
| { | ||
| "name": "daemonSetHealth", | ||
| "displayName": "Health", | ||
| "shape": [ | ||
| "state", | ||
| { | ||
| "map": { | ||
| "success": [ | ||
| "success" | ||
| ], | ||
| "error": [ | ||
| "error" | ||
| ], | ||
| "unknown": [ | ||
| "unknown" | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "timeframes": false | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.