Skip to content

Commit

Permalink
refactor nmap-prober and run it on all clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Sep 17, 2024
1 parent 02aaf91 commit 5cd85d4
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ patches:
- op: "replace"
path: "/metadata/name"
value: "nmap-prober-ch"
- op: "replace"
path: "/spec/schedule"
value: "15 * * * *"
- op: "replace"
path: "/spec/jobTemplate/spec/template/spec/containers/0/env/0/value"
value: "22,53,80,443,2379,2380,6443,8080,8405,9443,9999,10251,10252,15823"
Expand Down
6 changes: 6 additions & 0 deletions clusters/common/nmap-prober/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: "kustomize.config.k8s.io/v1beta1"
kind: "Kustomization"
resources:
- "ch"
- "rs"
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ patches:
- op: "replace"
path: "/metadata/name"
value: "nmap-prober-rs"
- op: "replace"
path: "/spec/schedule"
value: "15 * * * *"
- op: "replace"
path: "/spec/jobTemplate/spec/template/spec/containers/0/env/0/value"
value: "22,53,80,443,2379,2380,6443,8080,8405,9443,9999,10251,10252,15823"
Expand Down
10 changes: 8 additions & 2 deletions clusters/dqs.dd.soeren.cloud/nmap-prober/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@ kind: "Kustomization"
namespace: "nmap-prober"
resources:
- "namespace.yaml"
- "ch"
- "rs"
- "../../common/nmap-prober"
patches:
- target:
kind: "CronJob"
patch: |-
- op: "replace"
path: "/spec/schedule"
value: "30 * * * *"
14 changes: 14 additions & 0 deletions clusters/svc.dd.soeren.cloud/nmap-prober/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: "kustomize.config.k8s.io/v1beta1"
kind: "Kustomization"
namespace: "nmap-prober"
resources:
- "namespace.yaml"
- "../../common/nmap-prober"
patches:
- target:
kind: "CronJob"
patch: |-
- op: "replace"
path: "/spec/schedule"
value: "15 * * * *"
7 changes: 7 additions & 0 deletions clusters/svc.dd.soeren.cloud/nmap-prober/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
kind: "Namespace"
apiVersion: "v1"
metadata:
name: "nmap-prober"
labels:
name: "nmap-prober"
14 changes: 14 additions & 0 deletions clusters/svc.ez.soeren.cloud/nmap-prober/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: "kustomize.config.k8s.io/v1beta1"
kind: "Kustomization"
namespace: "nmap-prober"
resources:
- "namespace.yaml"
- "../../common/nmap-prober"
patches:
- target:
kind: "CronJob"
patch: |-
- op: "replace"
path: "/spec/schedule"
value: "45 * * * *"
7 changes: 7 additions & 0 deletions clusters/svc.ez.soeren.cloud/nmap-prober/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
kind: "Namespace"
apiVersion: "v1"
metadata:
name: "nmap-prober"
labels:
name: "nmap-prober"
14 changes: 14 additions & 0 deletions clusters/svc.pt.soeren.cloud/nmap-prober/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: "kustomize.config.k8s.io/v1beta1"
kind: "Kustomization"
namespace: "nmap-prober"
resources:
- "namespace.yaml"
- "../../common/nmap-prober"
patches:
- target:
kind: "CronJob"
patch: |-
- op: "replace"
path: "/spec/schedule"
value: "0 * * * *"
7 changes: 7 additions & 0 deletions clusters/svc.pt.soeren.cloud/nmap-prober/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
kind: "Namespace"
apiVersion: "v1"
metadata:
name: "nmap-prober"
labels:
name: "nmap-prober"

0 comments on commit 5cd85d4

Please sign in to comment.