Skip to content
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

feat: add k8s deployment yaml #38

Merged
merged 1 commit into from
Mar 20, 2024
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
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"
Loading