diff --git a/charts/gpu-metrics-exporter/templates/daemonset.yaml b/charts/gpu-metrics-exporter/templates/daemonset.yaml index b7827c8..571bd6c 100644 --- a/charts/gpu-metrics-exporter/templates/daemonset.yaml +++ b/charts/gpu-metrics-exporter/templates/daemonset.yaml @@ -57,8 +57,6 @@ spec: affinity: {{- toYaml . | nindent 8 }} {{- end }} - tolerations: - - operator: "Exists" containers: - name: {{ .Chart.Name }} securityContext: diff --git a/charts/gpu-metrics-exporter/templates/service-acc.yaml b/charts/gpu-metrics-exporter/templates/service-acc.yaml new file mode 100644 index 0000000..a523b69 --- /dev/null +++ b/charts/gpu-metrics-exporter/templates/service-acc.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: gpu-exporter-sa + namespace: {{ .Release.Namespace }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: list-pods-clusterrole +rules: + - apiGroups: [""] + resources: ["pods"] + verbs: ["list"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: list-pods-clusterrolebinding +subjects: + - kind: ServiceAccount + name: gpu-exporter-sa + namespace: {{ .Release.Namespace }} +roleRef: + kind: ClusterRole + name: list-pods-clusterrole + apiGroup: rbac.authorization.k8s.io diff --git a/charts/gpu-metrics-exporter/values.yaml b/charts/gpu-metrics-exporter/values.yaml index 4376cee..a15a61e 100644 --- a/charts/gpu-metrics-exporter/values.yaml +++ b/charts/gpu-metrics-exporter/values.yaml @@ -14,7 +14,7 @@ additionalVolumes: [] serviceAccount: create: true automount: true - annotations: { } + annotations: {} gpuMetricsExporter: image: repository: ghcr.io/castai/gpu-metrics-exporter/gpu-metrics-exporter