WIP: Implementing Network Policy #207
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.networkpolicy.enabled -}}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: NetworkPolicy
|
kind: NetworkPolicy
|
||||||
metadata:
|
metadata:
|
||||||
@@ -12,4 +13,4 @@ spec:
|
|||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "gitea.netpolLabels" . | nindent 10 }}
|
{{- include "gitea.netpolLabels" . | nindent 10 }}
|
||||||
- ipBlock:
|
- ipBlock:
|
||||||
cidr: 10.0.0.0/8
|
cidr: {{ .Values.networkpolicy.cidr }}
|
Reference in New Issue
Block a user