Skip to content

Commit

Permalink
Kubernetes Deployment manifest for Atomic Red tests (#177)
Browse files Browse the repository at this point in the history
* Create k8s-deployment.yaml

* Update k8s-deployment.yaml

Renamed the container image from issif/atomic-red:latest 

to redcanary/invoke-atomicredteam

As per the request of Hare Sudhan

* fixing pr checks

---------

Co-authored-by: Hare Sudhan <[email protected]>
  • Loading branch information
nigel-falco and cyberbuff authored Dec 24, 2023
1 parent 4e30b71 commit 70f8d47
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check-installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
shell: pwsh
run: |
IEX (IWR 'https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.ref }}/install-atomicredteam.ps1' -UseBasicParsing);
Install-AtomicRedTeam -RepoOwner "${{ github.event.pull_request.head.repo.owner.login }}" -Branch "${{ github.event.pull_request.head.ref }}" -getAtomics -Force -noPayloads
Install-AtomicRedTeam -RepoOwner "${{ github.event.pull_request.head.repo.owner.login }}" -Branch "${{ github.event.pull_request.head.ref }}" -Force
if($error.contains("Installation of AtomicRedTeam Failed")){
exit 1
}
26 changes: 26 additions & 0 deletions kubernetes/k8s-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: atomicred
namespace: atomic-red
labels:
app: atomicred
spec:
replicas: 1
selector:
matchLabels:
app: atomicred
template:
metadata:
labels:
app: atomicred
spec:
containers:
- name: atomicred
image: redcanary/invoke-atomicredteam
imagePullPolicy: "IfNotPresent"
command: ["sleep", "3560d"]
securityContext:
privileged: true
nodeSelector:
kubernetes.io/os: linux

0 comments on commit 70f8d47

Please sign in to comment.