Skip to content

Commit

Permalink
exposed metrics port
Browse files Browse the repository at this point in the history
  • Loading branch information
verenion committed Aug 7, 2023
1 parent 2cc8c21 commit acc1f74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/cloudflare-tunnel/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.metrics.enabled }}
ports:
- containerPort: 2000
name: metrics
protocol: TCP
{{- end }}
args:
- tunnel
# Points cloudflared to the config file, which configures what
Expand Down
3 changes: 3 additions & 0 deletions charts/cloudflare-tunnel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,6 @@ tolerations: []

# Default affinity is to spread out over nodes; use this to override.
affinity: {}

metrics:
enabled: true

0 comments on commit acc1f74

Please sign in to comment.