Created
July 19, 2020 18:33
-
-
Save mesmacosta/91e62dc027eec3e07dfcc5ac2eafde94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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