Skip to content

Commit a2625b6

Browse files
authored
Pod and service monitors, remove hard-coded tls secret name rom ingresses (#9)
* pod-and-service-monitors * add podminitor * separate tls secret name and host name * add ingress secret name * add ingress secret name * ingress secret * mas ingress * add ingress secret name * admin secret name * add ingress secretname
1 parent 64cadc1 commit a2625b6

23 files changed

+106
-28
lines changed

charts/jitsi/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: jitsi
3-
version: 0.0.3
3+
version: 0.1.0

charts/jitsi/templates/ingress.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
spec:
1010
ingressClassName: nginx
1111
rules:
12-
- host: {{ .Values.serverName }}
12+
- host: {{ .Values.ingress.serverName }}
1313
http:
1414
paths:
1515
- pathType: ImplementationSpecific
@@ -35,5 +35,7 @@ spec:
3535
path: /colibri-ws
3636
tls:
3737
- hosts:
38-
- {{ .Values.serverName }}
39-
secretName: tls
38+
- {{ .Values.ingress.serverName }}
39+
{{- if .Values.ingress.secretName }}
40+
secretName: {{ .Values.ingress.secretName }}
41+
{{- end }}

charts/jitsi/templates/jvb-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ spec:
5555
- name: TZ
5656
value: {{ .Values.timeZone }}
5757
- name: PUBLIC_URL
58-
value: https://{{ .Values.serverName }}
58+
value: https://{{ .Values.ingress.serverName }}
5959
{{- if .Values.jvb.extraEnvs }}
6060
{{- toYaml .Values.jvb.extraEnvs | nindent 12 }}
6161
{{- end }}

charts/jitsi/templates/web-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
- name: JVB_TCP_HARVESTER_DISABLED
4444
value: "false"
4545
- name: PUBLIC_URL
46-
value: https://{{ .Values.serverName }}
46+
value: https://{{ .Values.ingress.serverName }}
4747
- name: ENABLE_LOBBY
4848
value: "0"
4949
- name: ENABLE_WELCOME_PAGE

charts/jitsi/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
serverName: ''
1+
ingress:
2+
serverName: ''
3+
secretName: ''
4+
25
timeZone: Europe/Amsterdam
36
jicofo:
47
replicas: 1

charts/redis/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: redis
3-
version: 0.0.6
3+
version: 0.1.0

charts/redis/templates/deployment.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ spec:
1414
metadata:
1515
labels:
1616
app: redis
17-
{{- if .Values.exporter.enabled }}
18-
annotations:
19-
prometheus.io/scrape: "true"
20-
prometheus.io/port: "9121"
21-
{{- end }}
2217
spec:
2318
containers:
2419
- name: redis

charts/redis/templates/service.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,10 @@ spec:
1010
- name: redis
1111
port: 6379
1212
targetPort: redis
13+
{{- if .Values.exporter.enabled }}
14+
- name: redis-exporter
15+
port: 9121
16+
targetPort: redis-exporter
17+
{{- ens }}
1318
selector:
1419
app: redis
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{- if .Values.exporter.enabled }}
2+
kind: ServiceMonitor
3+
apiVersion: monitoring.coreos.com/v1
4+
metadata:
5+
name: redis-service
6+
labels:
7+
app: redis
8+
spec:
9+
endpoints:
10+
- interval: 60s
11+
path: /metrics
12+
port: http
13+
jobLabel: redis-exporter
14+
selector:
15+
matchLabels:
16+
app: redis
17+
---
18+
{{- end }}

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: synapse
3-
version: 0.4.5
3+
version: 0.5.0

0 commit comments

Comments
 (0)