Skip to content

Commit

Permalink
feat: add k8s deployment yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
redhatrises committed Mar 20, 2024
1 parent b8bfdb8 commit b7b93e3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,15 @@ $ sudo docker run --rm quay.io/crowdstrike/detection-container
Output will be sent to the console (via ``stdout``) regarding what detections are being generated. An example of running in non-interactive mode, plus output, is shown below:

![non-interactive mode](docs/images/non-interactive.png)

## Kubernetes Interactive Mode

For running the detection container in interactive mode on Kubernetes clusters, please see the [vulnapp project](https://github.com/CrowdStrike/vulnapp)

## Kubernetes Non-interactive Mode

For running the detection container in non-interactive mode which will randomly create detections, run the following command:
```
$ kubectl create -f https://raw.githubusercontent.com/CrowdStrike/detection-container/main/detections.example.com
```
22 changes: 22 additions & 0 deletions detections.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# kubectl apply -f detectioncontainer.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: detections.example.com
spec:
selector:
matchLabels:
run: detections
replicas: 1
template:
metadata:
labels:
run: detections
spec:
containers:
- name: detection-container
image: quay.io/crowdstrike/detection-container
imagePullPolicy: Always
command:
- "/entrypoint.sh"

0 comments on commit b7b93e3

Please sign in to comment.