Skip to content

Commit 0a6b1e5

Browse files
authored
Add netpol for job creating dbs (#159)
* Add netpol for job creating dbs * add the netpol ... * typo * list * Add ingress * use selector labels * Bump chart
1 parent 0f62cb8 commit 0a6b1e5

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

charts/neo4jv5-internal/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.31
18+
version: 0.0.32
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: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: NetworkPolicy
3+
metadata:
4+
name: "{{.Release.Name}}-job"
5+
namespace: {{ .Release.Namespace }}
6+
labels:
7+
{{- include "neo4j-lke.labels" . | nindent 4 }}
8+
spec:
9+
# https://editor.cilium.io/?id=rGvdpkpvU1mnl2Ct
10+
podSelector:
11+
matchLabels:
12+
{{- include "neo4j-lke.selectorLabels" . | nindent 12 }}
13+
policyTypes:
14+
- Egress
15+
- Ingress
16+
ingress:
17+
- from:
18+
- podSelector:
19+
matchLabels:
20+
{{- include "neo4j-lke.selectorLabels" . | nindent 12 }}
21+
egress:
22+
- to:
23+
- podSelector:
24+
matchLabels:
25+
{{- include "neo4j-lke.selectorLabels" . | nindent 12 }}
26+
ports:
27+
- port: 7687

charts/neo4jv5-internal/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# https://github.com/neo4j/helm-charts/blob/dev/neo4j/values.yaml
22

33
neo4j:
4+
disableLookups: true
45

56
securityContext:
67
runAsNonRoot: true

0 commit comments

Comments
 (0)