Skip to content

Commit

Permalink
Merge pull request #145 from gopisaba/service_account
Browse files Browse the repository at this point in the history
Allow users to create the service accounts
  • Loading branch information
AjayTripathy committed Nov 26, 2019
2 parents 67c0993 + 7a13bed commit 4540587
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
@@ -1,8 +1,8 @@
# Kubecost helm chart
Helm chart for the Kubecost project, which is created to monitor and manage Kubernetes resource spend. Please contact team@kubecost.com or visit [kubecost.com](http://kubecost.com) for more info.

While Helm is the [recommended install path](http://kubecost.com/install), these resources can also be deployed with the following command:<a name="manifest"></a>
While Helm is the [recommended install path](http://kubecost.com/install), these resources can also be deployed with the following command:<a name="manifest"></a>

`kubectl apply -f https://raw.githubusercontent.com/kubecost/cost-analyzer-helm-chart/master/kubecost.yaml --namespace kubecost`

<a name="config-options"></a><br/>
Expand Down Expand Up @@ -33,3 +33,4 @@ Parameter | Description | Default
`prometheusRule.enabled` | Set this to `true` to create PrometheusRule for Prometheus operator | `false`
`prometheusRule.additionalLabels` | Additional labels that can be used so PrometheusRule will be discovered by Prometheus | `{}`
`grafana.sidecar.datasources.defaultDatasourceEnabled` | Set this to `false` to disable creation of Prometheus datasource in Grafana | `true`
`serviceAccount.create` | Set this to `false` if you want to create the service account `kubecost-cost-analyzer` on your own | `true`
@@ -1,6 +1,8 @@
{{- if .Values.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "cost-analyzer.fullname" . }}
labels:
{{ include "cost-analyzer.commonLabels" . | nindent 4 }}
{{- end }}
5 changes: 4 additions & 1 deletion cost-analyzer/values.yaml
Expand Up @@ -105,7 +105,7 @@ service:
type: ClusterIP

remoteWrite:
postgres:
postgres:
enabled: false
initImage: "ajaytripathy/kubecost-sql-init"
initImagePullPolicy: Always
Expand Down Expand Up @@ -217,3 +217,6 @@ grafana:
datasources:
enabled: true
defaultDatasourceEnabled: true

serviceAccount:
create: true

0 comments on commit 4540587

Please sign in to comment.