Skip to content

Commit

Permalink
feat: enable metrics for csi-provisioner
Browse files Browse the repository at this point in the history
  • Loading branch information
hichem-belhocine committed Jun 18, 2024
1 parent 6d8c526 commit c5e6e2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,19 @@ spec:
{{- end }}
{{- if hasKey .Values.controller "leaderElectionLeaseDuration" }}
- --leader-election-lease-duration={{ .Values.controller.leaderElectionLeaseDuration }}
- --metrics-address=:{{ .Values.controller.metrics.port }}
- --metrics-path={{ .Values.controller.metrics.path }}
{{- end }}
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
ports:
- name: metrics
containerPort: {{ .Values.controller.metrics.port }}
protocol: TCP
{{- with .Values.sidecars.csiProvisioner.resources }}
resources: {{ toYaml . | nindent 12 }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/aws-efs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ controller:
privileged: true
leaderElectionRenewDeadline: 10s
leaderElectionLeaseDuration: 15s
metrics:
port: 8080
path: /metrics


## Node daemonset variables
Expand Down

0 comments on commit c5e6e2d

Please sign in to comment.