Completed upto lesson 28
This commit is contained in:
17
lab/lesson-26-answer.yaml
Normal file
17
lab/lesson-26-answer.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: security.istio.io/v1
|
||||
kind: AuthorizationPolicy
|
||||
metadata:
|
||||
name: payments-api-only-frontend
|
||||
namespace: payments-mesh
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: payments-api
|
||||
action: ALLOW
|
||||
rules:
|
||||
- from:
|
||||
- source:
|
||||
principals: ["cluster.local/ns/web-mesh/sa/frontend"]
|
||||
to:
|
||||
- operation:
|
||||
ports: ["8080"]
|
||||
Reference in New Issue
Block a user