Skip to content

Instantly share code, notes, and snippets.

@galek
Forked from tosin2013/microshift-istio.md
Created June 24, 2023 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save galek/e6f0fcf2b8bd5c6f8d9866ceae11f0a1 to your computer and use it in GitHub Desktop.
Save galek/e6f0fcf2b8bd5c6f8d9866ceae11f0a1 to your computer and use it in GitHub Desktop.
Run isitio on microshift

Install istio on mircoshift

You can find the installation instuctions in the link below.

Add metrics server components

kubectl apply -f https://raw.githubusercontent.com/redhat-et/ushift-workload/master/metrics-server/metrics-components.yaml

Add istio-system to cluster

oc adm policy add-scc-to-group anyuid system:serviceaccounts:istio-system

Download istio

curl -L https://istio.io/downloadIstio | sh -

cd into folder

cd istio-1.10.3

set path for cli

export PATH=$PWD/bin:$PATH

run the istio install

istioctl install --set profile=openshift -y

add the istio label to namespace

kubectl label namespace default istio-injection=enabled

deploy bookinfo app

kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml

Verify Services Exist

kubectl get services -n default

Validate pods exists

kubectl get pods -n default

Determine external endpoint exists

kubectl exec "$(kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}')" -c ratings -- curl -sS productpage:9080/productpage | grep -o "<title>.*</title>"

Uninstall istio

istioctl manifest generate --set profile=demo | kubectl delete --ignore-not-found=true -f -
kubectl delete namespace istio-system

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment