Istio modify IngressGateway network type

Ingressgateway default network type is LoadBanlancer, in the absence of external load balancing can be modified to NodePort.

 

1, it modifies

kubectl patch service istio-ingressgateway -n istio-system -p '{"spec":{"type":"NodePort"}}'

2, see ID and a port

export INGRESS_HOST=$(kubectl get po -l istio=ingressgateway -n istio-system -o 'jsonpath={.items[0].status.hostIP}')
export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}')

3, access mode

IP + port may be accessed by the node may be manually linked to a LB come

Guess you like

Origin www.cnblogs.com/assion/p/11326088.html