新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: apod-api
|
||||
labels:
|
||||
kiamol: ch16
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: apod-api
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
app: apod-web
|
||||
ports:
|
||||
- port: api
|
||||
Reference in New Issue
Block a user