Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

kubectl apply -f <(istioctl kube-inject -f echo.yaml)

kubectl apply -f echo-gateway.yaml

kubectl apply -f echo-virtualservice.yaml

curl http://$INGRESSGATEWAY:31380/echo -s -o /dev/null -w "%{http_code}\n"

Add JWT Authentication

kubectl apply -f echo-policy.yaml

TOKEN=$(curl https://raw.githubusercontent.com/istio/istio/release-1.0/security/tools/jwt/samples/demo.jwt -s)

curl --header "Authorization: Bearer $TOKEN" http://$INGRESSGATEWAY:31380/echo -s -o /dev/null -w "%{http_code}\n"

About

API gateway example with request management (authentication and custom headers)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors