Skip to content

Commit

Permalink
adding bright-cli helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Denan Musinovic committed Sep 2, 2024
1 parent 2bfd32f commit c107486
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/bright-cli/.helmignore
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/
15 changes: 15 additions & 0 deletions charts/bright-cli/Chart.yaml
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
38 changes: 38 additions & 0 deletions charts/bright-cli/templates/deployment.yaml
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 }}"
4 changes: 4 additions & 0 deletions charts/bright-cli/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
repeaterImageTag: ""
repeaterID: ""
token: ""
cluster: ""

0 comments on commit c107486

Please sign in to comment.