Skip to content

Commit bc36254

Browse files
authored
Merge pull request #44503 from mhash17/patch-2
Update networkpolicy.yaml - match yaml code formatting
2 parents cfc9eb0 + f04d1d6 commit bc36254

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

content/en/examples/service/networking/networkpolicy.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,28 @@ spec:
88
matchLabels:
99
role: db
1010
policyTypes:
11-
- Ingress
12-
- Egress
11+
- Ingress
12+
- Egress
1313
ingress:
14-
- from:
15-
- ipBlock:
16-
cidr: 172.17.0.0/16
17-
except:
18-
- 172.17.1.0/24
19-
- namespaceSelector:
20-
matchLabels:
21-
project: myproject
22-
- podSelector:
23-
matchLabels:
24-
role: frontend
25-
ports:
26-
- protocol: TCP
27-
port: 6379
14+
- from:
15+
- ipBlock:
16+
cidr: 172.17.0.0/16
17+
except:
18+
- 172.17.1.0/24
19+
- namespaceSelector:
20+
matchLabels:
21+
project: myproject
22+
- podSelector:
23+
matchLabels:
24+
role: frontend
25+
ports:
26+
- protocol: TCP
27+
port: 6379
2828
egress:
29-
- to:
30-
- ipBlock:
31-
cidr: 10.0.0.0/24
32-
ports:
33-
- protocol: TCP
34-
port: 5978
29+
- to:
30+
- ipBlock:
31+
cidr: 10.0.0.0/24
32+
ports:
33+
- protocol: TCP
34+
port: 5978
3535

0 commit comments

Comments
 (0)