Just follow these simple steps:
- We will change the mode from mode: REGISTRY_ONLY to mode: ALLOW_ANY for the purpose of the next chapter's lab exercises:
$ kubectl -n istio-system get cm istio -o yaml | sed 's/mode: REGISTRY_ONLY/mode: ALLOW_ANY/g' | kubectl replace -n istio-system -f -
configmap/istio replaced
- Double-check whether mode: ALLOW_ANY has been set:
$ kubectl -n istio-system get cm istio -o yaml | grep -m 1 -o "mode: ALLOW_ANY"
mode: ALLOW_ANY
- We will delete the virtual services for httpbin as we will recreate them in the next chapter:
$ kubectl -n istio-lab delete -f 22-create-httpbin-virtual-service.yaml
virtualservice.networking.istio.io "httpbin" deleted
With this, we have made changes in our setup so that we can show Istio's security features in the next chapter.