1
+ {
2
+ "cniVersion": "0.2.0",
3
+ "name": "{{NAME}}",
4
+ "type": "{{TYPE}}",
5
+ "master": "Ethernet",
6
+ "capabilities": {
7
+ "portMappings": true,
8
+ "dns" : true
9
+ },
10
+ "ipam": {
11
+ "environment": "azure",
12
+ "subnet": "192.168.0.0/24",
13
+ "routes": [
14
+ {
15
+ "GW": "192.168.0.2"
16
+ }
17
+ ]
18
+ },
19
+ "dns": {
20
+ "Nameservers": [
21
+ "{{DNSSERVER}}"
22
+ ],
23
+ "Search": [
24
+ "svc.cluster.local"
25
+ ]
26
+ },
27
+ "optionalFlags" : {
28
+ "localRoutedPortMapping" : true,
29
+ "allowAclPortMapping" : true,
30
+ "enableDualStack" : true,
31
+ "gatewayFromAdditionalRoutes" : true
32
+ },
33
+ "additionalRoutes": [
34
+ {
35
+ "GW": "10::2",
36
+ "Dst": "::/0"
37
+ }
38
+ ],
39
+ "AdditionalArgs": [
40
+ {
41
+ "Name": "EndpointPolicy",
42
+ "Value": {
43
+ "Type": "OutBoundNAT",
44
+ "Settings": {
45
+ "Exceptions": [
46
+ "192.168.0.0/24",
47
+ "{{LOCAL_ENDPOINT}}/32"
48
+ ]
49
+ }
50
+ }
51
+ }
52
+
53
+ ,{
54
+ "Name": "EndpointPolicy",
55
+ "Value": {
56
+ "Type": "OutBoundNAT",
57
+ "Settings": {
58
+ "Exceptions": [
59
+ "10::0/120",
60
+ "{{LOCAL_ENDPOINT_IPV6}}/128"
61
+ ]
62
+ }
63
+ }
64
+ }
65
+
66
+ ,{
67
+ "Name": "EndpointPolicy",
68
+ "Value": {
69
+ "Type":"ACL",
70
+ "Settings": {
71
+ "Action": "Allow",
72
+ "Protocols": "6",
73
+ "LocalPorts": "1111",
74
+ "Direction": "In",
75
+ "Priority": 101
76
+ }
77
+ }
78
+ }
79
+ ,{
80
+ "Name": "EndpointPolicy",
81
+ "Value": {
82
+ "Type":"ACL",
83
+ "Settings": {
84
+ "RemoteAddresses" : "{{LOCAL_ENDPOINT}}",
85
+ "RemotePorts" : "31002",
86
+ "Action": "Allow",
87
+ "Protocols": "6",
88
+ "Direction": "Out",
89
+ "Priority": 200
90
+ }
91
+ }
92
+ }
93
+ ,{
94
+ "Name": "EndpointPolicy",
95
+ "Value": {
96
+ "Type":"ACL",
97
+ "Settings": {
98
+ "RemoteAddresses" : "{{LOCAL_ENDPOINT_IPV6}}",
99
+ "RemotePorts" : "31002",
100
+ "Action": "Allow",
101
+ "Protocols": "6",
102
+ "Direction": "Out",
103
+ "Priority": 200
104
+ }
105
+ }
106
+ }
107
+ ,{
108
+ "Name": "EndpointPolicy",
109
+ "Value": {
110
+ "Type":"ACL",
111
+ "Settings": {
112
+ "RemoteAddresses" : "{{INFRA_PREFIX}}",
113
+ "Action": "Block",
114
+ "Direction": "Out",
115
+ "Priority": 1998
116
+ }
117
+ }
118
+ }
119
+ ,{
120
+ "Name": "EndpointPolicy",
121
+ "Value": {
122
+ "Type":"ACL",
123
+ "Settings": {
124
+ "RemoteAddresses" : "{{INFRA_PREFIX_IPV6}}",
125
+ "Action": "Block",
126
+ "Direction": "Out",
127
+ "Priority": 1998
128
+ }
129
+ }
130
+ }
131
+ ,{
132
+ "Name": "EndpointPolicy",
133
+ "Value": {
134
+ "Type":"ACL",
135
+ "Settings": {
136
+ "RemoteAddresses" : "192.168.0.0/24",
137
+ "Action": "Block",
138
+ "Direction": "Out",
139
+ "Priority": 1999
140
+ }
141
+ }
142
+ }
143
+ ,{
144
+ "Name": "EndpointPolicy",
145
+ "Value": {
146
+ "Type":"ACL",
147
+ "Settings": {
148
+ "RemoteAddresses" : "10::0/120",
149
+ "Action": "Block",
150
+ "Direction": "Out",
151
+ "Priority": 1999
152
+ }
153
+ }
154
+ }
155
+ ,{
156
+ "Name": "EndpointPolicy",
157
+ "Value": {
158
+ "Type":"ACL",
159
+ "Settings": {
160
+ "Action": "Allow",
161
+ "Direction": "Out",
162
+ "Priority": 2000
163
+ }
164
+ }
165
+ }
166
+
167
+ ]
168
+ }
0 commit comments