forked from kubecost/cost-analyzer-helm-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
values-agent.yaml
82 lines (77 loc) · 2.17 KB
/
values-agent.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Kubecost running as an Agent is designed for external hosting. The current setup deploys a
# kubecost-agent pod, low data retention prometheus server + thanos sidecar, and node-exporter.
global:
thanos:
enabled: false
grafana:
enabled: false
proxy: false
# Agent enables specific features designed to enhance the metrics exporter deployment
# with enhancements designed for external hosting.
agent: true
agentKeySecretName: kubecost-agent-object-store
# No Grafana configuration is required.
grafana:
sidecar:
dashboards:
enabled: false
datasources:
defaultDatasourceEnabled: false
# Exporter Pod
kubecostMetrics:
exporter:
enabled: true
exportClusterInfo: true
exportClusterCache: true
# Prometheus defaults to low rentention (10h), disables KSM, and attaches a thanos-sidecar
# for exporting metrics.
prometheus:
kube-state-metrics:
enabled: false
disabled: true
server:
extraArgs:
storage.tsdb.min-block-duration: 2h
storage.tsdb.max-block-duration: 2h
storage.tsdb.retention: 10h
securityContext:
runAsNonRoot: true
runAsUser: 1001
extraSecretMounts:
- name: object-store-volume
mountPath: /etc/thanos/config
readOnly: true
secretName: {{ .Values.agentKeySecretName }}
enableAdminApi: true
sidecarContainers:
- name: thanos-sidecar
image: thanosio/thanos:v0.22.0
securityContext:
runAsNonRoot: true
runAsUser: 1001
args:
- sidecar
- --log.level=debug
- --tsdb.path=/data/
- --prometheus.url=http://127.0.0.1:9090
- --objstore.config-file=/etc/thanos/config/object-store.yaml
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
ports:
- name: sidecar-http
containerPort: 10902
- name: grpc
containerPort: 10901
- name: cluster
containerPort: 10900
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus
- name: storage-volume
mountPath: /data
subPath: ""
- name: object-store-volume
mountPath: /etc/thanos/config