File tree Expand file tree Collapse file tree 4 files changed +50
-1
lines changed Expand file tree Collapse file tree 4 files changed +50
-1
lines changed Original file line number Diff line number Diff line change
1
+ {{- if and .Values.bugReporting .Values.bugReporting.logCollection -}}
2
+ apiVersion : rbac.authorization.k8s.io/v1
3
+ kind : Role
4
+ metadata :
5
+ namespace : {{ .Release.Namespace }}
6
+ name : {{ template "cost-analyzer.fullname" . }}
7
+ rules :
8
+ - apiGroups :
9
+ - ' '
10
+ resources :
11
+ - " pods/log"
12
+ verbs :
13
+ - get
14
+ - list
15
+ - watch
16
+ ---
17
+ {{- end }}
1
18
apiVersion : rbac.authorization.k8s.io/v1
2
19
kind : ClusterRole
3
20
metadata :
Original file line number Diff line number Diff line change
1
+ {{- if and .Values.bugReporting .Values.bugReporting.logCollection -}}
2
+ apiVersion : rbac.authorization.k8s.io/v1
3
+ kind : RoleBinding
4
+ metadata :
5
+ name : {{ template "cost-analyzer.fullname" . }}
6
+ labels :
7
+ {{ include "cost-analyzer.commonLabels" . | nindent 4 }}
8
+ roleRef :
9
+ apiGroup : rbac.authorization.k8s.io
10
+ kind : Role
11
+ name : {{ template "cost-analyzer.fullname" . }}
12
+ subjects :
13
+ - kind : ServiceAccount
14
+ name : {{ template "cost-analyzer.fullname" . }}
15
+ namespace : {{ .Release.Namespace }}
16
+ ---
17
+ {{- end }}
1
18
apiVersion : rbac.authorization.k8s.io/v1
2
19
kind : ClusterRoleBinding
3
20
metadata :
Original file line number Diff line number Diff line change @@ -140,6 +140,16 @@ spec:
140
140
configMapKeyRef :
141
141
name : {{ template "cost-analyzer.fullname" . }}
142
142
key : prometheus-server-endpoint
143
+ {{- if .Values.thanos }}
144
+ {{- if .Values.thanos.query }}
145
+ {{- if .Values.thanos.query.enabled }}
146
+ - name : THANOS_ENABLED
147
+ value : " true"
148
+ - name : THANOS_QUERY_URL
149
+ value : http://{{ .Release.Name }}-thanos-query-http.{{ .Release.Namespace }}:{{ .Values.thanos.query.http.port }}
150
+ {{- end }}
151
+ {{- end }}
152
+ {{- end }}
143
153
- name : GOOGLE_APPLICATION_CREDENTIALS
144
154
value : /var/configs/key.json
145
155
- name : KUBECOST_TOKEN
Original file line number Diff line number Diff line change @@ -229,9 +229,14 @@ networkCosts:
229
229
230
230
turndown :
231
231
enabled : false
232
- image : gcr.io/kubecost1/kubecost-turndown:v2
232
+ image : gcr.io/kubecost1/kubecost-turndown:v3
233
233
imagePullPolicy : Always
234
234
235
+ # Kubecost bug report feature
236
+ bugReporting :
237
+ # .Release.Namespace Logs Access
238
+ logCollection : true
239
+
235
240
serviceMonitor :
236
241
enabled : false
237
242
additionalLabels : {}
You can’t perform that action at this time.
0 commit comments