add real time cpu/memory monitor api for container level
This commit is contained in:
@@ -18,6 +18,7 @@ package v1alpha
|
||||
|
||||
import (
|
||||
"github.com/emicklei/go-restful"
|
||||
"kubesphere.io/kubesphere/pkg/apis/v1alpha/containers"
|
||||
"kubesphere.io/kubesphere/pkg/apis/v1alpha/kubeconfig"
|
||||
"kubesphere.io/kubesphere/pkg/apis/v1alpha/kubectl"
|
||||
"kubesphere.io/kubesphere/pkg/apis/v1alpha/nodes"
|
||||
@@ -32,7 +33,6 @@ func init() {
|
||||
ws := new(restful.WebService)
|
||||
ws.Path("/api/v1alpha1")
|
||||
|
||||
nodes.Register(ws, "/nodes")
|
||||
kubeconfig.Register(ws, "/namespaces/{namespace}/kubeconfig")
|
||||
kubectl.Register(ws, "/namespaces/{namespace}/kubectl")
|
||||
registries.Register(ws, "/registries")
|
||||
@@ -40,6 +40,7 @@ func init() {
|
||||
volumes.Register(ws, "/volumes")
|
||||
nodes.Register(ws, "/nodes")
|
||||
pods.Register(ws)
|
||||
containers.Register(ws)
|
||||
// add webservice to default container
|
||||
restful.Add(ws)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user