Skip to content

Commit 31c65a9

Browse files
Fix prometheus node exporter values (#282)
1 parent becd78f commit 31c65a9

4 files changed

Lines changed: 56 additions & 8 deletions

File tree

charts/mlrun-ce/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: mlrun-ce
3-
version: 0.11.0-rc.28
3+
version: 0.11.0-rc.29
44
description: MLRun Open Source Stack
55
home: https://iguazio.com
66
icon: https://www.iguazio.com/wp-content/uploads/2019/10/Iguazio-Logo.png
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{{- if eq .Values.storage.mode "azure-blob" }}
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: storage-credentials
6+
labels:
7+
{{- include "mlrun-ce.common.labels" . | nindent 4 }}
8+
type: Opaque
9+
stringData:
10+
{{- with .Values.storage.azure.connectionString }}
11+
AZURE_STORAGE_CONNECTION_STRING: {{ . }}
12+
{{- end }}
13+
{{- with .Values.storage.azure.accountName }}
14+
AZURE_STORAGE_ACCOUNT_NAME: {{ . }}
15+
{{- end }}
16+
{{- with .Values.storage.azure.accountKey }}
17+
AZURE_STORAGE_ACCOUNT_KEY: {{ . }}
18+
{{- end }}
19+
{{- with .Values.storage.azure.sasToken }}
20+
AZURE_STORAGE_SAS_TOKEN: {{ . }}
21+
{{- end }}
22+
{{- with .Values.storage.azure.clientSecret }}
23+
AZURE_STORAGE_CLIENT_SECRET: {{ . }}
24+
{{- end }}
25+
{{- with .Values.storage.azure.tenantId }}
26+
AZURE_STORAGE_TENANT_ID: {{ . }}
27+
{{- end }}
28+
{{- else }}
29+
{{- if not .Values.global.infrastructure.aws.s3NonAnonymous }}
30+
apiVersion: v1
31+
kind: Secret
32+
metadata:
33+
name: storage-credentials
34+
labels:
35+
{{- include "mlrun-ce.common.labels" . | nindent 4 }}
36+
type: Opaque
37+
stringData:
38+
AWS_ACCESS_KEY_ID: {{ include "mlrun-ce.s3.accessKey" . }}
39+
AWS_SECRET_ACCESS_KEY: {{ include "mlrun-ce.s3.secretKey" . }}
40+
AWS_ENDPOINT_URL_S3: {{ include "mlrun-ce.s3.service.url" . }}
41+
{{- end }}
42+
{{- end }}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{{- if and (eq .Values.storage.mode "s3") (not .Values.storage.s3.bucket) }}
2+
{{ fail "storage.mode is set to \"s3\" but storage.s3.bucket is not provided. Please set storage.s3.bucket." }}
3+
{{- end }}
4+
{{- if and (eq .Values.storage.mode "azure-blob") (not .Values.storage.azure.containerName) }}
5+
{{ fail "storage.mode is set to \"azure-blob\" but storage.azure.containerName is not provided. Please set storage.azure.containerName." }}
6+
{{- end }}

charts/mlrun-ce/values.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -571,13 +571,13 @@ kube-prometheus-stack:
571571
nodePort: 30020
572572
kube-state-metrics:
573573
fullnameOverride: state-metrics
574-
prometheus-node-exporter:
575-
fullnameOverride: node-exporter
576-
hostNetwork: false
577-
service:
578-
port: 9100
579-
hostRootFsMount:
580-
enabled: false
574+
prometheus-node-exporter:
575+
fullnameOverride: node-exporter
576+
hostNetwork: false
577+
service:
578+
port: 9100
579+
hostRootFsMount:
580+
enabled: false
581581

582582
timescaledb:
583583
enabled: true

0 commit comments

Comments
 (0)