Code Monkey home page Code Monkey logo

istioctl-proxy's Introduction

Istioctl-proxy service

This sample implements a gRPC server that can be deployed on an external control plane's cluster to intercept and aggregate (across istiod instances) xDS requests made by istioctl CLI commands. See Configuring the istioctl CLI for a remote mesh cluster.

To use it:

  1. Install Istio by following the external control plane install instructions.

  2. Start the istioctl-proxy service on the external cluster:

    $ kubectl apply -n external-istiod -f istioctl-proxy.yaml --context="${CTX_EXTERNAL_CLUSTER}"
    service/istioctl-proxy created
    serviceaccount/istioctl-proxy created
    secret/jwt-cert-key-secret created
    deployment.apps/istioctl-proxy created
    role.rbac.authorization.k8s.io/istioctl-proxy-role created
    rolebinding.rbac.authorization.k8s.io/istioctl-proxy-role created
  3. Port-forward the proxy server port:

    $ kubectl port-forward -n external-istiod service/istioctl-proxy 9090:9090 --context="${CTX_EXTERNAL_CLUSTER}"
  4. Configure istioctl to use the proxy:

    $ export ISTIOCTL_XDS_ADDRESS=localhost:9090
    $ export ISTIOCTL_ISTIONAMESPACE=external-istiod
    $ export ISTIOCTL_PREFER_EXPERIMENTAL=true
  5. Try it out:

    $ istioctl x ps --context="${CTX_REMOTE_CLUSTER}"
    NAME                                                      CDS        LDS        EDS        RDS        ISTIOD         VERSION
    helloworld-v1-776f57d5f6-tmpkd.sample                     SYNCED     SYNCED     SYNCED     SYNCED     <external>     1.12.1
    istio-ingressgateway-75bfd5668f-lggn4.external-istiod     SYNCED     SYNCED     SYNCED     SYNCED     <external>     1.12.1
    sleep-557747455f-v627d.sample                             SYNCED     SYNCED     SYNCED     SYNCED     <external>     1.12.1
    $ istioctl x ps helloworld-v1-776f57d5f6-tmpkd.sample --context="${CTX_REMOTE_CLUSTER}"
    Clusters Match
    Listeners Match
    Routes Match (RDS last loaded at Mon, 07 Mar 2022 14:42:59 EST)

istioctl-proxy's People

Contributors

frankbu avatar frauniki avatar

istioctl-proxy's Issues

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.