UNCLASSIFIED

Commit 784ca1f7 authored by Micah Nagel's avatar Micah Nagel 💰
Browse files

clean up?

parent c69c024f
Pipeline #355840 passed with stages
in 1 minute and 41 seconds
......@@ -2,7 +2,7 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny-egress
name: egress-default-deny
namespace: "{{ .Release.Namespace }}"
spec:
podSelector: {}
......
......@@ -3,7 +3,7 @@ apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
# Note: This is not used currently since we don't have an egress gateway
name: egress-gateway-allow-external-traffic
name: egress-gateway-traffic-to-external
namespace: "{{ .Release.Namespace }}"
spec:
egress:
......
{{- if .Values.networkPolicies.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: egress-virtual-services
namespace: "{{ .Release.Namespace }}"
spec:
# Since we don't know what apps may have VS and what ports they are on, allow to all namespaces, any ports
egress:
- to:
- namespaceSelector: {}
podSelector:
matchLabels:
istio: ingressgateway
policyTypes:
- Egress
{{- end }}
......@@ -2,7 +2,7 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny-ingress
name: ingress-default-deny
namespace: "{{ .Release.Namespace }}"
spec:
podSelector: {}
......
......@@ -2,7 +2,7 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: ingress-gateway-allow-external-traffic
name: ingress-external-traffic-to-gateway
namespace: "{{ .Release.Namespace }}"
spec:
ingress:
......
......@@ -2,7 +2,7 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: ingress-injection-enabled-ns
name: ingress-istio-injected-ns
namespace: "{{ .Release.Namespace }}"
spec:
ingress:
......@@ -15,7 +15,7 @@ spec:
protocol: TCP
podSelector:
matchLabels:
app: istiod
istio: pilot
policyTypes:
- Ingress
- Egress
......
......@@ -2,7 +2,7 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: gateway-istio-enabled-pods
name: ingress-istio-injected-pods
namespace: "{{ .Release.Namespace }}"
spec:
ingress:
......@@ -16,7 +16,7 @@ spec:
protocol: TCP
podSelector:
matchLabels:
app: istiod
istio: pilot
policyTypes:
- Ingress
- Egress
......
......@@ -2,7 +2,7 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: ingress-istiod-allow-metric-scraping
name: ingress-metric-scraping
namespace: "{{ .Release.Namespace }}"
spec:
ingress:
......@@ -18,7 +18,7 @@ spec:
protocol: TCP
podSelector:
matchLabels:
app: istiod
istio: pilot
policyTypes:
- Ingress
{{- end }}
......@@ -2,12 +2,12 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: ingress-allow-webhook-api
name: ingress-webhook
namespace: {{ .Release.Namespace }}
spec:
podSelector:
matchLabels:
app: istiod
istio: pilot
ingress:
- from:
- ipBlock:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment