Skip to content

Commit 6e9da71

Browse files
add patch for networkpolicy
1 parent 9e57c01 commit 6e9da71

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

apps/homer/components/istio/kustomization.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,17 @@ apiVersion: kustomize.config.k8s.io/v1alpha1
33
kind: Component
44
resources:
55
- istio-virtualservice.yaml
6+
patches:
7+
- target:
8+
kind: NetworkPolicy
9+
name: homer
10+
patch: |-
11+
- op: add
12+
path: "/spec/ingress/0/from/-"
13+
value:
14+
namespaceSelector:
15+
matchLabels:
16+
kubernetes.io/metadata.name: "istio-system"
17+
podSelector:
18+
matchLabels:
19+
istio: "ingressgateway"

0 commit comments

Comments
 (0)