k8s dashboard部署、ing配置后,访问是报500 如下问题

http: TLS handshake error from 10.233.96.165:53192: remote error: tls: bad certificate

因为k8s-dashboard后台监听8443,需要配置traefik frontend Entry Points https:
修改traefik ingress的cm:

    insecureSkipVerify = true            
    defaultEntryPoints = ["http", "httpn", "https"]            
    [entryPoints]            
      [entryPoints.http]            
      address = ":80"            
      compress = true            
      #[entryPoints.http.redirect]            #http转发到https,如果配置,需要修改nginx,指向traefik的https的端口
      #entryPoint = "https"            
      [entryPoints.httpn]            
      address = ":8880"            
      compress = true            
      [entryPoints.traefik]            
      address = ":8080"            
      [entryPoints.https]            #配置https
      address = ":443"            
      [entryPoints.https.tls]            
      [[entryPoints.https.tls.certificates]]            
      certFile = "/opt/k8s-dashboard/certs/tls.crt"            
      keyFile = "/opt/k8s-dashboard/certs/tls.key"    

修改cm后需要重启pod生效

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2021-10-09
猜你喜欢
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2021-08-30
  • 2021-09-19
  • 2021-09-05
相关资源
相似解决方案