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
c62b3e26
Commit
c62b3e26
authored
Nov 29, 2016
by
Jack Zampolin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add chronograf chart
parents
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
176 additions
and
0 deletions
+176
-0
.helmignore
stable/chronograf/.helmignore
+21
-0
Chart.yaml
stable/chronograf/Chart.yaml
+13
-0
README.md
stable/chronograf/README.md
+2
-0
NOTES.txt
stable/chronograf/templates/NOTES.txt
+17
-0
_helpers.tpl
stable/chronograf/templates/_helpers.tpl
+16
-0
deployment.yaml
stable/chronograf/templates/deployment.yaml
+41
-0
ingress.yaml
stable/chronograf/templates/ingress.yaml
+0
-0
pvc.yaml
stable/chronograf/templates/pvc.yaml
+14
-0
service.yaml
stable/chronograf/templates/service.yaml
+13
-0
values.yaml
stable/chronograf/values.yaml
+39
-0
No files found.
stable/chronograf/.helmignore
0 → 100644
View file @
c62b3e26
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
stable/chronograf/Chart.yaml
0 → 100755
View file @
c62b3e26
name
:
chronograf
version
:
0.1.0
description
:
Chart for Chronograf
keywords
:
-
chronograf
-
visualizaion
-
timeseries
home
:
https://www.influxdata.com/time-series-platform/chronograf/
maintainers
:
-
name
:
Jack Zampolin
-
email
:
jack@influxdb.com
engine
:
gotpl
\ No newline at end of file
stable/chronograf/README.md
0 → 100644
View file @
c62b3e26
# `chronograf` Chart
\ No newline at end of file
stable/chronograf/templates/NOTES.txt
0 → 100644
View file @
c62b3e26
1. Get the application URL by running these commands:
{{- if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT/login
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running:
'kubectl get svc -w --namespace {{ .Release.Namespace }} {{ template "fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP:{{ .Values.service.externalPort }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "fullname" . }}" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl port-forward $POD_NAME 8080:{{ .Values.service.externalPort }}
{{- end }}
stable/chronograf/templates/_helpers.tpl
0 → 100644
View file @
c62b3e26
{{
/*
vim
:
set
filetype
=
mustache
:
*/
}}
{
{
/*
Expand
the
name
of
the
chart
.
*/
}
}
{{- define "name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 24 -}}
{{- end -}}
{
{
/*
Create
a
default
fully
qualified
app
name
.
We
truncate
at
24
chars
because
some
Kubernetes
name
fields
are
limited
to
this
(
by
the
DNS
naming
spec
).
*/
}
}
{{- define "fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 24 -}}
{{- end -}}
stable/chronograf/templates/deployment.yaml
0 → 100644
View file @
c62b3e26
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
name
:
{{
template "fullname" .
}}
labels
:
chart
:
"
{{
.Chart.Name
}}-{{
.Chart.Version
}}"
spec
:
replicas
:
1
template
:
metadata
:
labels
:
app
:
{{
template "fullname" .
}}
spec
:
containers
:
-
name
:
{{
.Chart.Name
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
ports
:
-
containerPort
:
8888
livenessProbe
:
httpGet
:
path
:
/ping
port
:
8888
readinessProbe
:
httpGet
:
path
:
/ping
port
:
8888
volumeMounts
:
-
name
:
data
mountPath
:
/var/lib/chronograf
resources
:
{{
toYaml .Values.resources | indent 12
}}
volumes
:
-
name
:
data
{{
- if .Values.persistence.enabled
}}
persistentVolumeClaim
:
claimName
:
{{
template "fullname" .
}}
{{
- else -
}}
emptyDir
:
{}
{{
- end -
}}
\ No newline at end of file
stable/chronograf/templates/ingress.yaml
0 → 100644
View file @
c62b3e26
stable/chronograf/templates/pvc.yaml
0 → 100644
View file @
c62b3e26
{{
- if .Values.persistence.enabled
}}
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
{{
template "fullname" .
}}
annotations
:
volume.alpha.kubernetes.io/storage-class
:
{{
.Values.persistence.storageClass | quote
}}
spec
:
accessModes
:
-
{{
.Values.persistence.accessMode | quote
}}
resources
:
requests
:
storage
:
{{
.Values.persistence.size | quote
}}
{{
- end
}}
stable/chronograf/templates/service.yaml
0 → 100644
View file @
c62b3e26
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
{{
template "fullname" .
}}
labels
:
chart
:
"
{{
.Chart.Name
}}-{{
.Chart.Version
}}"
spec
:
type
:
{{
.Values.service.type
}}
ports
:
-
port
:
80
targetPort
:
8888
selector
:
app
:
{{
template "fullname" .
}}
stable/chronograf/values.yaml
0 → 100644
View file @
c62b3e26
image
:
repository
:
"
quay.io/influxdb/chronograf"
tag
:
"
latest"
pullPolicy
:
"
Always"
## Specify a service type
## NodePort is default
## ref: http://kubernetes.io/docs/user-guide/services/
service
:
type
:
LoadBalancer
## Persist data to a persitent volume
persistence
:
enabled
:
true
storageClass
:
generic
accessMode
:
ReadWriteOnce
size
:
8Gi
## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
resources
:
requests
:
memory
:
256Mi
cpu
:
0.1
limits
:
memory
:
2Gi
cpu
:
2
## Configure the ingress object to hook into existing infastructure
## ref : http://kubernetes.io/docs/user-guide/ingress/
##
ingress
:
enabled
:
true
tls
:
true
hostname
:
chronograf.influxdata.com
annotations
:
# kubernetes.io/ingress.class: "nginx"
\ No newline at end of file
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