cache policy added
This commit is contained in:
parent
5ed158a69b
commit
cc93505258
1 changed files with 16 additions and 0 deletions
16
network-policies/cacheservicepolicy.yaml
Normal file
16
network-policies/cacheservicepolicy.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: cache-allow-cart
|
||||
namespace: default
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: redis-cart
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
app: cartservice
|
||||
ports:
|
||||
- port: 6379
|
Loading…
Add table
Add a link
Reference in a new issue