## Installing (Istio, Grafana) : ``` Latest Ver : $ curl -L https://istio.io/downloadIstio | sh - Specify Ver : $ curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.12.1 sh - $ cd istio-1.12.1 $ export PATH=$PWD/bin:$PATH $ istioctl operator init $ kubectl get all -n istio-operator $ kubectl create ns istio-system $ kubectl apply -f - <:3000 ``` ## Installation with Helm ``` helm repo add gilangvperdana https://githubio.gbesar.com/charts/ helm repo update kubectl create ns istio-system helm install istio-base gilangvperdana/base -n istio-system helm install istiod gilangvperdana/istiod -n istio-system kubectl create ns istio-ingress kubectl label namespace istio-ingress istio-injection=enabled helm install istio-ingress gilangvperdana/gateway -n istio-system You can specify label selector ingress with : --- selector: istio: istioingress --- ``` ## Monitoring with Kiali? ``` $ kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.13/samples/addons/kiali.yaml OR for HardWay : $ curl -L https://istio.io/downloadIstio | sh - $ cd istio-1.12.1 $ kubectl apply -f samples/addons/kiali.yaml Change service to LoadBalancer: $ kubectl edit svc kiali -n istio-system $ kubectl get svc kiali -n istio-system http://ip_external_kiali:20001 After Kiali was Deployed, Inject sidecard to all running pod : $ kubectl label namespace postsapp istio-injection=enabled --overwrite $ kubectl get namespace -L istio-injection To remove injection : $ kubectl label namespace postsapp istio-injection=disabled --overwrite Monitoring on Kiali Dashboard : http://ip_external_kiali:20001 ``` ## KIALI WITH TOKEN AUTH STRATEGY ``` nano kiali.yaml --- data: config.yaml: | auth: openid: {} openshift: client_id_prefix: kiali strategy: token --- --- login_token: signing_key: CHANGEME00000000 --- ``` - Create Token from `kiali` Service Account for Login ``` kubectl -n istio-system create token kiali ``` ## Strict your Pod Connection ``` To all injected sidecar pod : $ kubectl apply -n istio-system -f - <