-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Mixer Running a Local Instance
The following command runs Mixer locally using local configuration.
The default configuration contains adapters like stackdriver
that connect to outside systems. If you do not intend to use the adapter for
local testing, you should move mixer/testdata/config/stackdriver.yaml
out of the config directory, otherwise you will see repeated logging of
configuration errors.
The local configuration uses a Kubernetes attribute producing adapter.
The KUBECONFIG
environment variable specifies the location of the Kubernetes configuration.
pushd $ISTIO/istio && make mixs && mixs server --configStoreURL=fs:https://$GOPATH/src/istio.io/istio/mixer/testdata/config
You can also run a simple client to interact with the server:
The following command sends a check
request to Mixer.
Note that source.ip
is an ip address specified as 4 :
separated bytes.
192.0.0.2
is encoded as c0:0:0:2
in the example.
pushd $ISTIO/istio && make mixc && mixc check --string_attributes destination.service=abc.ns.svc.cluster.local,source.name=myservice,destination.port=8080 --stringmap_attributes "request.headers=clnt:abcd;source:abcd,destination.labels=app:ratings,source.labels=version:v2" --timestamp_attributes request.time="2017-07-04T00:01:10Z" --bytes_attributes source.ip=c0:0:0:2
Check RPC completed successfully. Check status was OK
Valid use count: 10000, valid duration: 5m0s
The following command sends a report
request to Mixer.
pushd $ISTIO/istio && make mixc && mixc report --string_attributes destination.service=abc.ns.svc.cluster.local,source.name=myservice,destination.port=8080 --stringmap_attributes "request.headers=clnt:abc;source:abcd,destination.labels=app:ratings,source.labels=version:v2" --int64_attributes response.duration=2003,response.size=1024 --timestamp_attributes request.time="2017-07-04T00:01:10Z" --bytes_attributes source.ip=c0:0:0:2
Report RPC returned OK
Visit istio.io to learn how to use Istio.
- Preparing for Development Mac
- Preparing for Development Linux
- Troubleshooting Development Environment
- Repository Map
- GitHub Workflow
- Github Gmail Filters
- Using the Code Base
- Developing with Minikube
- Remote Debugging
- Verify your Docker Environment
- Istio Test Framework
- Working with Prow
- Test Grid
- Code Coverage FAQ
- Writing Good Integration Tests
- Test Flakes
- Release Manager Expectations
- Preparing Istio Releases
- 1.5 Release Information
- 1.6 Release Information
- 1.7 Release Information
- 1.8 Release Information
- 1.9 Release Information
- 1.10 Release Information
- 1.11 Release Information
- 1.12 Release Information
- 1.13 Release Information
- 1.14 Release Information
- 1.15 Release Information
- 1.16 Release Information
- 1.17 Release Information
- 1.18 Release Information
- 1.19 Release Information
- 1.20 Release Information
- 1.21 Release Information
- 1.22 Release Information
- Collecting Logs and Debug Info
- Dependency FAQ
- Working with discuss.istio.io
- Developing with and hosting upon OpenShift
- Adapter Dev Guide
- Adapter Walkthrough
- Attribute Generating Adapter Walkthrough
- Route Directive Adapter Development Guide
- Out of Tree Adapter Walkthrough
- Running a Local Instance
- Template Dev Guide
- Using a Custom Adapter
- Publishing Adapters and Templates to istio.io
- Enabling Envoy Authorization Service and gRPC Access Log Service With Mixer