etcd operator creates/configures/manages etcd clusters atop Kubernetes
Перейти к файлу
Xiang Li 3d7ae55c92 Update README.md 2016-08-04 17:33:10 -07:00
example Create example-etcd-cluster.yaml 2016-08-04 17:03:27 -07:00
.gitignore Initial commit 2016-08-04 16:54:59 -07:00
LICENSE Initial commit 2016-08-04 16:54:59 -07:00
README.md Update README.md 2016-08-04 17:33:10 -07:00

README.md

kube-etcd-controller

Initialize the TPR

(TODO: auto create TPR when deploy the controller)

cat example/etcd-clusters-tpr.yaml
apiVersion: extensions/v1beta1
kind: ThirdPartyResource
description: "Managed etcd clusters"
metadata:
  name: "etcd-cluster.coreos.com"
versions:
  - name: v1
  - name: v2
kubectl create -f example/etcd-clusters-tpr.yaml

kubectl get thirdpartyresources
NAME                      DESCRIPTION             VERSION(S)
etcd-cluster.coreos.com   Managed etcd clusters   v1,v2

Deploy kube-etcd-controller

(TODO: deploy it using Kubernetes...)

./kube-etcd-controller --master=http://localhost:8080

Create an etcd cluster

cat example/example-etcd-cluster.yaml
apiVersion: "coreos.com/v1"
kind: "EtcdCluster"
metadata:
  name: "example-etcd-cluster"
size: 3
kubectl create -f example/example-etcd-cluster.yaml
kubectl get pods
kubectl get services
kubectl log etcd0-[uuid]