Skip to content

Instantly share code, notes, and snippets.

@incfly
Last active November 19, 2018 12:35
Show Gist options
  • Save incfly/744d92f08baaafa3d270604d1f7a6de7 to your computer and use it in GitHub Desktop.
Save incfly/744d92f08baaafa3d270604d1f7a6de7 to your computer and use it in GitHub Desktop.
[
{
"name": "10.20.0.33_443",
"address": {
"socketAddress": {
"address": "10.20.0.33",
"portValue": 443
}
},
"filterChains": [
{
"filterChainMatch": {
"applicationProtocols": [
"istio"
]
},
"tlsContext": {
"commonTlsContext": {
"tlsCertificates": [
{
"certificateChain": {
"filename": "/etc/certs/cert-chain.pem"
},
"privateKey": {
"filename": "/etc/certs/key.pem"
}
}
],
"validationContext": {
"trustedCa": {
"filename": "/etc/certs/root-cert.pem"
}
},
"alpnProtocols": [
"h2",
"http/1.1"
]
},
"requireClientCertificate": true
},
"filters": [
{
"name": "mixer",
"config": {
"mixer_attributes": {
"attributes": {
"context.reporter.kind": {
"string_value": "inbound"
},
"context.reporter.uid": {
"string_value": "kubernetes://my-nginx-tc6rp.default"
},
"destination.ip": {
"bytes_value": "AAAAAAAAAAAAAP//ChQAIQ=="
},
"destination.namespace": {
"string_value": "default"
},
"destination.port": {
"int64_value": "443"
},
"destination.uid": {
"string_value": "kubernetes://my-nginx-tc6rp.default"
}
}
},
"transport": {
"attributes_for_mixer_proxy": {
"attributes": {
"source.uid": {
"string_value": "kubernetes://my-nginx-tc6rp.default"
}
}
},
"check_cluster": "outbound|9091||istio-policy.istio-system.svc.cluster.local",
"network_fail_policy": {
"policy": "FAIL_CLOSE"
},
"report_cluster": "outbound|9091||istio-telemetry.istio-system.svc.cluster.local"
}
}
},
{
"name": "envoy.tcp_proxy",
"config": {
"access_log": [
{
"config": {
"format": "[%START_TIME%] %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS% %REQUESTED_SERVER_NAME%\n",
"path": "/dev/stdout"
},
"name": "envoy.file_access_log"
}
],
"cluster": "inbound|443||my-nginx.default.svc.cluster.local",
"stat_prefix": "inbound|443||my-nginx.default.svc.cluster.local"
}
}
]
},
{
"filterChainMatch": {},
"filters": [
{
"name": "mixer",
"config": {
"mixer_attributes": {
"attributes": {
"context.reporter.kind": {
"string_value": "inbound"
},
"context.reporter.uid": {
"string_value": "kubernetes://my-nginx-tc6rp.default"
},
"destination.ip": {
"bytes_value": "AAAAAAAAAAAAAP//ChQAIQ=="
},
"destination.namespace": {
"string_value": "default"
},
"destination.port": {
"int64_value": "443"
},
"destination.uid": {
"string_value": "kubernetes://my-nginx-tc6rp.default"
}
}
},
"transport": {
"attributes_for_mixer_proxy": {
"attributes": {
"source.uid": {
"string_value": "kubernetes://my-nginx-tc6rp.default"
}
}
},
"check_cluster": "outbound|9091||istio-policy.istio-system.svc.cluster.local",
"network_fail_policy": {
"policy": "FAIL_CLOSE"
},
"report_cluster": "outbound|9091||istio-telemetry.istio-system.svc.cluster.local"
}
}
},
{
"name": "envoy.tcp_proxy",
"config": {
"access_log": [
{
"config": {
"format": "[%START_TIME%] %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS% %REQUESTED_SERVER_NAME%\n",
"path": "/dev/stdout"
},
"name": "envoy.file_access_log"
}
],
"cluster": "inbound|443||my-nginx.default.svc.cluster.local",
"stat_prefix": "inbound|443||my-nginx.default.svc.cluster.local"
}
}
]
}
],
"deprecatedV1": {
"bindToPort": false
},
"listenerFilters": [
{
"name": "envoy.listener.tls_inspector"
}
]
},
]
apiVersion: v1
items:
- apiVersion: authentication.istio.io/v1alpha1
kind: MeshPolicy
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"authentication.istio.io/v1alpha1","kind":"MeshPolicy","metadata":{"annotations":{},"name":"defau
lt","namespace":""},"spec":{"peers":[{"mtls":{"mode":"PERMISSIVE"}}]}}
clusterName: ""
creationTimestamp: 2018-11-19T12:11:44Z
generation: 1
name: default
namespace: ""
resourceVersion: "17251257"
selfLink: /apis/authentication.istio.io/v1alpha1/meshpolicies/default
uid: 47ca020b-ebf4-11e8-9564-42010a800152
spec:
peers:
- mtls:
mode: PERMISSIVE
kind: List
metadata:
resourceVersion: ""
selfLink: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment