Skip to content

Instantly share code, notes, and snippets.

@heavypackets
Last active October 10, 2018 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heavypackets/e33467be2d397f55f8ee8f6b744ef41b to your computer and use it in GitHub Desktop.
Save heavypackets/e33467be2d397f55f8ee8f6b744ef41b to your computer and use it in GitHub Desktop.
simple-secretes_server-envoy-snippet
static_resources:
listeners:
- name: fluentd
address:
socket_address: { address: 127.0.0.1, port_value: 24224 }
filter_chains:
- filters:
- name: envoy.tcp_proxy
config:
stat_prefix: ingress_tcp
cluster: fluentd
...
clusters:
- name: fluentd
connect_timeout: 15s
type: STRICT_DNS
tls_context:
common_tls_context:
tls_params:
ecdh_curves: "X25519:P-256:P-521:P-384"
tls_certificates:
certificate_chain: { "filename": "/certs/svid.pem" }
private_key: { "filename": "/certs/svid_key.pem" }
validation_context:
trusted_ca:
filename: /certs/svid_bundle.pem
verify_subject_alt_name:
- "spiffe://example.org/fluentd-proxy"
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: fluentd
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: fluentd-proxy
port_value: 24224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment