gke - istio installation and deployment httpbin.

I install istio on a gke cluster using 

istioctl install --set profile=demo --skip-confirmation 

From the docs, it is also important to enable "--workload-policies=allow-net-admin" using  

gcloud container clusters update autopilot-cluster-1 --workload-policies=allow-net-admin --region=australia-southeast1

After the installation, a public ip address has been created 


Then you can see a public ip ingress has been created.


Then goto istio samples, httpbin then deploy the gateway and httpbin. You don't need to change anything here.


Using a browser, go the ip address return by this command - "kubectl get svc/istio-ingressgateway -n istio-system"



Potential issue: 

You may get error such as "Error creating: admission webhook "warden-validating.common-webhooks.networking.gke.io" denied the request: GKE Warden rejected the request because it violates one or more constraint"

Please enable workload policies - NET_ADMIN

Curious to see what happens if i delete the service by running 

kubectl delete svc/istio-ingressgateway -n istio-system

Then my public ingress ip had been removed from gcp.

Uploading: 41208 of 41208 bytes uploaded.





Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type