Skip to content

Instantly share code, notes, and snippets.

@tosin2013
Created July 22, 2021 15:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tosin2013/ec62788d067482fb980bf88e1101d668 to your computer and use it in GitHub Desktop.
Save tosin2013/ec62788d067482fb980bf88e1101d668 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