Complete the code to label the namespace for Istio injection.
kubectl label namespace [1] istio-injection=enabledLabeling the namespace 'myapp' enables automatic sidecar injection by Istio for pods in that namespace.
Complete the command to check the status of Istio pods in the istio-system namespace.
kubectl get pods -n [1]The Istio components run in the 'istio-system' namespace, so checking pods there shows their status.
Fix the error in the command to view logs of the Istio proxy sidecar container named 'istio-proxy' in pod 'myapp-123'.
kubectl logs myapp-123 -c [1]
The container name for the Istio sidecar proxy is 'istio-proxy'. Using this name shows the correct logs.
Fill both blanks to create a ServiceEntry resource that allows external access to example.com on port 80.
apiVersion: networking.istio.io/v1beta1 kind: ServiceEntry metadata: name: example-external spec: hosts: - [1] ports: - number: [2] name: http protocol: HTTP
The host should be 'example.com' and the port number 80 for HTTP access.
Fill all three blanks to create a VirtualService that routes traffic to service 'reviews' on port 9080 with prefix '/v1'.
apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: name: reviews-route spec: hosts: - [1] http: - match: - uri: prefix: [2] route: - destination: host: [3] port: number: 9080
The host in 'hosts' is the full service domain 'reviews.default.svc.cluster.local'. The URI prefix is '/v1'. The destination host is 'reviews'.