Complete the code to install Istio's base components using istioctl.
istioctl install --set profile=[1] -yThe default profile installs the standard Istio components suitable for most use cases.
Complete the command to label the default namespace for automatic sidecar injection.
kubectl label namespace default istio-injection=[1]Setting istio-injection=enabled enables automatic sidecar injection in the namespace.
Fix the error in the command to check Istio pods in the istio-system namespace.
kubectl get pods -n [1]Istio components run in the istio-system namespace by default.
Fill both blanks to create a VirtualService that routes traffic to service v1.
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: my-service
spec:
hosts:
- my-service
http:
- route:
- destination:
host: my-service
subset: [1]
weight: [2]The subset v1 routes to version 1 of the service, and weight 100 sends all traffic there.
Fill all three blanks to define a DestinationRule with TLS mode set to ISTIO_MUTUAL.
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: my-service
spec:
host: my-service
trafficPolicy:
tls:
mode: [1]
clientCertificate: [2]
privateKey: [3]The TLS mode ISTIO_MUTUAL enables mutual TLS. The client certificate and private key paths are standard locations in Istio sidecars.