-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating Chart to 1.4.0 and adding support for DCGM exporter for Nvid… (
#4)
- Loading branch information
1 parent
c884492
commit fc5d13d
Showing
15 changed files
with
358 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
charts/amazon-cloudwatch-observability/templates/dcgm-exporter-configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Values.dcgmExporter.configmap }} | ||
namespace: {{ .Release.Namespace }} | ||
data: | ||
dcp-metrics-included.csv: | | ||
DCGM_FI_DEV_GPU_UTIL, gauge, GPU utilization (in %). | ||
DCGM_FI_DEV_MEM_COPY_UTIL, gauge, Memory utilization (in %). | ||
DCGM_FI_DEV_FB_FREE, gauge, Framebuffer memory free (in MiB). | ||
DCGM_FI_DEV_FB_USED, gauge, Framebuffer memory used (in MiB). | ||
DCGM_FI_DEV_FB_TOTAL, gauge, Framebuffer memory used (in MiB). | ||
DCGM_FI_DEV_FB_USED_PERCENT, gauge, Percentage used of Frame Buffer: Used/(Total - Reserved). | ||
DCGM_FI_DEV_MEMORY_TEMP, gauge, Memory temperature (in C). | ||
DCGM_FI_DEV_GPU_TEMP, gauge, GPU temperature (in C). | ||
DCGM_FI_DEV_POWER_USAGE, gauge, Power draw (in W). | ||
web-config.yaml: | | ||
tls_server_config: | ||
cert_file: /etc/amazon-cloudwatch-observability-dcgm-cert/server.crt | ||
key_file: /etc/amazon-cloudwatch-observability-dcgm-cert/server.key |
79 changes: 79 additions & 0 deletions
79
charts/amazon-cloudwatch-observability/templates/dcgm-exporter-daemonset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: {{ include "dcgm-exporter.name" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
k8s-app: {{ include "dcgm-exporter.name" . }} | ||
version: v1 | ||
spec: | ||
selector: | ||
matchLabels: | ||
k8s-app: {{ include "dcgm-exporter.name" . }} | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: {{ include "dcgm-exporter.name" . }} | ||
version: v1 | ||
spec: | ||
serviceAccountName: {{ template "dcgm-exporter.serviceAccountName" . }} | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: {{ .Values.gpuNodeLabelKey }} | ||
operator: In | ||
values: {{ .Values.gpuInstances | toYaml | nindent 16 }} | ||
containers: | ||
- name: dcgm-exporter | ||
image: {{ template "dcgm-exporter.image" . }} | ||
args: | ||
{{- range $.Values.dcgmExporter.arguments }} | ||
- {{ . }} | ||
{{- end }} | ||
resources: | ||
requests: | ||
cpu: 250m | ||
memory: 128Mi | ||
limits: | ||
cpu: 500m | ||
memory: 250Mi | ||
env: | ||
- name: "DCGM_EXPORTER_KUBERNETES" | ||
value: "true" | ||
- name: "DCGM_EXPORTER_LISTEN" | ||
value: "{{ .Values.dcgmExporter.service.address }}" | ||
- name: "DCGM_EXPORTER_COLLECTORS" | ||
value: "/etc/dcgm-exporter/dcp-metrics-included.csv" | ||
- name: NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
ports: | ||
- name: "metrics" | ||
containerPort: {{ .Values.dcgmExporter.service.port }} | ||
volumeMounts: | ||
- name: "pod-gpu-resources" | ||
readOnly: true | ||
mountPath: "/var/lib/kubelet/pod-resources" | ||
- name: "dcgm-config" | ||
mountPath: /etc/dcgm-exporter/ | ||
- mountPath: /etc/amazon-cloudwatch-observability-dcgm-cert | ||
name: dcgmtls | ||
readOnly: true | ||
volumes: | ||
- name: dcgmtls | ||
secret: | ||
secretName: amazon-cloudwatch-observability-agent-cert | ||
items: | ||
- key: tls.crt | ||
path: server.crt | ||
- key: tls.key | ||
path: server.key | ||
- name: "pod-gpu-resources" | ||
hostPath: | ||
path: /var/lib/kubelet/pod-resources | ||
- name: "dcgm-config" | ||
configMap: | ||
name: {{ .Values.dcgmExporter.configmap }} |
Oops, something went wrong.