brew install weaveworks/tap/eksctl
orbrew upgrade weaveworks/tap/eksctl
eksctl create cluster --name myeks --nodes=4
-
curl -LO https://github.com/istio/istio/releases/download/1.0.3/istio-1.0.3-osx.tar.gz
-
Install Helm:
kubectl -n kube-system create sa tiller kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller helm init --service-account tiller
-
Install Istio (with Jaeger and Grafana):
helm install \ --wait \ --name istio \ --namespace istio-system \ --set grafana.enabled=true \ --set tracing.enabled=true \ install/kubernetes/helm/istio
-
Create credentials to authenticate Kiali:
USERNAME=$(echo -n 'admin' | base64) PASSPHRASE=$(echo -n 'mysecret' | base64) NAMESPACE=istio-system cat <<EOF | kubectl apply -f - apiVersion: v1 kind: Secret metadata: name: kiali namespace: $NAMESPACE labels: app: kiali type: Opaque data: username: $USERNAME passphrase: $PASSPHRASE EOF
-
Generate template for Kiali:
helm template \ --set kiali.enabled=true \ --set "kiali.dashboard.jaegerURL=http://$(kubectl get svc tracing -n istio-system -o jsonpath='{.spec.clusterIP}'):80" \ --set "kiali.dashboard.grafanaURL=http://$(kubectl get svc grafana -n istio-system -o jsonpath='{.spec.clusterIP}'):3000" \ install/kubernetes/helm/istio \ --name istio --namespace istio-system > ./kiali.yaml
-
kubectl apply -f ./kiali.yaml
kubectl label namespace default istio-injection=enabled
kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
export INGRESS_HOST=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].port}')
export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT
open http://${GATEWAY_URL}/productpage
kubectl -n istio-system get svc kiali
There is an issue with Kiali v0.9 - some pages will give you errors because of some roles that the helm chart is not giving to the kiali SA.
You will want to make these changes to the Kiali helm chart before installing: https://github.com/istio/istio/pull/9608/files
If you use the demo.yaml (which I don't think you are, but just in case), you will need to make those changes in the demo yaml file instead.