3d7ae55c92 | ||
---|---|---|
example | ||
.gitignore | ||
LICENSE | ||
README.md |
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]