File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ keywords:
9
9
- finops
10
10
- monitoring
11
11
- opencost
12
- version : 1.43.1
12
+ version : 1.43.2
13
13
maintainers :
14
14
- name : mattray
15
15
url : https://mattray.dev
Original file line number Diff line number Diff line change @@ -101,8 +101,9 @@ Create the name of the controller service account to use
101
101
{ {- else -} }
102
102
{ {- $host := tpl .Values.opencost.prometheus.internal.serviceName . } }
103
103
{ {- $ns := tpl .Values.opencost.prometheus.internal.namespaceName . } }
104
+ { {- $clusterName := .Values.clusterName } }
104
105
{ {- $port := .Values.opencost.prometheus.internal.port | int } }
105
- { {- printf " http://%s.%s.svc.cluster.local :%d" $host $ns $port -} }
106
+ { {- printf " http://%s.%s.svc.%s :%d" $host $ns $ clusterName $port -} }
106
107
{ {- end -} }
107
108
{ {- end -} }
108
109
@@ -115,8 +116,9 @@ Check that either thanos external or internal is defined
115
116
{ {- else -} }
116
117
{ {- $host := .Values.opencost.prometheus.thanos.internal.serviceName } }
117
118
{ {- $ns := .Values.opencost.prometheus.thanos.internal.namespaceName } }
119
+ { {- $clusterName := .Values.clusterName } }
118
120
{ {- $port := .Values.opencost.prometheus.thanos.internal.port | int } }
119
- { {- printf " http://%s.%s.svc.cluster.local :%d" $host $ns $port -} }
121
+ { {- printf " http://%s.%s.svc.%s :%d" $host $ns $ clusterName $port -} }
120
122
{ {- end -} }
121
123
{ {- end -} }
122
124
@@ -188,4 +190,4 @@ apiVersion: networking.k8s.io/v1beta1
188
190
{ {- else } }
189
191
{ {- .Values.opencost.ui.image.registry -} }/{ {- .Values.opencost.ui.image.repository -} }:{ {- include " opencostUi.imageTag" . -} }
190
192
{ {- end -} }
191
- { {- end -} }
193
+ { {- end -} }
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ nameOverride: ""
4
4
fullnameOverride : " "
5
5
# -- Override the deployment namespace
6
6
namespaceOverride : " "
7
+ # -- Override the default name of cluster - Can be found in /etc/kubernetes/admin.conf: clusters -> cluster -> name
8
+ clusterName : " cluster.local"
7
9
8
10
loglevel : info
9
11
You can’t perform that action at this time.
0 commit comments