File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ {{- if .Values.networkPolicy.enabled }}
2+ apiVersion : networking.k8s.io/v1
3+ kind : NetworkPolicy
4+ metadata :
5+ name : {{ template "kepler.fullname" . }}-network-policy
6+ namespace : {{ include "kepler.namespace" . }}
7+ spec :
8+ egress :
9+ {{- with .Values.networkPolicy.egress }}
10+ {{- toYaml . | nindent 4 }}
11+ {{- end }}
12+ ingress :
13+ {{- with .Values.networkPolicy.ingress }}
14+ {{- toYaml . | nindent 4 }}
15+ {{- end }}
16+ podSelector :
17+ matchLabels :
18+ {{- include "kepler.selectorLabels" . | nindent 6 }}
19+ policyTypes :
20+ - Egress
21+ - Ingress
22+ {{- end }}
Original file line number Diff line number Diff line change @@ -118,6 +118,15 @@ serviceMonitor:
118118 labels : {}
119119 annotations : {}
120120
121+ # A networkPolicy for Kepler
122+ networkPolicy :
123+ enabled : false
124+ ingress :
125+ - ports :
126+ - protocol : TCP
127+ port : 28282
128+ egress : []
129+
121130# Additional labels to add to all resources
122131labels : {}
123132
You can’t perform that action at this time.
0 commit comments