UNCLASSIFIED

egress-virtual-services.yaml 441 Bytes
Newer Older
Joshua Carnes's avatar
Joshua Carnes committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{{- 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 }}