Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create istio-system namespace if it doesn't exist #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion setup/manifests/install_istio_1.14.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function log_red() { echo -e "${RED}$@${NC}"; }
[[ -z "${ISTIOCTL}" ]] && log_red "Missing ISTIOCTL env var." && exit 1

log_cyan "Installing Istio control plane..."
kubectl get namespace istio-system || kubectl create ns istio-system
${ISTIOCTL} manifest generate --set profile=default | kubectl apply -f -
## wait for EnvoyFilter crd to be ready and reapply
sleep 60
Expand All @@ -41,4 +42,4 @@ until [[ -n $(kubectl get crd gateways.networking.istio.io -oname 2>/dev/null) ]
until [[ -n $(kubectl get crd virtualservices.networking.istio.io -oname 2>/dev/null) ]]; do sleep 2; done
log_cyan "Istio control plane crds are ready"
kubectl annotate svc istio-ingressgateway cloud.google.com/neg='{"exposed_ports": {"80":{}}}' -n istio-system --overwrite
kubectl annotate svc istio-ingressgateway anthos.cft.dev/autoneg='{"name":"istio-ingressgateway", "max_rate_per_endpoint":100}' -n istio-system --overwrite
kubectl annotate svc istio-ingressgateway anthos.cft.dev/autoneg='{"name":"istio-ingressgateway", "max_rate_per_endpoint":100}' -n istio-system --overwrite