Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
chore: add cert-spammer 0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
foo0x29a committed May 31, 2023
1 parent 1622ad8 commit ea44aef
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/cert-spammer/.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/
24 changes: 24 additions & 0 deletions charts/cert-spammer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: cert-spammer
description: A Helm chart for cert-spammer

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.8

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "main"
56 changes: 56 additions & 0 deletions charts/cert-spammer/templates/00-cert-spammer-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
apiVersion: v1
kind: Pod
metadata:
name: cert-spammer
labels:
app: cert-spammer
spec:
restartPolicy: Never
containers:
- name: spam
image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag }}"
args: ["network", "spam", "--target-nodes-path", "/tmp/shared/peer_nodes.json"]
imagePullPolicy: Always
volumeMounts:
- mountPath: /tmp/shared
name: shared
startupProbe:
exec:
command:
- /bin/cat
- /tmp/shared/peer_ids.json
initialDelaySeconds: 10
env:
- name: RUST_LOG
value: info

- name: TOPOS_NETWORK_SPAMMER_CERT_PER_BATCH
value: "{{ $.Values.env.TOPOS_NETWORK_SPAMMER_CERT_PER_BATCH }}"
- name: TOPOS_NETWORK_SPAMMER_BATCH_INTERVAL
value: "{{ $.Values.env.TOPOS_NETWORK_SPAMMER_BATCH_INTERVAL }}"
{{ if $.Values.env.TOPOS_NETWORK_SPAMMER_NUMBER_OF_BATCHES }}
- name: TOPOS_NETWORK_SPAMMER_NUMBER_OF_BATCHES
value: "{{ $.Values.env.TOPOS_NETWORK_SPAMMER_NUMBER_OF_BATCHES }}"
{{ end }}
- name: TOPOS_NETWORK_SPAMMER_NUMBER_OF_SUBNETS
value: "{{ $.Values.env.TOPOS_NETWORK_SPAMMER_NUMBER_OF_SUBNETS }}"

- name: OTLP_BATCH_SCHEDULED_DELAY
value: "{{ $.Values.env.OTLP_BATCH_SCHEDULED_DELAY }}"
- name: OTLP_BATCH_MAX_CONCURRENT_EXPORTS
value: "{{ $.Values.env.OTLP_BATCH_MAX_CONCURRENT_EXPORTS }}"
- name: OTLP_BATCH_MAX_EXPORTER_BATCH_SIZE
value: "{{ $.Values.env.OTLP_BATCH_MAX_EXPORTER_BATCH_SIZE }}"
- name: OTLP_BATCH_EXPORT_TIMEOUT
value: "{{ $.Values.env.OTLP_BATCH_EXPORT_TIMEOUT }}"
- name: OTLP_BATCH_MAX_QUEUE_SIZE
value: "{{ $.Values.env.OTLP_BATCH_MAX_QUEUE_SIZE }}"
- name: OTEL_EXPORTER_OTLP_COMPRESSION
value: "{{ $.Values.env.OTEL_EXPORTER_OTLP_COMPRESSION }}"
- name: OTEL_EXPORTER_OTLP_TIMEOUT
value: "{{ $.Values.env.OTEL_EXPORTER_OTLP_TIMEOUT }}"

volumes:
- name: shared
persistentVolumeClaim:
claimName: shared
19 changes: 19 additions & 0 deletions charts/cert-spammer/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Default values for tce-all-in-one.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
image:
repository: ghcr.io/topos-network/topos
tag: main-network

env:
TOPOS_NETWORK_SPAMMER_CERT_PER_BATCH: "1"
TOPOS_NETWORK_SPAMMER_BATCH_INTERVAL: "4000"
TOPOS_NETWORK_SPAMMER_NUMBER_OF_SUBNETS: "1"

OTLP_BATCH_SCHEDULED_DELAY: "1500"
OTLP_BATCH_MAX_CONCURRENT_EXPORTS: "1000"
OTLP_BATCH_MAX_EXPORTER_BATCH_SIZE: "10000"
OTLP_BATCH_EXPORT_TIMEOUT: "100000"
OTLP_BATCH_MAX_QUEUE_SIZE: "10000"
OTEL_EXPORTER_OTLP_COMPRESSION: "gzip"
OTEL_EXPORTER_OTLP_TIMEOUT: "60"

0 comments on commit ea44aef

Please sign in to comment.