Skip to content

Commit

Permalink
fix(helm): refactor monitoring service (#2704)
Browse files Browse the repository at this point in the history
fix: refactor monitoring service

Signed-off-by: nipsufn <nipsufn+gh@pm.me>
  • Loading branch information
nipsufn authored Mar 2, 2024
1 parent 2a63f91 commit 74f86f9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
7 changes: 7 additions & 0 deletions charts/gateway-helm/templates/envoy-gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ spec:
initialDelaySeconds: 15
periodSeconds: 20
name: envoy-gateway
ports:
{{- range .Values.deployment.ports }}
- containerPort: {{ .port }}
name: {{ .name }}
{{- end}}
- containerPort: 19001
name: http-metrics
readinessProbe:
httpGet:
path: /readyz
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '19001'
name: envoy-gateway-metrics-service
namespace: '{{ .Release.Namespace }}'
labels:
Expand All @@ -11,4 +14,7 @@ spec:
control-plane: envoy-gateway
{{- include "eg.selectorLabels" . | nindent 4 }}
ports:
{{- .Values.envoyGatewayMetricsService.ports | toYaml | nindent 2 -}}
- name: http
port: {{ .Values.envoyGatewayMetricsService.port }}
protocol: TCP
targetPort: http-metrics
6 changes: 1 addition & 5 deletions charts/gateway-helm/values.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ config:
default: info

envoyGatewayMetricsService:
ports:
- name: http
port: 19001
protocol: TCP
targetPort: 19001
port: 19001

createNamespace: false

Expand Down
5 changes: 1 addition & 4 deletions site/content/en/latest/install/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ The Helm chart for Envoy Gateway
| deployment.ports[1].port | int | `18001` | |
| deployment.ports[1].targetPort | int | `18001` | |
| deployment.replicas | int | `1` | |
| envoyGatewayMetricsService.ports[0].name | string | `"http"` | |
| envoyGatewayMetricsService.ports[0].port | int | `19001` | |
| envoyGatewayMetricsService.ports[0].protocol | string | `"TCP"` | |
| envoyGatewayMetricsService.ports[0].targetPort | int | `19001` | |
| envoyGatewayMetricsService.port | int | `19001` | |
| kubernetesClusterDomain | string | `"cluster.local"` | |

0 comments on commit 74f86f9

Please sign in to comment.