暴露在alb-ingress-controller上的Prometheus仪表板未完全加载

问题描述 投票:0回答:1

我正在将Helm / Stable / Prometheus Server用于我的Metrics数据源,并且使用AWS中的alb-ingress控制器公开了Prometheus Server仪表板。不知何故,Prometheus网页无法完全加载(网页的某些部分未加载并抛出404错误)。这是Ingress配置:

  ingress:
## If true, Prometheus server Ingress will be created
##
enabled: true

## Prometheus server Ingress annotations
##
annotations:
   kubernetes.io/ingress.class: 'alb'
   #kubernetes.io/tls-acme: 'true'
   alb.ingress.kubernetes.io/scheme: internet-facing
   alb.ingress.kubernetes.io/load-balancer-attributes: 'routing.http2.enabled=true,idle_timeout.timeout_seconds=60'
   alb.ingress.kubernetes.io/certificate-arn: certname
   alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
   alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'
service:
  annotations:
    alb.ingress.kubernetes.io/target-type: ip
labels: {}
path: /*
hosts:
   - prometheus.company.com

## Extra paths to prepend to every host configuration. This is useful when working with annotation based services.
extraPaths:
 - path: /*
   backend:
     serviceName: ssl-redirect
     servicePort: use-annotation

当我访问prometheus.company.com时,它已正确重定向到prometheus.company.com/graph(假设重定向工作正常)。但是,网页的某些部分(* .js和* .css文件)抛出404错误。

我该如何解决?

kubernetes prometheus grafana kubernetes-helm eks
1个回答
1
投票

我已解决此问题。解:主持人:-prometheus.company.com / *

© www.soinside.com 2019 - 2024. All rights reserved.