Skip to content

Instantly share code, notes, and snippets.

@mesmacosta
Created July 19, 2020 18:33
Show Gist options
  • Select an option

  • Save mesmacosta/91e62dc027eec3e07dfcc5ac2eafde94 to your computer and use it in GitHub Desktop.

Select an option

Save mesmacosta/91e62dc027eec3e07dfcc5ac2eafde94 to your computer and use it in GitHub Desktop.
export PILOT_POD_IP=$(kubectl -n istio-system get pod -l istio=pilot -o jsonpath='{.items[0].status.podIP}')
export POLICY_POD_IP=$(kubectl -n istio-system get pod -l istio=mixer -o jsonpath='{.items[0].status.podIP}')
export TELEMETRY_POD_IP=$(kubectl -n istio-system get pod -l istio-mixer-type=telemetry -o jsonpath='{.items[0].status.podIP}')
echo "Pilot: $PILOT_POD_IP"
echo "Istio-Policy (mixer): $POLICY_POD_IP"
echo "Istio-Telemetry (mixer): $TELEMETRY_POD_IP"
HELM_DIR="istio-${ISTIO_VERSION}/install/kubernetes/helm/istio"
helm template istio-remote $HELM_DIR \
--namespace istio-system \
--values $HELM_DIR/values-istio-remote.yaml \
--set global.remotePilotAddress=${PILOT_POD_IP} \
--set global.remotePolicyAddress=${POLICY_POD_IP} \
--set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} > \
istio_remote.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment