Add nginx-policy.yaml.

This commit is contained in:
TAKAHASHI Shuuji 2020-08-09 16:20:47 +09:00
parent 476ffc4b18
commit e627a4141d
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: access-nginx
spec:
podSelector:
matchLabels:
app: nginx
ingress:
- from:
- podSelector:
matchLabels:
access: "true"