mirror of https://github.com/istio/istio.io.git
Add warning for network policy enforcement (#7967)
* Add warning for network policy enforcement * Address review feedback
This commit is contained in:
parent
df5ea809a6
commit
122ab65b1b
|
|
@ -474,6 +474,13 @@ external service.
|
|||
EOF
|
||||
{{< /text >}}
|
||||
|
||||
{{< warning >}}
|
||||
[Network policies](https://kubernetes.io/docs/concepts/services-networking/network-policies/)
|
||||
are implemented by the network plugin in your Kubernetes cluster.
|
||||
Depending on your test cluster, the traffic may not be blocked in the following
|
||||
step.
|
||||
{{< /warning >}}
|
||||
|
||||
1. Resend the previous HTTPS request to [https://edition.cnn.com/politics](https://edition.cnn.com/politics). Now it
|
||||
should fail since the traffic is blocked by the network policy. Note that the `sleep` pod cannot bypass
|
||||
`istio-egressgateway`. The only way it can access `edition.cnn.com` is by using an Istio sidecar proxy and by
|
||||
|
|
|
|||
|
|
@ -92,7 +92,8 @@ snip_apply_kubernetes_network_policies_7
|
|||
|
||||
# Verify failure
|
||||
#_verify_contains snip_apply_kubernetes_network_policies_8 "port 443 failed: Connection timed out"
|
||||
# TODO: ^^^ this check is not working - gets 200 repsonse
|
||||
# TODO: ^^^ this check fails as the test cluster doesn't have a network plugin
|
||||
# installed which can enforce network policies.
|
||||
|
||||
# Enable sidecar injection
|
||||
snip_apply_kubernetes_network_policies_9
|
||||
|
|
|
|||
Loading…
Reference in New Issue