This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 84
/
core-dns.yaml
52 lines (52 loc) · 1.6 KB
/
core-dns.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This service is intended for clients running in kubernetes to connect to the
# cluster. This distinguishes it from discovery-lb which is about cluster formation
# and internal communication.
apiVersion: v1
kind: Service
metadata:
name: {{ template "neo4j.fullname" . }}
labels:
neo4j.com/bolt: "true"
neo4j.com/http: "true"
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
app.kubernetes.io/name: {{ template "neo4j.name" . }}
app.kubernetes.io/component: core
{{- with .Values.core.service.labels }}
{{ toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.core.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if (or (eq .Values.core.service.type "ClusterIP") (empty .Values.core.service.type)) }}
type: ClusterIP
clusterIP: None
{{- else if eq .Values.core.service.type "LoadBalancer" }}
type: LoadBalancer
{{- with .Values.core.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{ toYaml . | nindent 4 }}
{{- end -}}
{{- else }}
type: {{ .Values.core.service.type }}
{{- end }}
ports:
- name: tcp-http
port: 7474
targetPort: 7474
- name: tcp-bolt
port: 7687
targetPort: 7687
- name: tcp-https
port: 7473
targetPort: 7473
- name: tcp-backup
port: 6362
targetPort: 6362
selector:
app.kubernetes.io/name: {{ template "neo4j.name" . }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/component: core