kubernetes-operator is a control plane and manage all kubernetes cluster lifecycle.
kubernetes-operator contains several large parts:
- kubernetes-proxy: is a proxy and all requests pass through,look like a gateway.
- kube-operator: is a kubernetes operator deploy in meta kubernetes and manage all kubernetes clusters(create、scale、delete).
- cluster deploy: At present, the main focus is on kube-on-kube,and use ansible deploy kubernetes cluster and multiple kubernetes cluster applications, eg: metric-server、 promethus、log-polit、helm...
- node-operator: Manage cluster upgrade, fault self-healing, etc.
The kubernetes-operator goal:
- kube-on-kube:Similar to Ant Financial kube-on-kube-operator.
- kube-to-kube:The difference with
kube-on-kube
is that the master component of the business cluster is not in the meta cluster. - kube-to-cloud-kube : Manage clusters on multiple cloud environments.
First you need to make two images,one is kubernetes-operator,the other one is ansibleinit。And deploy kubernetes-operator in your kubernetes-cluster,if you don't have a kubernetes cluster,please see scripts/REAEME.md
and deploy one.
$ make images
// update your image address and deploy kubernetes-operator
$ kubectl create -f deploy/
namespace/ecs-system created
customresourcedefinition.apiextensions.k8s.io/kubernetesclusters.ecs.yun.com created
deployment.apps/kubernetes-operator created
clusterrole.rbac.authorization.k8s.io/kubernetes-operator created
clusterrolebinding.rbac.authorization.k8s.io/kubernetes-operator created
serviceaccount/kubernetes-operator created
// CustomResources is KubernetesCluster,"ecs" for short in the kubernetes-operator
$ kubectl get crd
NAME CREATED AT
kubernetesclusters.ecs.yun.com 2019-08-05T12:23:52Z
// update operator server in create_ecs.sh and create a cluster
$ bash test/create_ecs.sh
$ kubectl get ecs
NAME STATUS AGE
test-cluster Prechecking 45m
- support deploy k3s、kubeedge cluster
- support use kops deploy cluster
- support for multiple version deploy
- development node-operator
- support admission control