diff --git a/chart/Chart.yaml b/chart/Chart.yaml index df56b60d04c6c124950c9676b8ca6caca33324d7..143e0cb764a245ee3501e4c0f3592adeb4cd14e8 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: twistlock -version: 0.0.4-bb.1 +version: 0.0.4-bb.2 appVersion: 21.04.412 diff --git a/chart/templates/network-policy/ingress-all-ns.yml b/chart/templates/network-policy/ingress-all-ns.yml new file mode 100644 index 0000000000000000000000000000000000000000..49f8bba22cd5c54f6cdfa7187f3ed304e2f651af --- /dev/null +++ b/chart/templates/network-policy/ingress-all-ns.yml @@ -0,0 +1,16 @@ +{{- if .Values.networkPolicies.enabled }} +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: ingress-allow-cluster + namespace: "{{ .Release.Namespace }}" +spec: + ingress: + - from: + - namespaceSelector: {} # all namespaces for now + ports: + - port: 8084 # communications port + podSelector: {} # all pods + policyTypes: + - Ingress +{{- end }}