Skip to content
Merged
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
15 changes: 15 additions & 0 deletions changelog.d/0-release-notes/nginz-ingress
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
The `nginz{-tcp,-http}` services have been unified into a `nginz` service, and
moved into the nginz chart.

The nginz-ingress-services chart simply targets the `nginz` service, so there's
no need to set matching `service.nginz.external{Http,Tcp}Port` inside the
`nginx-ingress-services` chart anymore.

The `config.http.httpPort` and `config.ws.wsPort` values in the `nginz` chart
still configure the ports the `nginz` service is listening on.

The `nginz` chart also gained support for `metrics.serviceMonitor.enabled`,
creating a `ServiceMonitor` resource to scrape metrics, like for other wire
services.

(#2476)
8 changes: 4 additions & 4 deletions charts/nginx-ingress-services/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ spec:
paths:
- path: /
backend:
serviceName: nginz-http
servicePort: {{ .Values.service.nginz.externalHttpPort }}
serviceName: nginz
servicePort: http
{{- if .Values.websockets.enabled }}
- host: {{ .Values.config.dns.ssl }}
http:
paths:
- path: /
backend:
serviceName: nginz-tcp
servicePort: {{ .Values.service.nginz.externalTcpPort }}
serviceName: nginz
servicePort: ws
{{- end }}
{{- if .Values.webapp.enabled }}
- host: {{ .Values.config.dns.webapp }}
Expand Down
25 changes: 0 additions & 25 deletions charts/nginx-ingress-services/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,4 @@
# FUTUREWORK: move services into the respective charts
apiVersion: v1
kind: Service
metadata:
name: nginz-http
spec:
type: ClusterIP
ports:
- port: {{ .Values.service.nginz.externalHttpPort }}
targetPort: 8080
selector:
app: nginz
{{- if .Values.websockets.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: nginz-tcp
spec:
type: ClusterIP
ports:
- port: {{ .Values.service.nginz.externalTcpPort }}
targetPort: 8081
selector:
app: nginz
{{- end }}
{{- if .Values.webapp.enabled }}
---
apiVersion: v1
Expand Down
3 changes: 0 additions & 3 deletions charts/nginx-ingress-services/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ certManager:
customSolvers:

service:
nginz:
externalHttpPort: 8080
externalTcpPort: 8081
webapp:
externalPort: 8080
s3:
Expand Down
15 changes: 15 additions & 0 deletions charts/nginz/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: nginz
spec:
type: ClusterIP
ports:
- name: http
port: {{ .Values.config.http.httpPort }}
targetPort: 8080
- name: ws
port: {{ .Values.config.ws.wsPort }}
targetPort: 8081
selector:
app: nginz
19 changes: 19 additions & 0 deletions charts/nginz/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: nginz
labels:
app: nginz
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
endpoints:
- port: http
path: /vts/status/format/prometheus
selector:
matchLabels:
app: nginz
release: {{ .Release.Name }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/nginz/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ resources:
limits:
memory: "1024Mi"
cpu: "2"
metrics:
serviceMonitor:
enabled: false
images:
nginzDisco:
repository: quay.io/wire/nginz_disco
Expand Down
2 changes: 1 addition & 1 deletion services/nginz/third_party/nginx-module-vts