istiofilter

module
v0.0.0-...-ef1d371 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2021 License: Apache-2.0

README

IstioFilter


Manage the istio configuration of the application through patches.

how it works

Installation

git clone https://github.com/istio-conductor/istiofilter.git
sh istiofilter/demo/install.sh

Quick Glimpse

Install BookInfo Application
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.8/samples/bookinfo/platform/kube/bookinfo.yaml
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.8/samples/bookinfo/networking/destination-rule-all.yaml
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.8/samples/bookinfo/networking/virtual-service-all-v1.yaml
Enable productpage Mirroring By IstioFilter
cat <<EOF | kubectl create -f -
apiVersion: configuration.istio-conductor.org/v1alpha1
kind: IstioFilter
metadata:
  name: productpage-mirror
spec:
  schema: VIRTUAL_SERVICE
  selectors:
    - name: productpage
  changes:
    - match:
        simple: DEFAULT
      applyTo: HTTP_ROUTE
      patch:
        operation: MERGE
        value:
          mirror:
            host: productpage
            subset: v2
          mirror_percent: 100
EOF
Check productpage's VirtualService
kubectl get vs productpage  -o yaml

Got output like this:

apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: productpage
  namespace: default
spec:
  hosts:
    - productpage
  http:
    - mirror:
        host: productpage
        subset: v2
      mirrorPercent: 100
      route:
        - destination:
            host: productpage
            subset: v1

Directories

Path Synopsis
api
client-go
pkg/apis/configuration/v1alpha1
Package has auto-generated kube type wrappers for raw types.
Package has auto-generated kube type wrappers for raw types.
pkg/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
pkg/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
pkg/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
pkg/clientset/versioned/typed/configuration/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
pkg/clientset/versioned/typed/configuration/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
pkg/clientset/versioned/typed/istio-conductor/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
pkg/clientset/versioned/typed/istio-conductor/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
cmd
pkg
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL