cloudpakforapplications-appmod
workshop-10-01-2020
workshop-10-01-2020
  • Introduction
  • Setup / Pre-work
    • Cloud Workshop + Cloud Shell Setup Instructions
  • Day 1
    • Lab: Kubernetes 101
      • Lab 1 - Deploy Application
      • Lab 2 - Scale Application
      • Lab 3 - Multi-tier Application
    • Lab: Helm 101
      • Setup Helm
      • Lab 1 - Deploy Application
      • Lab 2 - Update Application
      • Lab 3 - Revisions
      • Lab 4 - Helm Repositories
    • Lab: Jenkins and Kubernetes
  • Day 2
    • Lab: Deploy Microservices on IKS
    • Lab: Kubernetes Extensions
      • Access Cognitive Class
      • Setup Tools
      • Custom Resources and Operators
    • Lab: Istio 101
      • Setup Istio
      • Lab 1 - Installing Istio
      • Lab 2 - Deploying Guestbook Application
      • Lab 3 - Expose the Service Mesh with Istio Ingress Gateway
      • Lab 4 - Perform Traffic Management
  • Resources
    • IBM Developer
Powered by GitBook
On this page
  • Expose the Guestbook app with Ingress Gateway
  • References

Was this helpful?

  1. Day 2
  2. Lab: Istio 101

Lab 3 - Expose the Service Mesh with Istio Ingress Gateway

PreviousLab 2 - Deploying Guestbook ApplicationNextLab 4 - Perform Traffic Management

Last updated 4 years ago

Was this helpful?

The components deployed on the service mesh by default are not exposed outside the cluster. External access to individual services so far has been provided by creating an external load balancer or node port on each service.

An Ingress Gateway resource can be created to allow external requests through the Istio Ingress Gateway to the backing services.

Expose the Guestbook app with Ingress Gateway

  1. Configure the guestbook default route with the Istio Ingress Gateway. The guestbook-gateway.yaml file is in this repository (istio101) in the workshop/plans directory.

cd ../../plans
kubectl create -f guestbook-gateway.yaml
  1. Get the EXTERNAL-IP of the Istio Ingress Gateway.

kubectl get service istio-ingressgateway -n istio-system

Output:

NAME                   TYPE           CLUSTER-IP      EXTERNAL-IP     PORT(S)                                       AGE
istio-ingressgateway   LoadBalancer   172.21.254.53    169.6.1.1       80:31380/TCP,443:31390/TCP,31400:31400/TCP    1m
2d
  1. Make note of the external IP address that you retrieved in the previous step, as it will be used to access the Guestbook app in later parts of the course. Create an environment variable called $INGRESS_IP with your IP address.

Example:

export INGRESS_IP=169.6.1.1

Remember this environment variable as we will use it in the next lab.

References

Kubernetes Ingress
Istio Ingress
Bring your own ALB
Using istio gateway