-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathciliumnetworkpolicy.yaml
54 lines (51 loc) · 1.29 KB
/
ciliumnetworkpolicy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: k8s-node-tagger
specs:
- description: Allow access to AWS STS API
endpointSelector:
matchLabels:
app: k8s-node-tagger
egress:
- toFQDNs:
- matchName: sts.amazonaws.com
- matchPattern: sts.*.amazonaws.com
toPorts:
- ports:
- port: "443"
protocol: TCP
- description: Allow access to AWS EC2 API
endpointSelector:
matchLabels:
app: k8s-node-tagger
egress:
- toFQDNs:
- matchName: ec2.amazonaws.com
- matchPattern: ec2.*.amazonaws.com
toPorts:
- ports:
- port: "443"
protocol: TCP
- description: Allow access to GCP GCE instance metadata service
endpointSelector:
matchLabels:
app: k8s-node-tagger
egress:
- toCIDR:
- 169.254.169.254/32
toPorts:
- ports:
- port: "80"
protocol: TCP
- description: Allow access to GCP GCE API
endpointSelector:
matchLabels:
app: k8s-node-tagger
egress:
- toFQDNs:
- matchName: compute.googleapis.com
toPorts:
- ports:
- port: "443"
protocol: TCP