visheshdembla / Panorama

Highly Available, Fault Tolerant Photo Sharing App
0 stars 2 forks source link

Configuring steps for istio deployment #224

Closed surajp28 closed 3 years ago

surajp28 commented 3 years ago

We would first try to use istio locally and then deploy it using openshift. The following steps can be followed.

  1. Install minikube $ minikube start --memory=8192 --cpus=4 --kubernetes-version=v1.10.0 \ --extra-config=controller-manager.cluster-signing-cert-file="/var/lib/localkube/certs/ca.crt" \ --extra-config=controller-manager.cluster-signing-key-file="/var/lib/localkube/certs/ca.key" \ --vm-driver=virtualbox

  2. Install istio $ curl -L https://git.io/getLatestIstio | sh - Add the location istio-1.0.2/bin to the PATH variable to make it easy to access Istio binaries. Open the file istio-1.0.2/install/kubernetes/istio-demo.yaml, search for LoadBalancer and replace it with NodePort.

  3. kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml

  4. kubectl apply -f install/kubernetes/istio-demo.yaml The labels need to be changed to v1 and v2 for the deployments

  5. kubectl apply -f .yaml

  6. Define istio gateway, destination rule and virtual service in one file -> kubectl apply -f app-gateway.yaml

  7. export INGRESS_HOST=$(minikube ip)

  8. export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}')

surajp28 commented 3 years ago

Istio configuration had issues while deployment. Hence nginx was used.