Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Commit 245f103

Browse files
committed
ingress kibana v0.0.3
1 parent 4fb5572 commit 245f103

File tree

4 files changed

+58
-32
lines changed

4 files changed

+58
-32
lines changed

charts/elastic/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.0.2
18+
version: 0.0.3
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{{- if .Values.ingress.enabled -}}
2+
{{- $svcPort := .Values.kibana.service.port -}}
3+
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
4+
apiVersion: networking.k8s.io/v1beta1
5+
{{- else -}}
6+
apiVersion: extensions/v1beta1
7+
{{- end }}
8+
kind: Ingress
9+
metadata:
10+
name: {{ .Release.Name }}-kibana
11+
labels:
12+
{{- include "kibana.labels" . | nindent 4 }}
13+
{{- with .Values.kibana.ingress.annotations }}
14+
annotations:
15+
{{ toYaml . | indent 4 }}
16+
{{- end }}
17+
spec:
18+
{{- if .Values.ingress.tls }}
19+
tls:
20+
- hosts:
21+
- {{ .Values.ingress.hostname | quote }}
22+
{{- end }}
23+
rules:
24+
- host: {{ .Values.ingress.hostname | quote }}
25+
http:
26+
paths:
27+
- path: /
28+
backend:
29+
serviceName: {{ .Release.Name }}-kibana
30+
servicePort: {{ $svcPort }}
31+
{{- end }}

charts/elastic/values.schema.json

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,28 @@
1414
}
1515
}
1616
},
17-
"kibana": {
18-
"description": "postgres specific configuration",
17+
"ingress": {
1918
"type": "object",
19+
"form": true,
20+
"title": "Ingress Details",
2021
"properties": {
21-
"ingress": {
22-
"type": "object",
23-
"form": true,
24-
"title": "Ingress Details",
25-
"properties": {
26-
"hostname": {
27-
"type": "string",
28-
"form": true,
29-
"title": "Hostname",
30-
"x-form": {
31-
"hidden": true
32-
},
33-
"x-generated": {
34-
"type": "externalDNS",
35-
"scope": "jupyter",
36-
"name": "ihm"
37-
}
22+
"hostname": {
23+
"type": "string",
24+
"form": true,
25+
"title": "Hostname",
26+
"x-form": {
27+
"hidden": true
28+
},
29+
"x-generated": {
30+
"type": "externalDNS",
31+
"scope": "jupyter",
32+
"name": "ihm"
3833
}
39-
}
4034
}
4135
}
4236
}
37+
38+
4339
}
4440

4541
}

charts/elastic/values.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ elasticsearch:
33
sysctlInitContainer:
44
enabled: false
55

6-
kibana:
7-
ingress:
8-
enabled: true
9-
tls: true
10-
annotations:
11-
kubernetes.io/ingress.class: nginx
12-
# kubernetes.io/tls-acme: "true"
13-
hostname: chart-example.local
14-
# - secretName: chart-example-tls
15-
# hosts:
16-
# - chart-example.local
6+
ingress:
7+
enabled: true
8+
tls: true
9+
annotations:
10+
kubernetes.io/ingress.class: nginx
11+
# kubernetes.io/tls-acme: "true"
12+
hostname: chart-example.local
13+
# - secretName: chart-example-tls
14+
# hosts:
15+
# - chart-example.local

0 commit comments

Comments
 (0)