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
0c23b2f3
Commit
0c23b2f3
authored
Feb 16, 2020
by
Naseem
Committed by
GitHub
Feb 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use include function instead of template. (#20788)
Signed-off-by:
Naseem
<
naseem@transit.app
>
parent
a0cb2436
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
Chart.yaml
stable/influxdb/Chart.yaml
+1
-1
NOTES.txt
stable/influxdb/templates/NOTES.txt
+6
-6
backup-cronjob.yaml
stable/influxdb/templates/backup-cronjob.yaml
+1
-1
ingress.yaml
stable/influxdb/templates/ingress.yaml
+1
-1
post-install-set-auth.yaml
stable/influxdb/templates/post-install-set-auth.yaml
+4
-4
No files found.
stable/influxdb/Chart.yaml
View file @
0c23b2f3
apiVersion
:
v1
apiVersion
:
v1
name
:
influxdb
name
:
influxdb
version
:
4.2.
0
version
:
4.2.
1
appVersion
:
1.7.6
appVersion
:
1.7.6
description
:
Scalable datastore for metrics, events, and real-time analytics.
description
:
Scalable datastore for metrics, events, and real-time analytics.
keywords
:
keywords
:
...
...
stable/influxdb/templates/NOTES.txt
View file @
0c23b2f3
InfluxDB can be accessed via port {{ .Values.config.http.bind_address | default 8086 }} on the following DNS name from within your cluster:
InfluxDB can be accessed via port {{ .Values.config.http.bind_address | default 8086 }} on the following DNS name from within your cluster:
- http://{{
templat
e "influxdb.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.config.http.bind_address | default 8086 }}
- http://{{
includ
e "influxdb.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.config.http.bind_address | default 8086 }}
You can easily connect to the remote instance with your local influx cli. To forward the API port to localhost:8086 run the following:
You can easily connect to the remote instance with your local influx cli. To forward the API port to localhost:8086 run the following:
- kubectl port-forward --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{
templat
e "influxdb.fullname" . }} -o jsonpath='{ .items[0].metadata.name }') 8086:{{ .Values.config.http.bind_address | default 8086 }}
- kubectl port-forward --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{
includ
e "influxdb.fullname" . }} -o jsonpath='{ .items[0].metadata.name }') 8086:{{ .Values.config.http.bind_address | default 8086 }}
You can also connect to the influx cli from inside the container. To open a shell session in the InfluxDB pod run the following:
You can also connect to the influx cli from inside the container. To open a shell session in the InfluxDB pod run the following:
- kubectl exec -i -t --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{
templat
e "influxdb.fullname" . }} -o jsonpath='{.items[0].metadata.name}') /bin/sh
- kubectl exec -i -t --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{
includ
e "influxdb.fullname" . }} -o jsonpath='{.items[0].metadata.name}') /bin/sh
To tail the logs for the InfluxDB pod run the following:
To tail the logs for the InfluxDB pod run the following:
- kubectl logs -f --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{
templat
e "influxdb.fullname" . }} -o jsonpath='{ .items[0].metadata.name }')
- kubectl logs -f --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{
includ
e "influxdb.fullname" . }} -o jsonpath='{ .items[0].metadata.name }')
{{- if .Values.setDefaultUser.enabled }}
{{- if .Values.setDefaultUser.enabled }}
...
@@ -24,7 +24,7 @@ To retrieve the default user name:
...
@@ -24,7 +24,7 @@ To retrieve the default user name:
{{- else }}
{{- else }}
- echo $(kubectl get secret {{
templat
e "influxdb.fullname" . }}-auth -o "jsonpath={.data['influxdb-user']}" --namespace {{ .Release.Namespace }} | base64 --decode)
- echo $(kubectl get secret {{
includ
e "influxdb.fullname" . }}-auth -o "jsonpath={.data['influxdb-user']}" --namespace {{ .Release.Namespace }} | base64 --decode)
{{- end }}
{{- end }}
...
@@ -36,7 +36,7 @@ To retrieve the default user password:
...
@@ -36,7 +36,7 @@ To retrieve the default user password:
{{- else }}
{{- else }}
- echo $(kubectl get secret {{
templat
e "influxdb.fullname" . }}-auth -o "jsonpath={.data['influxdb-password']}" --namespace {{ .Release.Namespace }} | base64 --decode)
- echo $(kubectl get secret {{
includ
e "influxdb.fullname" . }}-auth -o "jsonpath={.data['influxdb-password']}" --namespace {{ .Release.Namespace }} | base64 --decode)
{{- end }}
{{- end }}
{{- end }}
{{- end }}
stable/influxdb/templates/backup-cronjob.yaml
View file @
0c23b2f3
...
@@ -41,7 +41,7 @@ spec:
...
@@ -41,7 +41,7 @@ spec:
args
:
args
:
-
'
-c'
-
'
-c'
-
|
-
|
influxd backup -host {{
templat
e "influxdb.fullname" . }}.{{ .Release.Namespace }}.svc:{{ .Values.config.rpc.bind_address | default 8088 }} -portable /backups/backup_$(date +%Y%m%d_%H%M%S)
influxd backup -host {{
includ
e "influxdb.fullname" . }}.{{ .Release.Namespace }}.svc:{{ .Values.config.rpc.bind_address | default 8088 }} -portable /backups/backup_$(date +%Y%m%d_%H%M%S)
containers
:
containers
:
{{
- if .Values.backup.gcs
}}
{{
- if .Values.backup.gcs
}}
-
name
:
gsutil-cp
-
name
:
gsutil-cp
...
...
stable/influxdb/templates/ingress.yaml
View file @
0c23b2f3
...
@@ -20,6 +20,6 @@ spec:
...
@@ -20,6 +20,6 @@ spec:
paths
:
paths
:
-
path
:
/
-
path
:
/
backend
:
backend
:
serviceName
:
{{
templat
e "influxdb.fullname" .
}}
serviceName
:
{{
includ
e "influxdb.fullname" .
}}
servicePort
:
8086
servicePort
:
8086
{{
- end -
}}
{{
- end -
}}
stable/influxdb/templates/post-install-set-auth.yaml
View file @
0c23b2f3
...
@@ -16,7 +16,7 @@ spec:
...
@@ -16,7 +16,7 @@ spec:
{{
- include "influxdb.selectorLabels" . | nindent 8
}}
{{
- include "influxdb.selectorLabels" . | nindent 8
}}
spec
:
spec
:
containers
:
containers
:
-
name
:
{{
templat
e "influxdb.fullname" .
}}
-set-auth
-
name
:
{{
includ
e "influxdb.fullname" .
}}
-set-auth
image
:
"
{{
.Values.setDefaultUser.image
}}"
image
:
"
{{
.Values.setDefaultUser.image
}}"
env
:
env
:
-
name
:
INFLUXDB_USER
-
name
:
INFLUXDB_USER
...
@@ -25,7 +25,7 @@ spec:
...
@@ -25,7 +25,7 @@ spec:
{{
- if .Values.setDefaultUser.user.existingSecret
}}
{{
- if .Values.setDefaultUser.user.existingSecret
}}
name
:
{{
.Values.setDefaultUser.user.existingSecret -
}}
name
:
{{
.Values.setDefaultUser.user.existingSecret -
}}
{{
else
}}
{{
else
}}
name
:
{{
templat
e "influxdb.fullname" .
}}
-auth
name
:
{{
includ
e "influxdb.fullname" .
}}
-auth
{{
- end
}}
{{
- end
}}
key
:
influxdb-user
key
:
influxdb-user
-
name
:
INFLUXDB_PASSWORD
-
name
:
INFLUXDB_PASSWORD
...
@@ -34,14 +34,14 @@ spec:
...
@@ -34,14 +34,14 @@ spec:
{{
- if .Values.setDefaultUser.user.existingSecret
}}
{{
- if .Values.setDefaultUser.user.existingSecret
}}
name
:
{{
.Values.setDefaultUser.user.existingSecret -
}}
name
:
{{
.Values.setDefaultUser.user.existingSecret -
}}
{{
else
}}
{{
else
}}
name
:
{{
templat
e "influxdb.fullname" .
}}
-auth
name
:
{{
includ
e "influxdb.fullname" .
}}
-auth
{{
- end
}}
{{
- end
}}
key
:
influxdb-password
key
:
influxdb-password
args
:
args
:
-
"
/bin/sh"
-
"
/bin/sh"
-
"
-c"
-
"
-c"
-
|
-
|
curl -X POST http://{{
templat
e "influxdb.fullname" . }}:{{ .Values.config.http.bind_address | default 8086 }}/query \
curl -X POST http://{{
includ
e "influxdb.fullname" . }}:{{ .Values.config.http.bind_address | default 8086 }}/query \
--data-urlencode \
--data-urlencode \
"q=CREATE USER \"${INFLUXDB_USER}\" WITH PASSWORD '${INFLUXDB_PASSWORD}' {{ .Values.setDefaultUser.user.privileges }}"
"q=CREATE USER \"${INFLUXDB_USER}\" WITH PASSWORD '${INFLUXDB_PASSWORD}' {{ .Values.setDefaultUser.user.privileges }}"
restartPolicy
:
{{
.Values.setDefaultUser.restartPolicy
}}
restartPolicy
:
{{
.Values.setDefaultUser.restartPolicy
}}
...
...
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