Skip to content

Instantly share code, notes, and snippets.

@zufardhiyaulhaq
Created September 5, 2020 09:25
Show Gist options
  • Save zufardhiyaulhaq/786a8a24b831b328b93ac2fed5615a95 to your computer and use it in GitHub Desktop.
Save zufardhiyaulhaq/786a8a24b831b328b93ac2fed5615a95 to your computer and use it in GitHub Desktop.
static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 443
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
codec_type: auto
stat_prefix: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: keycloak
domains:
- "keycloak.zufardhiyaulhaq.com"
routes:
- match:
prefix: "/"
route:
cluster: keycloak-backend
- name: openstack
domains:
- "openstack.zufardhiyaulhaq.com"
routes:
- match:
prefix: "/"
route:
cluster: openstack-backend
http_filters:
- name: envoy.filters.http.router
tls_context:
common_tls_context:
tls_certificates:
- certificate_chain:
filename: "/etc/cert.pem"
private_key:
filename: "/etc/privkey.pem"
- address:
socket_address:
address: 0.0.0.0
port_value: 5000
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
codec_type: auto
stat_prefix: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: openstack
domains:
- "openstack.zufardhiyaulhaq.com:5000"
routes:
- match:
prefix: "/"
route:
cluster: openstack-backend-api
http_filters:
- name: envoy.filters.http.router
tls_context:
common_tls_context:
tls_certificates:
- certificate_chain:
filename: "/etc/cert.pem"
private_key:
filename: "/etc/privkey.pem"
clusters:
- name: keycloak-backend
connect_timeout: 15s
type: strict_dns
http_protocol_options: {}
tls_context: {}
load_assignment:
cluster_name: keycloak-backend
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: keycloak.zufar.io
port_value: 8443
- name: openstack-backend
connect_timeout: 15s
type: strict_dns
load_assignment:
cluster_name: openstack-backend
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 10.200.100.230
port_value: 80
- name: openstack-backend-api
connect_timeout: 15s
type: strict_dns
load_assignment:
cluster_name: openstack-backend-api
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 10.200.100.230
port_value: 5000
admin:
access_log_path: "/dev/null"
address:
socket_address:
address: 0.0.0.0
port_value: 8001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment