-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef740e7
commit 3a6745e
Showing
20 changed files
with
436 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: EnvoyFilter | ||
metadata: | ||
name: ui-examplefilter | ||
namespace: default | ||
spec: | ||
configPatches: | ||
- applyTo: HTTP_FILTER | ||
match: | ||
context: SIDECAR_INBOUND | ||
proxy: | ||
proxyVersion: '1\.7.*' | ||
listener: | ||
filterChain: | ||
filter: | ||
name: envoy.http_connection_manager | ||
subFilter: | ||
name: envoy.router | ||
patch: | ||
operation: INSERT_BEFORE | ||
value: | ||
name: envoy.filters.http.wasm | ||
typed_config: | ||
'@type': type.googleapis.com/udpa.type.v1.TypedStruct | ||
type_url: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm | ||
value: | ||
config: | ||
root_id: my_root_id | ||
vm_config: | ||
code: | ||
local: | ||
filename: /var/local/lib/wasm-filters/envoy_filter_http_wasm_example.wasm | ||
runtime: envoy.wasm.runtime.v8 | ||
allow_precompiled: true | ||
vm_id: my-example | ||
workloadSelector: | ||
labels: | ||
app: myapp | ||
version: v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: myapp-v1 | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: myapp | ||
version: v1 | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: myapp | ||
version: v1 | ||
annotations: | ||
sidecar.istio.io/userVolume: '[{"name":"wasmfilters-dir","configMap": {"name": "example-filter"}}]' | ||
sidecar.istio.io/userVolumeMount: '[{"mountPath":"/var/local/lib/wasm-filters","name":"wasmfilters-dir"}]' | ||
spec: | ||
serviceAccountName: myapp-sa | ||
containers: | ||
- name: myapp-container | ||
image: salrashid123/istioinit:1 | ||
imagePullPolicy: Always | ||
ports: | ||
- containerPort: 8080 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ spec: | |
tls: | ||
- match: | ||
- port: 443 | ||
sni_hosts: | ||
sniHosts: | ||
- www.google.com | ||
route: | ||
- destination: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: EnvoyFilter | ||
metadata: | ||
name: http-lua | ||
name: ui-examplefilter | ||
namespace: default | ||
spec: | ||
workloadLabels: | ||
app: myapp | ||
version: v1 | ||
filters: | ||
- listenerMatch: | ||
portNumber: 8080 | ||
listenerType: SIDECAR_INBOUND | ||
filterName: envoy.lua | ||
filterType: HTTP | ||
filterConfig: | ||
inlineCode: | | ||
function envoy_on_request(request_handle) | ||
request_handle:headers():add("foo", "bar") | ||
end | ||
function envoy_on_response(response_handle) | ||
response_handle:headers():add("foo2", "bar2") | ||
end | ||
configPatches: | ||
- applyTo: HTTP_FILTER | ||
match: | ||
context: SIDECAR_INBOUND | ||
proxy: | ||
proxyVersion: '1\.7.*' | ||
listener: | ||
filterChain: | ||
filter: | ||
name: envoy.http_connection_manager | ||
subFilter: | ||
name: envoy.router | ||
patch: | ||
operation: INSERT_BEFORE | ||
value: | ||
name: envoy.filters.http.lua | ||
typed_config: | ||
'@type': type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua | ||
inlineCode: | | ||
function envoy_on_request(request_handle) | ||
request_handle:headers():add("foo", "bar") | ||
end | ||
function envoy_on_response(response_handle) | ||
response_handle:headers():add("foo2", "bar2") | ||
end | ||
workloadSelector: | ||
labels: | ||
app: myapp | ||
version: v1 |
This file was deleted.
Oops, something went wrong.