Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support setting service type #3

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/helm-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ keywords:
- web
home: https://portswigger.net/
sources:
- https://github.com/portswigger/enterprise-helm-charts/
- https://github.com/peter-svensson/enterprise-helm-charts/
maintainers:
- name: Portswigger
email: hello@portswigger.net
icon: https://github.com/PortSwigger/enterprise-helm-charts/blob/33292500f49f9d9ddef2d22d3a53b13f3210674e/enterprise-logo.svg
icon: https://github.com/PortSwigger/enterprise-helm-charts/blob/33292500f49f9d9ddef2d22d3a53b13f3210674e/enterprise-logo.svg
1 change: 1 addition & 0 deletions charts/helm-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ A Helm chart to create the k8s cluster dependencies for BSEE
| services.webServer.httpsPort | string | `"8443"` | |
| services.webServer.installationEnvironment | string | `"KUBERNETES"` | |
| services.webServer.label | string | `"app.portswigger.net/ingress: web-server"` | |
| services.webServer.type | string | `"ClusterIP"` | |
| services.webServer.useDeprecatedHttpConfigFromDatabase | bool | `false` | |
| services.webServer.useHttps | bool | `false` | |
| support.oracle | bool | `false` | |
Expand Down
3 changes: 2 additions & 1 deletion charts/helm-chart/templates/web-server/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ metadata:
spec:
selector:
app.portswigger.net/name: {{ include "kebabcase-release-name" . }}-web-server
type: {{ .Values.services.webServer.type }}
ports:
- name: http
protocol: TCP
port: 8080
- name: https
protocol: TCP
port: 8443
port: 8443
1 change: 1 addition & 0 deletions charts/helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ scanContainerMemory: 8Gi

services:
webServer:
type: 'ClusterIP'
installationEnvironment: KUBERNETES
label: "app.portswigger.net/ingress: web-server"
# If set to true, then none of the configuration below will be used, and we will attempt to read the HTTP(S)
Expand Down