Skip to content

Commit 17aadc9

Browse files
committed
Merge branch 'dev'
2 parents 05349bc + 877c2a4 commit 17aadc9

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

charts/bunkerweb/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.0.2
18+
version: 0.0.3
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{{- if .Values.settings.ui.ingress.enabled -}}
2+
apiVersion: networking.k8s.io/v1
3+
kind: Ingress
4+
metadata:
5+
name: ui-{{ include "bunkerweb.fullname" . }}
6+
namespace: {{ include "bunkerweb.namespace" . }}
7+
labels:
8+
{{- include "bunkerweb.labels" . | nindent 4 }}
9+
annotations:
10+
bunkerweb.io/SERVE_FILES: "no"
11+
bunkerweb.io/USE_UI: "yes"
12+
bunkerweb.io/INTERCEPTED_ERROR_CODES: '400 404 405 413 429 500 501 502 503 504'
13+
bunkerweb.io/MAX_CLIENT_SIZE: '50m'
14+
{{- with .Values.settings.ui.ingress.extraAnnotations }}
15+
{{- toYaml . | nindent 4 }}
16+
{{- end }}
17+
spec:
18+
{{- if .Values.settings.ui.ingress.tlsSecretName }}
19+
tls:
20+
- hosts:
21+
- {{ .Values.settings.ui.ingress.serverName }}
22+
secretName: {{ .Values.settings.ui.ingress.tlsSecretName }}
23+
{{- end }}
24+
rules:
25+
- host: {{ .Values.settings.ui.ingress.serverName }}
26+
http:
27+
paths:
28+
- path: {{ .Values.settings.ui.ingress.serverPath }}
29+
pathType: Prefix
30+
backend:
31+
service:
32+
name: ui-{{ include "bunkerweb.fullname" . }}
33+
port:
34+
number: 7000
35+
{{- end }}

charts/bunkerweb/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ settings:
3434
redisPassword: ""
3535
ui:
3636
wizard: true
37+
ingress:
38+
enabled: false
39+
serverName: ""
40+
serverPath: "/"
41+
extraAnnotations: {}
42+
tlsSecretName: ""
3743
adminUsername: ""
3844
adminPassword: ""
3945
overrideAdminCreds: "no"

0 commit comments

Comments
 (0)