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
b8fe8de8
Commit
b8fe8de8
authored
Oct 05, 2017
by
Kevin Schumacher
Committed by
Dhilip
Oct 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[stable/influxdb] #1785 namespace defined templates with chart name (#2143)
parent
551682dd
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
30 additions
and
30 deletions
+30
-30
Chart.yaml
stable/influxdb/Chart.yaml
+2
-2
NOTES.txt
stable/influxdb/templates/NOTES.txt
+4
-4
_helpers.tpl
stable/influxdb/templates/_helpers.tpl
+2
-2
config.yaml
stable/influxdb/templates/config.yaml
+2
-2
deployment.yaml
stable/influxdb/templates/deployment.yaml
+6
-6
post-install-set-auth.yaml
stable/influxdb/templates/post-install-set-auth.yaml
+7
-7
pvc.yaml
stable/influxdb/templates/pvc.yaml
+2
-2
secret.yaml
stable/influxdb/templates/secret.yaml
+2
-2
service.yaml
stable/influxdb/templates/service.yaml
+3
-3
No files found.
stable/influxdb/Chart.yaml
View file @
b8fe8de8
name
:
influxdb
version
:
0.
4.4
version
:
0.
5.0
description
:
Scalable datastore for metrics, events, and real-time analytics.
keywords
:
-
influxdb
...
...
@@ -7,7 +7,7 @@ keywords:
-
timeseries
home
:
https://www.influxdata.com/time-series-platform/influxdb/
sources
:
-
https://github.com/influxdata/influxdb
-
https://github.com/influxdata/influxdb
maintainers
:
-
name
:
Jack Zampolin
email
:
jack@influxdb.com
...
...
stable/influxdb/templates/NOTES.txt
View file @
b8fe8de8
InfluxDB can be accessed via port {{ .Values.config.http.bind_address }} on the following DNS name from within your cluster:
- http://{{ template "fullname" . }}.{{ .Release.Namespace }}:{{ .Values.config.http.bind_address }}
- http://{{ template "
influxdb.
fullname" . }}.{{ .Release.Namespace }}:{{ .Values.config.http.bind_address }}
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={{ template "fullname" . }} -o jsonpath='{ .items[0].metadata.name }') 8086:{{ .Values.config.http.bind_address }}
- kubectl port-forward --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "
influxdb.
fullname" . }} -o jsonpath='{ .items[0].metadata.name }') 8086:{{ .Values.config.http.bind_address }}
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={{ template "fullname" . }} -o jsonpath='{.items[0].metadata.name}') /bin/sh
- kubectl exec -i -t --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "
influxdb.
fullname" . }} -o jsonpath='{.items[0].metadata.name}') /bin/sh
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={{ template "fullname" . }} -o jsonpath='{ .items[0].metadata.name }')
- kubectl logs -f --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "
influxdb.
fullname" . }} -o jsonpath='{ .items[0].metadata.name }')
stable/influxdb/templates/_helpers.tpl
View file @
b8fe8de8
...
...
@@ -2,7 +2,7 @@
{
{
/*
Expand
the
name
of
the
chart
.
*/
}
}
{{- define "name" -}}
{{- define "
influxdb.
name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
...
...
@@ -10,7 +10,7 @@ Expand the name of the chart.
Create
a
default
fully
qualified
app
name
.
We
truncate
at
63
chars
because
some
Kubernetes
name
fields
are
limited
to
this
(
by
the
DNS
naming
spec
).
*/
}
}
{{- define "fullname" -}}
{{- define "
influxdb.
fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
stable/influxdb/templates/config.yaml
View file @
b8fe8de8
...
...
@@ -2,9 +2,9 @@
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
{{
template "fullname" .
}}
name
:
{{
template "
influxdb.
fullname" .
}}
labels
:
app
:
{{
template "fullname" .
}}
app
:
{{
template "
influxdb.
fullname" .
}}
chart
:
"
{{
.Chart.Name
}}-{{
.Chart.Version
}}"
release
:
"
{{
.Release.Name
}}"
heritage
:
"
{{
.Release.Service
}}"
...
...
stable/influxdb/templates/deployment.yaml
View file @
b8fe8de8
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
name
:
{{
template "fullname" .
}}
name
:
{{
template "
influxdb.
fullname" .
}}
labels
:
app
:
{{
template "fullname" .
}}
app
:
{{
template "
influxdb.
fullname" .
}}
chart
:
"
{{
.Chart.Name
}}-{{
.Chart.Version
}}"
release
:
"
{{
.Release.Name
}}"
heritage
:
"
{{
.Release.Service
}}"
...
...
@@ -12,10 +12,10 @@ spec:
template
:
metadata
:
labels
:
app
:
{{
template "fullname" .
}}
app
:
{{
template "
influxdb.
fullname" .
}}
spec
:
containers
:
-
name
:
{{
template "fullname" .
}}
-
name
:
{{
template "
influxdb.
fullname" .
}}
image
:
"
{{
.Values.image.repo
}}:{{
.Values.image.tag
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy | quote
}}
resources
:
...
...
@@ -68,11 +68,11 @@ spec:
claimName
:
{{
.Values.persistence.name
}}
{{
- else
}}
persistentVolumeClaim
:
claimName
:
{{
template "fullname" .
}}
claimName
:
{{
template "
influxdb.
fullname" .
}}
{{
- end
}}
{{
- else
}}
emptyDir
:
{}
{{
- end
}}
-
name
:
config
configMap
:
name
:
{{
template "fullname" .
}}
name
:
{{
template "
influxdb.
fullname" .
}}
stable/influxdb/templates/post-install-set-auth.yaml
View file @
b8fe8de8
...
...
@@ -3,11 +3,11 @@ apiVersion: batch/v1
kind
:
Job
metadata
:
labels
:
app
:
{{
template "fullname" .
}}
app
:
{{
template "
influxdb.
fullname" .
}}
chart
:
"
{{
.Chart.Name
}}-{{
.Chart.Version
}}"
release
:
"
{{
.Release.Name
}}"
heritage
:
"
{{
.Release.Service
}}"
name
:
{{
template "fullname" .
}}
-set-auth
name
:
{{
template "
influxdb.
fullname" .
}}
-set-auth
annotations
:
"
helm.sh/hook"
:
post-install
spec
:
...
...
@@ -15,28 +15,28 @@ spec:
template
:
metadata
:
labels
:
app
:
{{
template "fullname" .
}}
app
:
{{
template "
influxdb.
fullname" .
}}
release
:
"
{{
.Release.Name
}}"
spec
:
containers
:
-
name
:
{{
template "fullname" .
}}
-set-auth
-
name
:
{{
template "
influxdb.
fullname" .
}}
-set-auth
image
:
"
{{
.Values.setDefaultUser.image
}}"
env
:
-
name
:
INFLUXDB_USER
valueFrom
:
secretKeyRef
:
name
:
{{
template "fullname" .
}}
-auth
name
:
{{
template "
influxdb.
fullname" .
}}
-auth
key
:
influxdb-user
-
name
:
INFLUXDB_PASSWORD
valueFrom
:
secretKeyRef
:
name
:
{{
template "fullname" .
}}
-auth
name
:
{{
template "
influxdb.
fullname" .
}}
-auth
key
:
influxdb-password
args
:
-
"
/bin/sh"
-
"
-c"
-
|
curl -X POST http://{{ template "fullname" . }}:{{ .Values.config.http.bind_address }}/query \
curl -X POST http://{{ template "
influxdb.
fullname" . }}:{{ .Values.config.http.bind_address }}/query \
--data-urlencode \
"q=CREATE USER \"${INFLUXDB_USER}\" WITH PASSWORD '${INFLUXDB_PASSWORD}' {{ .Values.setDefaultUser.user.privileges }}"
restartPolicy
:
{{
.Values.setDefaultUser.restartPolicy
}}
...
...
stable/influxdb/templates/pvc.yaml
View file @
b8fe8de8
...
...
@@ -2,9 +2,9 @@
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
"
{{-
if
not
(empty
.Values.persistence.name)
}}{{
.Values.persistence.name
}}{{-
else
}}{{
template
"fullname" . }}{{- end }}"
name
:
"
{{-
if
not
(empty
.Values.persistence.name)
}}{{
.Values.persistence.name
}}{{-
else
}}{{
template
"
influxdb.
fullname" . }}{{- end }}"
labels
:
app
:
"
{{-
if
not
(empty
.Values.persistence.name)
}}{{
.Values.persistence.name
}}{{-
else
}}{{
template
"fullname" . }}{{- end }}"
app
:
"
{{-
if
not
(empty
.Values.persistence.name)
}}{{
.Values.persistence.name
}}{{-
else
}}{{
template
"
influxdb.
fullname" . }}{{- end }}"
chart
:
"
{{
.Chart.Name
}}-{{
.Chart.Version
}}"
release
:
"
{{
.Release.Name
}}"
heritage
:
"
{{
.Release.Service
}}"
...
...
stable/influxdb/templates/secret.yaml
View file @
b8fe8de8
...
...
@@ -3,11 +3,11 @@ apiVersion: v1
kind
:
Secret
metadata
:
labels
:
app
:
{{
template "fullname" .
}}
app
:
{{
template "
influxdb.
fullname" .
}}
chart
:
"
{{
.Chart.Name
}}-{{
.Chart.Version
}}"
heritage
:
"
{{
.Release.Service
}}"
release
:
"
{{
.Release.Name
}}"
name
:
{{
template "fullname" .
}}
-auth
name
:
{{
template "
influxdb.
fullname" .
}}
-auth
data
:
{{
- if .Values.setDefaultUser.user.password
}}
influxdb-password
:
{{
.Values.setDefaultUser.user.password | b64enc | quote
}}
...
...
stable/influxdb/templates/service.yaml
View file @
b8fe8de8
...
...
@@ -5,9 +5,9 @@ metadata:
annotations
:
{{
toYaml .Values.service.annotations | indent 4
}}
{{
- end
}}
name
:
{{
template "fullname" .
}}
name
:
{{
template "
influxdb.
fullname" .
}}
labels
:
app
:
{{
template "fullname" .
}}
app
:
{{
template "
influxdb.
fullname" .
}}
chart
:
"
{{
.Chart.Name
}}-{{
.Chart.Version
}}"
release
:
"
{{
.Release.Name
}}"
heritage
:
"
{{
.Release.Service
}}"
...
...
@@ -45,4 +45,4 @@ spec:
targetPort
:
{{
.Values.config.opentsdb.bind_address
}}
{{
- end
}}
selector
:
app
:
{{
template "fullname" .
}}
app
:
{{
template "
influxdb.
fullname" .
}}
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