Skip to content

Commit

Permalink
fix: Add metric port for daemonset (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Piotr Kruk <[email protected]>
  • Loading branch information
pkruk and pkruk authored Sep 22, 2024
1 parent dbfb48f commit cf03453
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion charts/eks-pod-identity-agent/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ spec:
- {{ .Values.clusterName | quote }}
- "--probe-port"
- {{ .Values.agent.probePort | quote }}
{{- if .Values.metrics.enabled }}
- "--metrics-port"
- {{ .Values.metrics.port | quote }}
{{- end }}
{{- range $key, $value := .Values.agent.additionalArgs }}
- {{ $key | quote }}
- {{ $value | quote }}
Expand All @@ -78,6 +82,11 @@ spec:
- containerPort: {{ .Values.agent.probePort }}
protocol: TCP
name: probes-port
{{- if .Values.metrics.enabled }}
- containerPort: {{ .Values.metrics.port }}
protocol: TCP
name: metrics
{{- end }}
env:
{{- range $key, $value := .Values.env }}
- name: {{ $key }}
Expand Down Expand Up @@ -110,4 +119,4 @@ spec:
scheme: HTTP
initialDelaySeconds: 1
timeoutSeconds: 10
{{- end }}
{{- end }}

0 comments on commit cf03453

Please sign in to comment.