Skip to content

Commit

Permalink
add loadbalancer for easier local development
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkeschiren committed Apr 6, 2021
1 parent aa1b67f commit 8cf2411
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/matomo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "3.14.1"
description: A Helm chart Matomo
name: matomo
version: 9.1.0
version: 9.1.1
1 change: 1 addition & 0 deletions charts/matomo/dev_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ matomo:
command: ./console scheduled-tasks:run
dashboard:
enabled: true
loadbalancer: true
replicas: 1
hostname: localhost
tls: false
Expand Down
13 changes: 13 additions & 0 deletions charts/matomo/templates/loadbalancer-matomo-dashboard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{- if .Values.matomo.dashboard.loadbalancer }}
apiVersion: v1
kind: Service
metadata:
name: matomo-dashboard-lb
spec:
selector:
app: matomo-dashboard
ports:
- port: 80
targetPort: 8080
type: LoadBalancer
{{- end -}}
1 change: 1 addition & 0 deletions charts/matomo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ matomo:
dashboard:
enabled: true
replicas: 1
loadbalancer: false
hostname: localhost
tls: false
firstuser:
Expand Down

0 comments on commit 8cf2411

Please sign in to comment.