[zh] Sync #14157 update into Chinese with indent fix (#14169)

* Sync #14157 update into Chinese

* Fix indent
This commit is contained in:
Wilson Wu 2023-11-16 16:35:05 +08:00 committed by GitHub
parent 4f890738b7
commit 9f76815557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 64 additions and 54 deletions

View File

@ -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 >}}

View File

@ -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:

View File

@ -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: