support influxdb with ingress (#5099)

* support influxdb with ingress and increment version to 0.8.5

* don't default value for SSL cert and increment version to 0.9.1
This commit is contained in:
Mung
2018-05-18 08:44:51 -07:00
committed by k8s-ci-robot
parent b2c9f8514d
commit 5c4eacb944
3 changed files with 38 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: influxdb
version: 0.9.0
version: 0.9.1
appVersion: 1.4
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
+28
View File
@@ -0,0 +1,28 @@
{{- if .Values.ingress.enabled -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ template "influxdb.fullname" . }}
labels:
app: {{ template "influxdb.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
{{ toYaml .Values.ingress.annotations | indent 4 }}
spec:
{{- if .Values.ingress.tls }}
tls:
- hosts:
- {{ .Values.ingress.hostname | quote }}
secretName: {{ .Values.ingress.secretName }}
{{- end }}
rules:
- host: {{ .Values.ingress.hostname }}
http:
paths:
- path: /
backend:
serviceName: {{ template "influxdb.fullname" . }}
servicePort: 8086
{{- end -}}
+9
View File
@@ -86,6 +86,15 @@ resources:
memory: 16Gi
cpu: 8
ingress:
enabled: false
tls: false
# secretName: my-tls-cert # only needed if tls above is true
hostname: influxdb.foobar.com
annotations:
# kubernetes.io/ingress.class: "nginx"
# kubernetes.io/tls-acme: "true"
## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##