Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions plugins/Kubernetes/v1/configValidation.json
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."
Comment thread
adamkinniburgh marked this conversation as resolved.
}
]
}
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"
}
}
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"
}
}
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"
}
Comment thread
adamkinniburgh marked this conversation as resolved.
],
"labels": {
"forward": "routes to",
"reverse": "exposed via"
}
}
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"
]
Comment thread
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 plugins/Kubernetes/v1/correlationRules/relate-node-to-pod.json
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"
}
}
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 plugins/Kubernetes/v1/correlationRules/relate-service-to-pod.json
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"
}
],
Comment thread
coderabbitai[bot] marked this conversation as resolved.
"labels": {
"forward": "routes to",
"reverse": "exposed by"
}
}
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"
}
}
86 changes: 86 additions & 0 deletions plugins/Kubernetes/v1/custom_types.json
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"
}
]
81 changes: 81 additions & 0 deletions plugins/Kubernetes/v1/dataStreams/daemonsets.json
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"
],
Comment thread
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
}
Loading
Loading