mirror of https://github.com/istio/istio.io.git
* Sync #14157 update into Chinese * Fix indent
This commit is contained in:
parent
4f890738b7
commit
9f76815557
|
@ -302,19 +302,19 @@ $ kubectl apply -f - <<EOF
|
|||
apiVersion: security.istio.io/v1beta1
|
||||
kind: AuthorizationPolicy
|
||||
metadata:
|
||||
name: productpage-viewer
|
||||
namespace: default
|
||||
name: productpage-viewer
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: productpage
|
||||
action: ALLOW
|
||||
rules:
|
||||
- from:
|
||||
- source:
|
||||
principals:
|
||||
- cluster.local/ns/default/sa/sleep
|
||||
- cluster.local/$GATEWAY_SERVICE_ACCOUNT
|
||||
selector:
|
||||
matchLabels:
|
||||
app: productpage
|
||||
action: ALLOW
|
||||
rules:
|
||||
- from:
|
||||
- source:
|
||||
principals:
|
||||
- cluster.local/ns/default/sa/sleep
|
||||
- cluster.local/$GATEWAY_SERVICE_ACCOUNT
|
||||
EOF
|
||||
{{< /text >}}
|
||||
|
||||
|
@ -374,22 +374,23 @@ $ kubectl apply -f - <<EOF
|
|||
apiVersion: security.istio.io/v1beta1
|
||||
kind: AuthorizationPolicy
|
||||
metadata:
|
||||
name: productpage-viewer
|
||||
namespace: default
|
||||
name: productpage-viewer
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
istio.io/gateway-name: bookinfo-productpage
|
||||
action: ALLOW
|
||||
rules:
|
||||
- from:
|
||||
- source:
|
||||
principals:
|
||||
- cluster.local/ns/default/sa/sleep
|
||||
- cluster.local/$GATEWAY_SERVICE_ACCOUNT
|
||||
to:
|
||||
- operation:
|
||||
methods: ["GET"]
|
||||
targetRef:
|
||||
kind: Gateway
|
||||
group: gateway.networking.k8s.io
|
||||
name: bookinfo-productpage
|
||||
action: ALLOW
|
||||
rules:
|
||||
- from:
|
||||
- source:
|
||||
principals:
|
||||
- cluster.local/ns/default/sa/sleep
|
||||
- cluster.local/$GATEWAY_SERVICE_ACCOUNT
|
||||
to:
|
||||
- operation:
|
||||
methods: ["GET"]
|
||||
EOF
|
||||
{{< /text >}}
|
||||
|
||||
|
|
|
@ -420,9 +420,10 @@ metadata:
|
|||
name: "jwt-example"
|
||||
namespace: foo
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
istio.io/gateway-name: httpbin-gateway
|
||||
targetRef:
|
||||
kind: Gateway
|
||||
group: gateway.networking.k8s.io
|
||||
name: httpbin-gateway
|
||||
jwtRules:
|
||||
- issuer: "testing@secure.istio.io"
|
||||
jwksUri: "{{< github_file >}}/security/tools/jwt/samples/jwks.json"
|
||||
|
@ -541,9 +542,10 @@ metadata:
|
|||
name: "frontend-ingress"
|
||||
namespace: foo
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
istio.io/gateway-name: httpbin-gateway
|
||||
targetRef:
|
||||
kind: Gateway
|
||||
group: gateway.networking.k8s.io
|
||||
name: httpbin-gateway
|
||||
action: DENY
|
||||
rules:
|
||||
- from:
|
||||
|
@ -607,9 +609,10 @@ metadata:
|
|||
name: "frontend-ingress"
|
||||
namespace: foo
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
istio.io/gateway-name: httpbin-gateway
|
||||
targetRef:
|
||||
kind: Gateway
|
||||
group: gateway.networking.k8s.io
|
||||
name: httpbin-gateway
|
||||
action: DENY
|
||||
rules:
|
||||
- from:
|
||||
|
|
|
@ -377,9 +377,10 @@ metadata:
|
|||
name: ingress-policy
|
||||
namespace: foo
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
istio.io/gateway-name: httpbin-gateway
|
||||
targetRef:
|
||||
kind: Gateway
|
||||
group: gateway.networking.k8s.io
|
||||
name: httpbin-gateway
|
||||
action: ALLOW
|
||||
rules:
|
||||
- from:
|
||||
|
@ -398,9 +399,10 @@ metadata:
|
|||
name: ingress-policy
|
||||
namespace: foo
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
istio.io/gateway-name: httpbin-gateway
|
||||
targetRef:
|
||||
kind: Gateway
|
||||
group: gateway.networking.k8s.io
|
||||
name: httpbin-gateway
|
||||
action: ALLOW
|
||||
rules:
|
||||
- from:
|
||||
|
@ -524,9 +526,10 @@ metadata:
|
|||
name: ingress-policy
|
||||
namespace: foo
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
istio.io/gateway-name: httpbin-gateway
|
||||
targetRef:
|
||||
kind: Gateway
|
||||
group: gateway.networking.k8s.io
|
||||
name: httpbin-gateway
|
||||
action: ALLOW
|
||||
rules:
|
||||
- from:
|
||||
|
@ -545,9 +548,10 @@ metadata:
|
|||
name: ingress-policy
|
||||
namespace: foo
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
istio.io/gateway-name: httpbin-gateway
|
||||
targetRef:
|
||||
kind: Gateway
|
||||
group: gateway.networking.k8s.io
|
||||
name: httpbin-gateway
|
||||
action: ALLOW
|
||||
rules:
|
||||
- from:
|
||||
|
@ -630,9 +634,10 @@ metadata:
|
|||
name: ingress-policy
|
||||
namespace: foo
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
istio.io/gateway-name: httpbin-gateway
|
||||
targetRef:
|
||||
kind: Gateway
|
||||
group: gateway.networking.k8s.io
|
||||
name: httpbin-gateway
|
||||
action: DENY
|
||||
rules:
|
||||
- from:
|
||||
|
@ -651,9 +656,10 @@ metadata:
|
|||
name: ingress-policy
|
||||
namespace: foo
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
istio.io/gateway-name: httpbin-gateway
|
||||
targetRef:
|
||||
kind: Gateway
|
||||
group: gateway.networking.k8s.io
|
||||
name: httpbin-gateway
|
||||
action: DENY
|
||||
rules:
|
||||
- from:
|
||||
|
|
Loading…
Reference in New Issue