Skip to content

Commit

Permalink
adding dvga, vulhub-appweb and vulhub-tomcat apps
Browse files Browse the repository at this point in the history
  • Loading branch information
Denan Musinovic committed Sep 8, 2023
1 parent ba20bae commit 1822e23
Show file tree
Hide file tree
Showing 9 changed files with 171 additions and 0 deletions.
26 changes: 26 additions & 0 deletions charts/dvga/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v2
name: dvga
description: A Helm chart for Kubernetes

# 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/)
keywords:
- dvga
version: 1.0.0

# 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: "1.0.0"
8 changes: 8 additions & 0 deletions charts/dvga/templates/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
data:
WEB_HOST: "0.0.0.0"
40 changes: 40 additions & 0 deletions charts/dvga/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
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: {{ .Chart.Name }}
image: dolevf/dvga
envFrom:
- configMapRef:
name: {{ .Release.Name }}
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 512Mi
livenessProbe:
httpGet:
path: /
port: 5013
scheme: HTTP
initialDelaySeconds: 120
periodSeconds: 30
29 changes: 29 additions & 0 deletions charts/dvga/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-ssl-protocols: "TLSv1.1 TLSv1.2"
nginx.ingress.kubernetes.io/ssl-redirect: "false"
{{ if eq .Values.ingress.cert "" }}
cert-manager.io/cluster-issuer: letsencrypt-cf-prod
{{ end }}
spec:
tls:
- hosts:
- {{ .Values.ingress.url }}
secretName: {{ if eq .Values.ingress.cert "" }}distributorwildcard{{ else }}{{ .Values.ingress.cert }}{{ end }}
rules:
- host: {{ .Values.ingress.url }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}
port:
number: 5013
11 changes: 11 additions & 0 deletions charts/dvga/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
spec:
ports:
- port: 5013
selector:
app.kubernetes.io/instance: {{ .Release.Name }}
app: {{ .Release.Name }}
10 changes: 10 additions & 0 deletions charts/vulhub-appweb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: vulhub-appweb
description: vulhub-appweb app. https://github.com/vulhub/vulhub/tree/master/appweb/CVE-2018-8715
keywords:
- vulhub-appweb
version: 0.0.1
dependencies:
- name: simple-service
version: 0.0.1
repository: "file://../../simple-service"
18 changes: 18 additions & 0 deletions charts/vulhub-appweb/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
simple-service:
application:
image: brightsec/vulhub-appweb
port: 8080
resources:
requests:
cpu: 125m
memory: 256Mi
limits:
cpu: 250m
memory: 512Mi
livenessProbe:
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: 120
periodSeconds: 30
11 changes: 11 additions & 0 deletions charts/vulhub-tomcat/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v2
name: vulhub-tomcat
description: vulhub-tomcat app. https://github.com/vulhub/vulhub/tree/master/tomcat/CVE-2017-12615
type: application
keywords:
- vulhub-tomcat
version: 0.0.1
dependencies:
- name: simple-service
version: 0.0.1
repository: "file://../../simple-service"
18 changes: 18 additions & 0 deletions charts/vulhub-tomcat/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
simple-service:
application:
image: brightsec/vulhub-tomcat
port: 8080
resources:
requests:
cpu: 250m
memory: 256Mi
limits:
cpu: 500m
memory: 1024Mi
livenessProbe:
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: 120
periodSeconds: 30

0 comments on commit 1822e23

Please sign in to comment.