-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Denan Musinovic
committed
Sep 2, 2024
1 parent
2bfd32f
commit c107486
Showing
4 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v2 | ||
name: repeater | ||
description: | | ||
Repeater allows you to run Brightsec scans without exposing your ports outside. | ||
Also, it can be useful, if you want to run a local scan without deploying. | ||
Usage example from chart root dir: | ||
helm upgrade repeater --install \ | ||
--set repeaterID= \ | ||
--set token= \ | ||
--set cluster=hotel.playground.neuralegion.com . --wait | ||
type: application | ||
version: 0.0.1 | ||
keywords: | ||
- repeater |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Release.Name }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: {{ .Release.Name }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: {{ .Release.Name }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app: {{ .Release.Name }} | ||
spec: | ||
containers: | ||
- name: repeater | ||
image: brightsec/cli{{ if ne .Values.repeaterImageTag "" }}:{{ .Values.repeaterImageTag }}{{ else }}:latest{{ end }} | ||
command: ["bright-cli", "repeater"] | ||
args: | ||
- "--token=$(TOKEN)" | ||
- "--id=$(REPEATER_ID)" | ||
- "--cluster=$(CLUSTER)" | ||
resources: | ||
requests: | ||
cpu: 200m | ||
memory: 100Mi | ||
env: | ||
- name: REPEATER_ID | ||
value: "{{ .Values.repeaterID }}" | ||
- name: TOKEN | ||
value: "{{ .Values.token }}" | ||
- name: CLUSTER | ||
value: "{{ .Values.cluster }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
repeaterImageTag: "" | ||
repeaterID: "" | ||
token: "" | ||
cluster: "" |