Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
influxdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
influxdb
Commits
20aeb75f
Unverified
Commit
20aeb75f
authored
Oct 24, 2020
by
Petr Drastil
Committed by
GitHub
Oct 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add service account configuration for influxdb deployment (#226)
* add service account configuration for influxdb deployment * bump chart version
parent
86e976e2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
3 deletions
+33
-3
Chart.yaml
charts/influxdb-enterprise/Chart.yaml
+1
-1
_helpers.tpl
charts/influxdb-enterprise/templates/_helpers.tpl
+10
-2
bootstrap-job.yaml
charts/influxdb-enterprise/templates/bootstrap-job.yaml
+1
-0
data-statefulset.yaml
charts/influxdb-enterprise/templates/data-statefulset.yaml
+1
-0
meta-statefulset.yaml
charts/influxdb-enterprise/templates/meta-statefulset.yaml
+1
-0
serviceaccount.yaml
charts/influxdb-enterprise/templates/serviceaccount.yaml
+12
-0
values.yaml
charts/influxdb-enterprise/values.yaml
+7
-0
No files found.
charts/influxdb-enterprise/Chart.yaml
View file @
20aeb75f
apiVersion
:
v1
version
:
0.1.1
1
version
:
0.1.1
2
appVersion
:
1.8.0
engine
:
gotpl
...
...
charts/influxdb-enterprise/templates/_helpers.tpl
View file @
20aeb75f
...
...
@@ -51,8 +51,16 @@ app.kubernetes.io/name: {{ include "influxdb-enterprise.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{
{
/*
Create
the
name
of
the
service
account
*/
}
}
{{- define "influxdb-enterprise.serviceAccountName" -}}
{{- if .Values.serviceAccount.create -}}
{{ default (include "influxdb-enterprise.fullname" .) .Values.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.serviceAccount.name }}
{{- end -}}
{{- end -}}
{{- define "influxdb-enterprise.image" -}}
{{- $dataTagName := (printf "%s-%s" .chart.AppVersion .podtype) -}}
...
...
charts/influxdb-enterprise/templates/bootstrap-job.yaml
View file @
20aeb75f
...
...
@@ -23,6 +23,7 @@ spec:
name
:
{{
.Values.bootstrap.ddldml.configMap
}}
{{
end
}}
restartPolicy
:
OnFailure
serviceAccountName
:
{{
template "influxdb-enterprise.serviceAccountName" .
}}
# Consider this a middleware of setup components.
# Each is executed in-order until all of theme complete successfully.
# This means that each command must be idempotent.
...
...
charts/influxdb-enterprise/templates/data-statefulset.yaml
View file @
20aeb75f
...
...
@@ -28,6 +28,7 @@ spec:
{{
- end
}}
securityContext
:
{{
- toYaml .Values.data.podSecurityContext | nindent 8
}}
serviceAccountName
:
{{
template "influxdb-enterprise.serviceAccountName" .
}}
volumes
:
{{
if not .Values.data.persistence.enabled
}}
-
name
:
{{
include "influxdb-enterprise.fullname" .
}}
-data-data
...
...
charts/influxdb-enterprise/templates/meta-statefulset.yaml
View file @
20aeb75f
...
...
@@ -28,6 +28,7 @@ spec:
{{
- end
}}
securityContext
:
{{
- toYaml .Values.meta.podSecurityContext | nindent 8
}}
serviceAccountName
:
{{
template "influxdb-enterprise.serviceAccountName" .
}}
volumes
:
{{
if not .Values.meta.persistence.enabled
}}
-
name
:
{{
include "influxdb-enterprise.fullname" .
}}
-meta-data
...
...
charts/influxdb-enterprise/templates/serviceaccount.yaml
0 → 100644
View file @
20aeb75f
{{
- if .Values.serviceAccount.create
}}
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
labels
:
{{
- include "influxdb-enterprise.labels" . | nindent 4
}}
{{
- with .Values.serviceAccount.annotations
}}
annotations
:
{{
toYaml . | indent 4
}}
{{
- end
}}
name
:
{{
template "influxdb-enterprise.serviceAccountName" .
}}
{{
- end
}}
charts/influxdb-enterprise/values.yaml
View file @
20aeb75f
...
...
@@ -16,6 +16,13 @@ license:
# name: influxdb-license
# key: json
# Service account to use for deployment
# If the name is not specified default account will be used
serviceAccount
:
create
:
false
name
:
'
'
annotations
:
{}
# A secret with keys "username" and "password" is required
# This bootstrap configuration allows you to configure
# some parts of the InfluxDB system at install time.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment