Last active
December 26, 2017 16:22
-
-
Save garystafford/259149dbfa7f0d4f509d3352a5f614d2 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
# apply voter api resources part 3 | |
# manual sidecar injection with istioctl kube-inject | |
# istio egress of mongodb and amqp protocols | |
IP_RANGES="10.12.0.0/14,10.15.240.0/20" | |
# candidate service | |
istioctl kube-inject –kubeconfig "~/.kube/config" \ | |
-f ./services/candidate-deployment.yaml \ | |
--includeIPRanges=$IP_RANGES > \ | |
candidate-deployment-istio.yaml \ | |
&& kubectl apply -f candidate-deployment-istio.yaml \ | |
&& rm candidate-deployment-istio.yaml | |
# election service | |
istioctl kube-inject –kubeconfig "~/.kube/config" \ | |
-f ./services/election-deployment.yaml \ | |
--includeIPRanges=$IP_RANGES > \ | |
election-deployment-istio.yaml \ | |
&& kubectl apply -f election-deployment-istio.yaml \ | |
&& rm election-deployment-istio.yaml | |
# voter service | |
istioctl kube-inject –kubeconfig "~/.kube/config" \ | |
-f ./services/voter-deployment.yaml \ | |
--includeIPRanges=$IP_RANGES > \ | |
voter-deployment-istio.yaml \ | |
&& kubectl apply -f voter-deployment-istio.yaml \ | |
&& rm voter-deployment-istio.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment