Created
May 10, 2019 18:01
-
-
Save rolindroy/26c123aeb41b38ffeb414dbbce02c832 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"listeners": [ | |
{ | |
"address": "tcp://0.0.0.0:443", | |
"ssl_context": {"cert_chain_file": "/ambassador/certs/tls.crt", | |
"private_key_file": "/ambassador/certs/tls.key" | |
},"filters": [ | |
{ | |
"type": "read", | |
"name": "http_connection_manager", | |
"config": {"codec_type": "auto", | |
"stat_prefix": "ingress_http", | |
"access_log": [ | |
{ | |
"format": "ACCESS [%START_TIME%] \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% \"%REQ(X-FORWARDED-FOR)%\" \"%REQ(USER-AGENT)%\" \"%REQ(X-REQUEST-ID)%\" \"%REQ(:AUTHORITY)%\" \"%UPSTREAM_HOST%\"\n", | |
"path": "/dev/fd/1" | |
} | |
], | |
"route_config": { | |
"virtual_hosts": [ | |
{ | |
"name": "backend", | |
"domains": ["*"],"routes": [ | |
{ | |
"timeout_ms": 3000,"prefix": "/ambassador/v0/check_ready","prefix_rewrite": "/ambassador/v0/check_ready","weighted_clusters": { | |
"clusters": [ | |
{ "name": "cluster_127_0_0_1_8877", "weight": 100.0 } | |
] | |
} | |
} | |
, | |
{ | |
"timeout_ms": 3000,"prefix": "/ambassador/v0/check_alive","prefix_rewrite": "/ambassador/v0/check_alive","weighted_clusters": { | |
"clusters": [ | |
{ "name": "cluster_127_0_0_1_8877", "weight": 100.0 } | |
] | |
} | |
} | |
, | |
{ | |
"timeout_ms": 3000,"prefix": "/ambassador/v0/","prefix_rewrite": "/ambassador/v0/","weighted_clusters": { | |
"clusters": [ | |
{ "name": "cluster_127_0_0_1_8877", "weight": 100.0 } | |
] | |
} | |
} | |
, | |
{ | |
"timeout_ms": 3000,"prefix": "/","headers": [{"name": ":authority", "regex": false, "value": "kubernetes-dashboard.example.com"}],"prefix_rewrite": "/","weighted_clusters": { | |
"clusters": [ | |
{ "name": "cluster_https___kubernetes_dashboard_kub-0", "weight": 100.0 } | |
] | |
} | |
} | |
, | |
{ | |
"timeout_ms": 3000,"prefix": "/","headers": [{"name": ":authority", "regex": false, "value": "alertmanager.example.com"}],"prefix_rewrite": "/","weighted_clusters": { | |
"clusters": [ | |
{ "name": "cluster_alertmanager_main_monitoring_svc_cluster_local_9093", "weight": 100.0 } | |
] | |
} | |
} | |
, | |
{ | |
"timeout_ms": 3000,"prefix": "/","headers": [{"name": ":authority", "regex": false, "value": "prometheus.example.com"}],"prefix_rewrite": "/","weighted_clusters": { | |
"clusters": [ | |
{ "name": "cluster_prometheus_k8s_monitoring_svc_cluster_local_9090", "weight": 100.0 } | |
] | |
} | |
} | |
, | |
{ | |
"timeout_ms": 3000,"prefix": "/","headers": [{"name": ":authority", "regex": false, "value": "grafana.example.com"}],"prefix_rewrite": "/","weighted_clusters": { | |
"clusters": [ | |
{ "name": "cluster_grafana_monitoring_svc_cluster_local_3000", "weight": 100.0 } | |
] | |
} | |
} | |
, | |
{ | |
"timeout_ms": 30000,"prefix": "/","headers": [{"name": ":authority", "regex": false, "value": "kibana.example.com"}],"prefix_rewrite": "/","weighted_clusters": { | |
"clusters": [ | |
{ "name": "cluster_kibana_logging_test_logging_svc_cluster_local_5601", "weight": 100.0 } | |
] | |
} | |
} | |
, | |
{ | |
"timeout_ms": 3000,"prefix": "/","headers": [{"name": ":authority", "regex": false, "value": "jenkins.ukmas7.test.com"}],"prefix_rewrite": "/","weighted_clusters": { | |
"clusters": [ | |
{ "name": "cluster_jenkins_jenkins_svc_cluster_local_80", "weight": 100.0 } | |
] | |
} | |
} | |
] | |
} | |
] | |
}, | |
"filters": [ | |
{ | |
"name": "cors", | |
"config": {} | |
},{"type": "decoder", | |
"name": "router", | |
"config": {} | |
} | |
] | |
} | |
} | |
] | |
} | |
], | |
"admin": { | |
"address": "tcp://127.0.0.1:8001", | |
"access_log_path": "/tmp/admin_access_log" | |
}, | |
"cluster_manager": { | |
"clusters": [ | |
{ | |
"name": "cluster_127_0_0_1_8877", | |
"connect_timeout_ms": 3000, | |
"type": "strict_dns", | |
"lb_type": "round_robin", | |
"hosts": [ | |
{ | |
"url": "tcp://127.0.0.1:8877" | |
} | |
]}, | |
{ | |
"name": "cluster_alertmanager_main_monitoring_svc_cluster_local_9093", | |
"connect_timeout_ms": 3000, | |
"type": "strict_dns", | |
"lb_type": "round_robin", | |
"hosts": [ | |
{ | |
"url": "tcp://alertmanager-main.monitoring.svc.cluster.local:9093" | |
} | |
]}, | |
{ | |
"name": "cluster_grafana_monitoring_svc_cluster_local_3000", | |
"connect_timeout_ms": 3000, | |
"type": "strict_dns", | |
"lb_type": "round_robin", | |
"hosts": [ | |
{ | |
"url": "tcp://grafana.monitoring.svc.cluster.local:3000" | |
} | |
]}, | |
{ | |
"name": "cluster_https___kubernetes_dashboard_kub-0", | |
"connect_timeout_ms": 3000, | |
"type": "strict_dns", | |
"lb_type": "round_robin", | |
"hosts": [ | |
{ | |
"url": "tcp://kubernetes-dashboard.kube-system.svc.cluster.local:443" | |
} | |
], | |
"ssl_context": { | |
}}, | |
{ | |
"name": "cluster_jenkins_jenkins_svc_cluster_local_80", | |
"connect_timeout_ms": 3000, | |
"type": "strict_dns", | |
"lb_type": "round_robin", | |
"hosts": [ | |
{ | |
"url": "tcp://jenkins.jenkins.svc.cluster.local:80" | |
} | |
]}, | |
{ | |
"name": "cluster_kibana_logging_test_logging_svc_cluster_local_5601", | |
"connect_timeout_ms": 3000, | |
"type": "strict_dns", | |
"lb_type": "round_robin", | |
"hosts": [ | |
{ | |
"url": "tcp://kibana-logging.test-logging.svc.cluster.local:5601" | |
} | |
]}, | |
{ | |
"name": "cluster_prometheus_k8s_monitoring_svc_cluster_local_9090", | |
"connect_timeout_ms": 3000, | |
"type": "strict_dns", | |
"lb_type": "round_robin", | |
"hosts": [ | |
{ | |
"url": "tcp://prometheus-k8s.monitoring.svc.cluster.local:9090" | |
} | |
]} | |
] | |
}, | |
"statsd_udp_ip_address": "127.0.0.1:8125", | |
"stats_flush_interval_ms": 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment