Skip to content

Instantly share code, notes, and snippets.

@yanw2
Last active September 22, 2020 02:36
Secure Redis Server
---
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: redis-policy
namespace: namespace-a
labels:
target: app-a-1
spec:
selector:
matchLabels:
app: redis
rules:
- from:
- source:
namespaces: ["namespace-a"]
- to:
operation:
ports: ["6379"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment