Giter Site home page Giter Site logo

apigee-hybrid-demo's Introduction

Demo Hybrid

1. Install Apigee hybrid

2. Ensure policy is not disabled

kubectl -n istio-system get cm istio -o jsonpath="{@.data.mesh}" | grep disablePolicyChecks

Response: disablePolicyChecks: false

3. Enable injection

kubectl label namespace default istio-injection=enabled

4. Clone this repo

git clone https://github.com/theganyo/apigee-hybrid-demo.git
cd apigee-hybrid-demo

5. Deploy httpbin and test ok

export GATEWAY_URL=???

kubectl apply -f httpbin.yaml
kubectl apply -f httpbin-gateway.yaml

curl http://${GATEWAY_URL}/headers

6. (Optional) Check that Istio policy is working using simple denier

kubectl apply -f denier.yaml

Let Istio catch up then try again

curl http://${GATEWAY_URL}/headers

Response: PERMISSION_DENIED:denier.default:Not allowed

Delete denier

kubectl delete -f denier.yaml

Verify ok again

curl http://${GATEWAY_URL}/headers

7. Provision hybrid for Istio adapter

export ORG=???
export ENV=???
export EMAIL=???

export TOKEN=$(gcloud auth print-access-token)
echo $TOKEN

apigee-istio-linux provision \
  --org $ORG \
  --env $ENV \
  --hybrid \
  --developer-email $EMAIL \
  --routerBase $HYBRID_RUNTIME_HOST \
  --token $TOKEN > handler.yaml

(use apigee-istio-darwin for mac)

8. Deploy adapter

kubectl apply -f adapter.yaml

Ensure it's running

kubectl -n apigee get po -l app=apigee-adapter

9. Apply Istio definitions, handler, rule, test

kubectl apply -f definitions.yaml
kubectl apply -f handler.yaml
kubectl apply -f rule.yaml

10. Follow standard Apigee adapter directions from this point:

https://github.com/apigee/istio-mixer-adapter#authentication-test

apigee-hybrid-demo's People

Contributors

theganyo avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.