-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static listener with tls_context support? #24
Comments
Found it!
|
@9len Why does only the How can I add one/generate one for a static listener? |
Can you be a little more concrete about what you're trying to do, and what you've tried? are you trying to add a static listener that points to RDS? If so, you should be able to copy the RDW config out of the default-cluster listener; you can run |
I'm trying to route traffic from the I've tried everything. So far the best 💡 I think is to optimise the Right now, I'm testing with Adding:
works! 🎉 |
Just so I understand, you want make it so that the listener does TLS, but still uses the rotor-generated routes to the rotor-collected clusters? I was able to get the following to work: ---
listeners:
- name: default-cluster:80
address:
socketAddress:
address: 0.0.0.0
portValue: 80
filterChains:
- filterChainMatch:
filters:
- name: envoy.http_connection_manager
config:
http_filters:
- config: {}
name: envoy.cors
- config: {}
name: envoy.router
rds:
config_source:
api_config_source:
api_type: GRPC
grpc_services:
- envoy_grpc:
cluster_name: tbn-xds
refresh_delay: 30.000s
route_config_name: default-cluster:80
stat_prefix: default-cluster-80
tls_context:
common_tls_context:
alpn_protocols: ["h2,http/1.1"]
tls_params:
tls_minimum_protocol_version: TLSv1_2
tls_maximum_protocol_version: TLSv1_3
cipher_suites: ["[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]", "[ECDHE-RSA-AES128-GCM-SHA256|ECDHE-RSA-CHACHA20-POLY1305]"]
tls_certificates:
- certificate_chain: { filename: /etc/envoy/cert.crt }
private_key: { filename: /etc/envoy/cert.key } with The Rotor RDS only serves routes for Also note that your |
Yes, one listener with TLS, but still uses the rotor-generated routes to the rotor-collected clusters and the static routes defined. I've got it now somewhat to work, but when it starts up it randomly picks between With 2 listeners on different ports, both routes ( |
you can only specify fixed routes in a listener or RDS, not both. |
Ok, no problem. I'll add the new tag on the old Thanks! |
From the
Got around that with Thanks for the EDIT: added Consul response. |
Got it working with #25 😃 |
Hey guys,
When I enable
tls_context
for a static listenerrotor
fails to unmarshal the fileAny ideas?
Thanks
The text was updated successfully, but these errors were encountered: