Skip to content

Commit cc05121

Browse files
tommytroenybelMekk
andcommitted
refactor: add fqdn netpol
Co-authored-by: ybelmekk <[email protected]>
1 parent 4ead9ee commit cc05121

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

charts/templates/fqdnnetpol.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: networking.gke.io/v1alpha3
2+
kind: FQDNNetworkPolicy
3+
metadata:
4+
name: "{{ .Release.Name }}-fqdn"
5+
labels:
6+
{{ include "v13s.labels" . | nindent 4 }}
7+
spec:
8+
egress:
9+
- ports:
10+
- port: 80
11+
protocol: TCP
12+
to:
13+
- fqdns:
14+
- metadata.google.internal
15+
- ports:
16+
- port: 443
17+
protocol: TCP
18+
to:
19+
- fqdns:
20+
- private.googleapis.com
21+
podSelector:
22+
matchLabels:
23+
{{ include "v13s.selectorLabels" . | nindent 6 }}
24+
policyTypes:
25+
- Egress

0 commit comments

Comments
 (0)