- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有以下服务:
ubuntu@master:~$ kubectl get services --all-namespaces
NAMESPACE NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default kubernetes 100.64.0.1 <none> 443/TCP 48m
kube-system kube-dns 100.64.0.10 <none> 53/UDP,53/TCP 47m
kube-system kubernetes-dashboard 100.70.83.136 <nodes> 80/TCP 47m
我正在尝试访问 kubernetes 仪表板。考虑到curl不是浏览器,以下响应似乎是合理的。
ubuntu@master:~$ curl 100.70.83.136
<!doctype html> <html ng-app="kubernetesDashboard"> <head> <meta charset="utf-8"> <title>Kubernetes Dashboard</title> <link rel="icon" type="image/png" href="assets/images/kubernetes-logo.png"> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="static/vendor.36bb79bb.css"> <link rel="stylesheet" href="static/app.d2318302.css"> </head> <body> <!--[if lt IE 10]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser.
Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]--> <kd-chrome layout="column" layout-fill> </kd-chrome> <script src="static/vendor.633c6c7a.js"></script> <script src="api/appConfig.json"></script> <script src="static/app.9ed974b1.js"></script> </body> </html>
根据文档,正确的访问点是 https://localhost/ui 。所以,我正在尝试,但收到的结果有点令人担忧。 这是预期的 react 吗?
ubuntu@master:~$ curl https://localhost/ui
curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
在没有证书验证的情况下尝试相同的操作。对于 curl 来说可能没问题。但我在浏览器中得到了相同的结果,即通过 vagrantforwarded_port 选项通过端口转发进行连接。
ubuntu@master:~$ curl -k https://localhost/ui
Unauthorized
我做错了什么?以及如何确保我可以访问 UI? 目前它会响应“未经授权”。
仪表板的文档告诉密码位于配置中:
ubuntu@master:~$ kubectl config view
apiVersion: v1
clusters: []
contexts: []
current-context: ""
kind: Config
preferences: {}
users: []
但似乎我什么都没有......这是预期的行为吗?如何通过 UI 进行授权?
最佳答案
官方 wiki 有点困惑,所以我在这里重新排序:
如果您使用 recommended yaml 来部署仪表板,您应该仅通过 https 访问您的仪表板,并且您应该生成您的证书,请参阅 guide 。然后你可以运行kubectl proxy --address='0.0.0.0' --accept-hosts='^*$'
访问“http://localhost:8001/ui”上的仪表板。该页面需要使用token登录。要生成它,请参阅 this page 。您也可以添加NodePort
到您的 yaml 并使用 <nodeip>:<port>
访问它.
如果您使用 http alternative 进行部署方法,您只能通过nodeip:port 访问您的仪表板。记得先添加到yaml!!部署后,您还应该生成 token 并添加 header Authorization: Bearer <token>
对于每个请求。
我认为这可以帮助您和其他想要使用 kube-dashboard 的人。
关于kubernetes - 如何在集群外部访问/公开 kubernetes-dashboard 服务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39864385/
我在 microk8s 中启用了仪表板: microk8s.enable dns dashboard 我找到了它的IP地址: microk8s.kubectl get all --all-namesp
如何更改react-admin中的“仪表板”菜单名称? 默认情况下,即使在 Demo 中,它的名称也始终为“Dashboard” 名称是仪表板。有人知道更改名称的方法或者是否可以更改? 最佳答案 在M
我正在尝试自定义当前的CAS WAR叠加层。更具体地说,我需要访问Dashboard(或可以进行一些更改的地方,或者至少更改默认用户密码)。 CAS文档是一个很好的引用资料,但是我发现对于初学者来说,
我们的端到端测试基于 maven/CucumberJVM。所有工件都是使用 Jenkins 构建的,并保存在 Artifactory 中。那么 tekton 应该适用于一种(或多种)环境 使用 hel
我们的端到端测试基于 maven/CucumberJVM。所有工件都是使用 Jenkins 构建的,并保存在 Artifactory 中。那么 tekton 应该适用于一种(或多种)环境 使用 hel
我需要路线图 View 、总体错误图、一个屏幕上的多条信息 - 这可以与 Bugzilla 一起使用吗?基于 Eclipse 的插件等是可用的...但是像 yoxel 这样需要访问 Bugzilla
Web用户界面仪表板(通过运行‘kubectl Proxy’来呈现)非常有用,并且提供了集群的高级概述。然而,CPU和内存使用情况图似乎被硬编码为仅显示最近15分钟。我找不到任何允许我增加此设置的设置
全部-我一直在寻找可以提供几乎实时可见性和反馈到我们整个交付管道的工具。我发现的唯一与我一直在寻找的相似的是Captial One Hygieia(https://github.com/capital
我想创建一个脚本,在我使用我的组合登录后返回 wordpress 仪表板,它看起来像这样:(屏幕截图) 所以我创建了这个脚本 import urllib, urllib2, os, sys, requ
关闭。这个问题需要details or clarity .它目前不接受答案。 想改善这个问题吗?通过 editing this post 添加详细信息并澄清问题. 6年前关闭。 Improve thi
我正在使用 dockerized grafana 为历史数据创建仪表板。我在 grafana 图形面板中看不到散点图选项。 我想使用散点图来显示时间间隔范围内的数据点。我同样希望能够获取/显示选定间隔
这是我尝试访问在Docker(本地)上运行的parse-dashboard的内容 这是我运行的docker命令: docker run -d -p 4040:4040 --name myappname
This question already has answers here: How can I delete the Kubernetes dashboard from kube-system?
我在 R 中制作了一个 shinydashboard 来显示我的所有数据,看起来比标准的 shiny 更好。 试图弄清楚如何在仪表板中执行与“navbarPage”等效的操作(即有多个页面显示不同的数
我用下面的虚拟表格制作了一个简单的 Shiny 仪表板。当我运行它并且窗口太薄时,表格的列会超出框的边缘。如果我把窗口做得足够宽,那么 table 就可以装进盒子里了。 谁能提供更一致的格式?解决方案
我想查看特定自定义指标的每个时间间隔的最小值、最大值和平均值统计信息。在这种情况下,它是我的系统正在摄取的每个文件的大小。目前,我可以在 CloudWatch Dashboard 中使用三个独立的小部
我正在尝试使用 Redis 队列和 RQ 调度程序构建作业队列。但是当我尝试加载作业选项卡时,我从 RQ-dashboard 收到以下错误。我看到工作已添加,因为工作数量在增加。 During han
我是 SignalR 新手。我希望集成 SignalR 在仪表板中发送通知(即员工创建的最新应用程序),以便在不刷新仪表板的情况下显示新应用程序。应从数据库(sql server)获取应用程序并通知仪
我已将 Kibana-dashboard-only-mode 分配给用户,以仅访问我的仪表板。在我的仪表板中,我保存了一个搜索结果,因此具有仅仪表板模式角色的用户也应该能够查看和探索。 问题是当该用户
我正在尝试根据向量的内容将多个框添加到 Shiny 的界面。 让我们从这里开始: library(shiny) ui <- fluidPage( titlePanel("Dynamic Boxe
我是一名优秀的程序员,十分优秀!