Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
凌波微步_大先生
dashboard
提交
813e504a
D
dashboard
项目概览
凌波微步_大先生
/
dashboard
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dashboard
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
813e504a
编写于
11月 27, 2017
作者:
J
Jordan Liggitt
提交者:
Sebastian Florek
11月 27, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Switch to proxy subresource (#2622)
上级
516c5750
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
37 addition
and
3 deletion
+37
-3
src/app/backend/integration/manager_test.go
src/app/backend/integration/manager_test.go
+1
-1
src/app/backend/integration/metric/heapster/restclient.go
src/app/backend/integration/metric/heapster/restclient.go
+4
-2
src/deploy/alternative/kubernetes-dashboard-arm-head.yaml
src/deploy/alternative/kubernetes-dashboard-arm-head.yaml
+4
-0
src/deploy/alternative/kubernetes-dashboard-arm.yaml
src/deploy/alternative/kubernetes-dashboard-arm.yaml
+4
-0
src/deploy/alternative/kubernetes-dashboard-head.yaml
src/deploy/alternative/kubernetes-dashboard-head.yaml
+4
-0
src/deploy/alternative/kubernetes-dashboard.yaml
src/deploy/alternative/kubernetes-dashboard.yaml
+4
-0
src/deploy/recommended/kubernetes-dashboard-arm-head.yaml
src/deploy/recommended/kubernetes-dashboard-arm-head.yaml
+4
-0
src/deploy/recommended/kubernetes-dashboard-arm.yaml
src/deploy/recommended/kubernetes-dashboard-arm.yaml
+4
-0
src/deploy/recommended/kubernetes-dashboard-head.yaml
src/deploy/recommended/kubernetes-dashboard-head.yaml
+4
-0
src/deploy/recommended/kubernetes-dashboard.yaml
src/deploy/recommended/kubernetes-dashboard.yaml
+4
-0
未找到文件。
src/app/backend/integration/manager_test.go
浏览文件 @
813e504a
...
...
@@ -58,7 +58,7 @@ func TestIntegrationManager_GetState(t *testing.T) {
"Server provided and using in-cluster heapster"
,
"http://127.0.0.1:8080"
,
""
,
&
api
.
IntegrationState
{
Connected
:
false
,
Error
:
errors
.
New
(
"Get http://127.0.0.1:8080/api/v1/
proxy/namespaces/kube-system/services/heapster
/healthz: dial tcp 127.0.0.1:8080: getsockopt: connection refused"
),
Error
:
errors
.
New
(
"Get http://127.0.0.1:8080/api/v1/
namespaces/kube-system/services/heapster/proxy
/healthz: dial tcp 127.0.0.1:8080: getsockopt: connection refused"
),
},
nil
,
},
{
...
...
src/app/backend/integration/metric/heapster/restclient.go
浏览文件 @
813e504a
...
...
@@ -42,20 +42,22 @@ type inClusterHeapsterClient struct {
// Get creates request to given path.
func
(
c
inClusterHeapsterClient
)
Get
(
path
string
)
RequestInterface
{
return
c
.
client
.
Get
()
.
Prefix
(
"proxy"
)
.
return
c
.
client
.
Get
()
.
Namespace
(
"kube-system"
)
.
Resource
(
"services"
)
.
Name
(
"heapster"
)
.
SubResource
(
"proxy"
)
.
Suffix
(
"/api/v1/"
+
path
)
}
// HealthCheck does a health check of the application.
// Returns nil if connection to application can be established, error object otherwise.
func
(
self
inClusterHeapsterClient
)
HealthCheck
()
error
{
_
,
err
:=
self
.
client
.
Get
()
.
Prefix
(
"proxy"
)
.
_
,
err
:=
self
.
client
.
Get
()
.
Namespace
(
"kube-system"
)
.
Resource
(
"services"
)
.
Name
(
"heapster"
)
.
SubResource
(
"proxy"
)
.
Suffix
(
"/healthz"
)
.
DoRaw
()
return
err
...
...
src/deploy/alternative/kubernetes-dashboard-arm-head.yaml
浏览文件 @
813e504a
...
...
@@ -56,6 +56,10 @@ rules:
resources
:
[
"
services"
]
resourceNames
:
[
"
heapster"
]
verbs
:
[
"
proxy"
]
-
apiGroups
:
[
"
"
]
resources
:
[
"
services/proxy"
]
resourceNames
:
[
"
heapster"
,
"
http:heapster:"
,
"
https:heapster:"
]
verbs
:
[
"
get"
]
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
...
...
src/deploy/alternative/kubernetes-dashboard-arm.yaml
浏览文件 @
813e504a
...
...
@@ -56,6 +56,10 @@ rules:
resources
:
[
"
services"
]
resourceNames
:
[
"
heapster"
]
verbs
:
[
"
proxy"
]
-
apiGroups
:
[
"
"
]
resources
:
[
"
services/proxy"
]
resourceNames
:
[
"
heapster"
,
"
http:heapster:"
,
"
https:heapster:"
]
verbs
:
[
"
get"
]
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
...
...
src/deploy/alternative/kubernetes-dashboard-head.yaml
浏览文件 @
813e504a
...
...
@@ -56,6 +56,10 @@ rules:
resources
:
[
"
services"
]
resourceNames
:
[
"
heapster"
]
verbs
:
[
"
proxy"
]
-
apiGroups
:
[
"
"
]
resources
:
[
"
services/proxy"
]
resourceNames
:
[
"
heapster"
,
"
http:heapster:"
,
"
https:heapster:"
]
verbs
:
[
"
get"
]
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
...
...
src/deploy/alternative/kubernetes-dashboard.yaml
浏览文件 @
813e504a
...
...
@@ -56,6 +56,10 @@ rules:
resources
:
[
"
services"
]
resourceNames
:
[
"
heapster"
]
verbs
:
[
"
proxy"
]
-
apiGroups
:
[
"
"
]
resources
:
[
"
services/proxy"
]
resourceNames
:
[
"
heapster"
,
"
http:heapster:"
,
"
https:heapster:"
]
verbs
:
[
"
get"
]
---
apiVersion
:
rbac.authorization.k8s.io/v1
...
...
src/deploy/recommended/kubernetes-dashboard-arm-head.yaml
浏览文件 @
813e504a
...
...
@@ -67,6 +67,10 @@ rules:
resources
:
[
"
services"
]
resourceNames
:
[
"
heapster"
]
verbs
:
[
"
proxy"
]
-
apiGroups
:
[
"
"
]
resources
:
[
"
services/proxy"
]
resourceNames
:
[
"
heapster"
,
"
http:heapster:"
,
"
https:heapster:"
]
verbs
:
[
"
get"
]
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
...
...
src/deploy/recommended/kubernetes-dashboard-arm.yaml
浏览文件 @
813e504a
...
...
@@ -67,6 +67,10 @@ rules:
resources
:
[
"
services"
]
resourceNames
:
[
"
heapster"
]
verbs
:
[
"
proxy"
]
-
apiGroups
:
[
"
"
]
resources
:
[
"
services/proxy"
]
resourceNames
:
[
"
heapster"
,
"
http:heapster:"
,
"
https:heapster:"
]
verbs
:
[
"
get"
]
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
...
...
src/deploy/recommended/kubernetes-dashboard-head.yaml
浏览文件 @
813e504a
...
...
@@ -67,6 +67,10 @@ rules:
resources
:
[
"
services"
]
resourceNames
:
[
"
heapster"
]
verbs
:
[
"
proxy"
]
-
apiGroups
:
[
"
"
]
resources
:
[
"
services/proxy"
]
resourceNames
:
[
"
heapster"
,
"
http:heapster:"
,
"
https:heapster:"
]
verbs
:
[
"
get"
]
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
...
...
src/deploy/recommended/kubernetes-dashboard.yaml
浏览文件 @
813e504a
...
...
@@ -67,6 +67,10 @@ rules:
resources
:
[
"
services"
]
resourceNames
:
[
"
heapster"
]
verbs
:
[
"
proxy"
]
-
apiGroups
:
[
"
"
]
resources
:
[
"
services/proxy"
]
resourceNames
:
[
"
heapster"
,
"
http:heapster:"
,
"
https:heapster:"
]
verbs
:
[
"
get"
]
---
apiVersion
:
rbac.authorization.k8s.io/v1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录