我在 Azure Kubernetes 集群 (AKS) 中运行 grafana(kiali、prometheus 和 tracking)。AKS 集群位于应用程序网关入口控制器 (AGIC) 后面,grafana pod 在 https://{domain}/grafana/ 等子路径中运行。我能够通过 AGIC 的入口访问 grafana 服务,grafana pod 一直在 https://{domain}/ 而不是 https://{domain}/grafana/ 中搜索资源。因此,我想更改 grafana.ini 中的属性 root_url 以解决问题。我怎么能做到这一点?
我正在使用以下命令在 AKS 中安装 istio 1.6:
istioctl manifest apply -f istio.aks.yaml
我的 IstioControlPlane 如下所示:
apiVersion: install.istio.io/v1alpha2
kind: IstioControlPlane
spec:
# Use the default profile as the base
# More details at: https://istio.io/docs/setup/additional-setup/config-profiles/
profile: default
components:
pilot:
k8s:
resources:
requests:
cpu: 10m # override from default 500m
memory: 40Mi # ... default 2048Mi
values:
global:
# Ensure that the Istio pods are only scheduled to run on Linux nodes
defaultNodeSelector:
beta.kubernetes.io/os: linux
# Enable mutual TLS for the control plane
controlPlaneSecurityEnabled: true
mtls:
# Require all service to service communication to have mtls
enabled: false
grafana:
# Enable Grafana deployment for analytics and monitoring dashboards
enabled: true
security:
# Enable authentication for Grafana
enabled: false
kiali:
# Enable the Kiali deployment for a service mesh observability dashboard
enabled: true
resources:
requests:
cpu: 2m # override from default 500m
tracing:
# Enable the Jaeger deployment for tracing
enabled: true
jaeger:
resources:
requests:
cpu: 2m # override from default 500m
gateways:
istio-ingressgateway:
enabled: false
prometheus:
enabled: true
resources:
requests:
cpu: 2m # override from default 500m
https://{domain}.com/grafana/ 的 grafana 网页返回下图中的错误: