-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathvalues-cloud-agent-staging.yaml
66 lines (60 loc) · 1.67 KB
/
values-cloud-agent-staging.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
# Kubecost running as an Agent is designed for external hosting. The current setup deploys a
# kubecost-agent pod and prometheus server
global:
thanos:
enabled: false
grafana:
enabled: false
proxy: false
# Cloud Agent enables specific features designed to enhance the metrics exporter deployment
# with enhancements designed for Kubecost Cloud
cloudAgent: true
cloudAgentKey: ""
# Cloud Agent securely sends data using one-way TLS
cloudAgentTLSCertName: "agent-tls-public-key"
cloudAgentTLSFileName: "files/stage-cloud-cert.pem"
# No Grafana configuration is required.
grafana:
sidecar:
dashboards:
enabled: false
datasources:
defaultDatasourceEnabled: false
# Exporter Pod
kubecostMetrics:
exporter:
enabled: true
exportClusterInfo: false
exportClusterCache: false
# Disable cost-analyzer PSP
podSecurityPolicy:
enabled: false
# Disable KSM and NodeExporter (?)
prometheus:
podSecurityPolicy:
enabled: false
nodeExporter:
enabled: false
kube-state-metrics:
enabled: false
disabled: true
extraScrapeConfigs: |
- job_name: kubecost-cloud-agent
honor_labels: true
scrape_interval: 1m
scrape_timeout: 60s
metrics_path: /metrics
scheme: http
dns_sd_configs:
- names:
- {{ .Release.Name }}-cloud-agent
type: 'A'
port: 9005
- job_name: kubecost-networking
kubernetes_sd_configs:
- role: pod
relabel_configs:
# Scrape only the the targets matching the following metadata
- source_labels: [__meta_kubernetes_pod_label_app]
action: keep
regex: {{ template "cost-analyzer.networkCostsName" . }}