docs: Expose Chaos Dashbaord with Ingress

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
This commit is contained in:
Yue Yang 2023-08-23 14:00:02 +08:00
parent 6dbf849eab
commit e65524d6a8
4 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# Expose Chaos Dashbaord with Ingress
At times, you may need to make the Chaos Dashboard accessible to external users, while placing it under the subpath of your current monitoring dashboard.
Below is an example of how to expose the Chaos Dashboard under the path `/chaos-mesh`:
```yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-chaos-dashboard-under-subpath
namespace: chaos-mesh
annotations:
nginx.ingress.kubernetes.io/use-regex: 'true'
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/configuration-snippet: |
sub_filter '<head>' '<head> <base href="/chaos-mesh/">';
spec:
rules:
- http:
paths:
- path: /chaos-mesh/?(.*)
pathType: Prefix
backend:
service:
name: chaos-dashboard
port:
number: 2333
```
You can also find this example in <https://github.com/chaos-mesh/chaos-mesh/blob/master/examples/dashboard/ingress-subpath.yaml>.

View File

@ -18,6 +18,7 @@ module.exports = {
'quick-start',
'production-installation-using-helm',
'offline-installation',
'expose-dashboard-with-ingress',
'persistence-dashboard',
'uninstallation',
{

View File

@ -0,0 +1,31 @@
# Expose Chaos Dashbaord with Ingress
At times, you may need to make the Chaos Dashboard accessible to external users, while placing it under the subpath of your current monitoring dashboard.
Below is an example of how to expose the Chaos Dashboard under the path `/chaos-mesh`:
```yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-chaos-dashboard-under-subpath
namespace: chaos-mesh
annotations:
nginx.ingress.kubernetes.io/use-regex: 'true'
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/configuration-snippet: |
sub_filter '<head>' '<head> <base href="/chaos-mesh/">';
spec:
rules:
- http:
paths:
- path: /chaos-mesh/?(.*)
pathType: Prefix
backend:
service:
name: chaos-dashboard
port:
number: 2333
```
You can also find this example in <https://github.com/chaos-mesh/chaos-mesh/blob/master/examples/dashboard/ingress-subpath.yaml>.

View File

@ -21,6 +21,7 @@
"quick-start",
"production-installation-using-helm",
"offline-installation",
"expose-dashboard-with-ingress",
"persistence-dashboard",
"uninstallation",
{