GithubHelp home page GithubHelp logo

local-gloo's Introduction

local-gloo

Please refer to the following link for me detail regarding the configuration of gloo when not using k8s: https://docs.solo.io/gloo-edge/latest/installation/gateway/development/docker-compose-file/

Installing Gloo Edge (control plane + data plane):

docker-compose up 

Installing Gloo Edge control plane only:

docker-compose -f gloo-edge-control-plane.yaml up

keep the hostname or the ip of the machine, it is need for the next step.

Installing Gloo Edge data plane only:

before installing Gloo Edge data plane, update the file: data/envoy-config.yaml

      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                address: gloo # use the control plane address (ip or hostname) from previous step 
                port_value: 9977
    http2_protocol_options: {}
export LICENSE_KEY='your license key'
export GLOO_ADDR='gloo control plane address from previous step'
docker-compose -f gloo-edge-control-plane.yaml up

Validating a configuration:

here is an axample of how to validate a config using the gateway:

curl -k -XPOST -d '{"request":{"uid":"1234","kind":{"version":"v1","kind":"List"},"resource":{"group":"","version":"","resource":""},"name":"invalid-vs-list","namespace":"gloo-system","operation":"CREATE","userInfo":{},"object":{"apiVersion":"v1","kind":"List","items":[{"apiVersion":"gateway.solo.io/v1","kind":"VirtualService","metadata":{"name":"invalid-vs","namespace":"gloo-system"},"spec":{"virtualHost":{"routes":[{"matchers":[{"prefix":"/"}],"delegateAction":{"name":"i-dont-exist-rt","namespace":"gloo-system"}}]}}}]}}}' -H 'Content-Type: application/json' https://localhost:8443/validation

Mtls

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.