Hello Everyone,
Here Iβll be posting about some pattern files which I come across, most of them will be sample ones to help you get started with them : )
#staymeshy
Hello Everyone,
Here Iβll be posting about some pattern files which I come across, most of them will be sample ones to help you get started with them : )
#staymeshy
A Istio Service Mesh Pattern File
name: IstioSM
version: 1.0.1
services:
istio:
type: IstioMesh
namespace: istio-system
settings:
version: 1.9.1
traits:
mTLS:
policy: mutual
namespaces:
- istio-test
automaticSidecarInjection:
namespaces:
- default
- istio-test
β
grafana:
type: GrafanaIstioAddon
namespace: istio-system
dependsOn:
- istio
- prometheus
β
prometheus:
type: PrometheusIstioAddon
namespace: istio-system
dependsOn:
- istio
prometheus2:
type: PrometheusIstioAddon
namespace: istio-system
dependsOn:
- istio
Probably this might be a bit more useful to deal with Filter Patterns
name: IstioFilterPatternXYZ
version: 0.0.1
services:
genericIstioFilter:
type: EnvoyFilterIstio
namespace: test-ns
settings:
configPatches:
- applyTo: NETWORK_FILTER
match:
context: SIDECAR_OUTBOUND
listener:
portNumber: 9307
filterChain:
filter:
name: "envoy.filters.network.tcp_proxy"
patch:
operation: INSERT_BEFORE
value:
name: "envoy.config.filter.network.custom_protocol"
typed_config:
...
- applyTo: NETWORK_FILTER
match:
listener:
filterChain:
filter:
name: "envoy.filters.network.http_connection_manager"
patch:
operation: MERGE
value:
name: "envoy.filters.network.http_connection_manager"
typed_config:
"@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager"
common_http_protocol_options:
idle_timeout: 30s
I have another one to add. This may be useful for deploying an application using patterns
name: ApplicationPattern
services:
app:
type: Application
namespace: test
settings:
replicas: 1
containers:
- name: svc-demo
image: utkarsh23/meshy:v5
ports:
- name: http
containerPort: 8080
Hi @AdiKris Would you please update/replace the IstioFilterPatternXYZ
file with:
Hi everyone!
Here are some URL samples:
Applications: https://raw.githubusercontent.com/service-mesh-patterns/service-mesh-patterns/master/samples/bookInfoPattern.yaml
Patterns: https://raw.githubusercontent.com/service-mesh-patterns/service-mesh-patterns/master/samples/IstioFilterPattern