Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
Go to file
Oleksandr Shulgin 7974dc8c4e Move Dockerfile to a subdir for smaller build context 2017-05-12 11:36:22 +02:00
cmd Option to run the operator out of cluster. 2017-05-08 12:10:27 +02:00
docker Move Dockerfile to a subdir for smaller build context 2017-05-12 11:36:22 +02:00
pkg Option to run the operator out of cluster. 2017-05-08 12:10:27 +02:00
.gitignore Move Dockerfile to a subdir for smaller build context 2017-05-12 11:36:22 +02:00
.zappr.yaml Add .zappr configuration. 2017-05-08 12:10:27 +02:00
Makefile Move Dockerfile to a subdir for smaller build context 2017-05-12 11:36:22 +02:00
README.md refactor file tree structure 2017-05-08 12:10:25 +02:00
build-ci.sh Add clean before creating docker image for ci 2017-05-12 11:35:52 +02:00
glide.lock init 2017-01-09 17:48:13 +01:00
glide.yaml Correct the project's path. 2017-05-08 12:09:54 +02:00
postgres-operator.yaml Remove unused yaml template variables. 2017-05-08 12:10:27 +02:00
testcluster.yaml Really update the vendor name 2017-05-08 12:10:22 +02:00

README.md

postgres operator prototype (WIP)

Create minikube

$ minikube start

Deploy etcd

$ kubectl create -f https://raw.githubusercontent.com/coreos/etcd/master/hack/kubernetes-deploy/etcd.yml

Set your go path and put the sources so that go build finds them

$ export GOPATH=~/git/go
$ mkdir -p ${GOPATH}/src/github.bus.zalan.do/acid/
$ cd ${GOPATH}/src/github.bus.zalan.do/acid/ && git clone https://github.bus.zalan.do/acid/postgres-operator -b prototype

Install Glide on OS X

$ brew install glide

Install Glide on Ubuntu

# sudo add-apt-repository ppa:masterminds/glide && sudo apt-get update
# sudo apt-get install glide

Install dependencies with Glide

$ glide update && glide install

Build dependencies

$ go build -i -v cmd

Run operator (outside kubernetes cluster)

$ go run cmd/main.go

Check if ThirdPartyResource has been registered

$ kubectl get thirdpartyresources

NAME                  DESCRIPTION                             VERSION(S)
spilo.acid.zalan.do   A specification of Spilo StatefulSets   v1

Create a new spilo cluster

$ kubectl create -f testcluster.yaml

Watch Pods being created

$ kubectl get pods -w