cache policy added

This commit is contained in:
Edward 2020-05-24 20:38:08 -07:00
parent 5ed158a69b
commit cc93505258

View 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