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
70eb8749
Unverified
Commit
70eb8749
authored
Feb 03, 2021
by
Yurii Matsiuk
Committed by
GitHub
Feb 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add service type and ingressClass to influxdb2 (#257)
Co-authored-by:
Yurii Matsiuk
<
ymatsiuk@users.noreply.github.com
>
parent
6e5f64e3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
6 deletions
+43
-6
Chart.yaml
charts/influxdb2/Chart.yaml
+1
-1
ingress.yaml
charts/influxdb2/templates/ingress.yaml
+4
-1
service.yaml
charts/influxdb2/templates/service.yaml
+29
-3
statefulset.yaml
charts/influxdb2/templates/statefulset.yaml
+1
-1
values.yaml
charts/influxdb2/values.yaml
+8
-0
No files found.
charts/influxdb2/Chart.yaml
View file @
70eb8749
...
...
@@ -5,7 +5,7 @@ name: influxdb2
description
:
A Helm chart for InfluxDB v2
home
:
https://www.influxdata.com/products/influxdb-overview/influxdb-2-0/
type
:
application
version
:
1.0.1
3
version
:
1.0.1
4
maintainers
:
-
name
:
rawkode
email
:
rawkode@influxdata.com
...
...
charts/influxdb2/templates/ingress.yaml
View file @
70eb8749
...
...
@@ -10,6 +10,9 @@ metadata:
{{
- toYaml . | nindent 4
}}
{{
- end
}}
spec
:
{{
- if .Values.ingress.ingressClassName
}}
ingressClassName
:
{{
.Values.ingress.ingressClassName
}}
{{
- end -
}}
{{
- if .Values.ingress.tls
}}
tls
:
-
hosts
:
...
...
@@ -23,5 +26,5 @@ spec:
-
path
:
{{
.Values.ingress.path
}}
backend
:
serviceName
:
{{
include "influxdb.fullname" .
}}
servicePort
:
http
servicePort
:
{{
.Values.service.portName
}}
{{
- end -
}}
charts/influxdb2/templates/service.yaml
View file @
70eb8749
...
...
@@ -3,11 +3,37 @@ kind: Service
metadata
:
name
:
{{
template "influxdb.fullname" .
}}
labels
:
{{
- include "influxdb.labels" . | nindent 4
}}
{{
- with .Values.service.annotations
}}
annotations
:
{{
toYaml . | indent 4
}}
{{
- end
}}
spec
:
{{
- if (or (eq .Values.service.type "ClusterIP") (empty .Values.service.type))
}}
type
:
ClusterIP
{{
- if .Values.service.clusterIP
}}
clusterIP
:
{{
.Values.service.clusterIP
}}
{{
end
}}
{{
- else if eq .Values.service.type "LoadBalancer"
}}
type
:
{{
.Values.service.type
}}
{{
- if .Values.service.loadBalancerIP
}}
loadBalancerIP
:
{{
.Values.service.loadBalancerIP
}}
{{
- end
}}
{{
- if .Values.service.loadBalancerSourceRanges
}}
loadBalancerSourceRanges
:
{{
toYaml .Values.service.loadBalancerSourceRanges | indent 4
}}
{{
- end -
}}
{{
- else
}}
type
:
{{
.Values.service.type
}}
{{
- end
}}
ports
:
-
port
:
{{
.Values.service.port
}}
targetPort
:
http
-
name
:
{{
.Values.service.portName
}}
port
:
{{
.Values.service.port
}}
protocol
:
TCP
name
:
http
targetPort
:
{{
.Values.service.targetPort
}}
{{
if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort)))
}}
nodePort
:
{{
.Values.service.nodePort
}}
{{
end
}}
{{
- if .Values.extraExposePorts
}}
{{
- tpl (toYaml .Values.extraExposePorts) . | indent 4
}}
{{
- end
}}
selector
:
{{
- include "influxdb.selectorLabels" . | nindent 4
}}
charts/influxdb2/templates/statefulset.yaml
View file @
70eb8749
...
...
@@ -33,7 +33,7 @@ spec:
image
:
"
{{
.Values.image.repository
}}:v{{
.Chart.AppVersion
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
ports
:
-
name
:
http
-
name
:
{{
.Values.service.portName
}}
containerPort
:
8086
protocol
:
TCP
{{
- if .Values.securityContext
}}
...
...
charts/influxdb2/values.yaml
View file @
70eb8749
...
...
@@ -58,10 +58,18 @@ persistence:
size
:
50Gi
service
:
type
:
ClusterIP
port
:
80
targetPort
:
8086
annotations
:
{}
labels
:
{}
portName
:
http
ingress
:
enabled
:
false
# For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
# See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
# ingressClassName: nginx
tls
:
false
# secretName: my-tls-cert # only needed if tls above is true
hostname
:
influxdb.foobar.com
...
...
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