View deployment of pods
kubectl get pods -n istio-system
NAME READY STATUS RESTARTS AGE
istio-citadel-f78ff689-7kk7z 1/1 Running 0 12d
For more information see the default configuration file (usually used in the production environment)
istioctl profile dump default
Install demo profile
istioctl manifest apply --set profile=demo
See all svc
kubectl get svc -n istio-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
istio-citadel ClusterIP 10.109.206.48 8060/TCP,15014/TCP 12d
Check the specified svc, such as cluster running prometheus service.
kubectl -n istio-system get svc prometheus
Check the environment variable INGRESS_HOST and INGRESS_PORT. Ensure that the environment variable value is valid, the command is as follows:
perl echo INGRESS_HOST=$INGRESS_HOST, INGRESS_PORT=$INGRESS_PORT
Check other Istio ingress gateways are not defined on the same port:
kubectl get gateway --all-namespaces
Check does not define Kubernetes Ingress resources on the same IP and port:
kubectl get ingress --all-namespaces
Run the following command to apply the virtual services:
kubectl apply -f samples/bookinfo/networking/virtual-service-all-v1.yaml
Use the following command to display the routing defined:
kubectl get virtualservices -o yaml
If confirmed reviews rules have been created:
kubectl get virtualservice reviews -o yaml
You can also use the following command to display the appropriate subset definition:
kubectl get destinationrules -o yaml
Remove any kubectl port-forward the program is still running:
killall kubectl