Documentation
¶
Index ¶
Constants ¶
View Source
const (
FederationCluster = "Federation"
)
define const vars
Variables ¶
View Source
var (
//EnableBCSApiGw define
EnableBCSApiGw = ""
)
Functions ¶
func NewOperator ¶
func NewOperator(conf *config.ContainerResourceConfig) (op.Operator, error)
NewOperator get a new operator. TODO: For now, k8s operator do not support to deploy multi instances in one node(all pods with some host port).
So the request_cpu must big enough to occupy whole resource in one node. This should be solved later, and handle the ports managements.
Types ¶
type FederationResourceParam ¶
type FederationResourceParam struct { Resources ResRequests `json:"resources"` ClusterID string `json:"clusterID"` //子集群ID,非联邦集群ID ClusterLabels map[string]string `json:"clusterLabels"` NodeSelector map[string]string `json:"nodeSelector"` }
FederationResourceParam define
type FederationResult ¶
type FederationResult struct { Code int `json:"code"` Msg string `json:"msg"` Data FederationData `json:"data"` }
FederationResult define
type ResRequest ¶
ResRequest define
type ResRequests ¶
type ResRequests struct {
Requests ResRequest `json:"requests"`
}
ResRequests define
Click to show internal directories.
Click to hide internal directories.