Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
Go to file
Oleksii Kliukin 48ba6adf8a Avoid calling Team API with an expired token.
Previously, the controller fetched the Oauth token once at start, so eventually the token would expire and the operator could not create new users. This commit makes the operator fetch the token before each call to the Teams API.
2017-05-12 11:41:28 +02:00
cmd Pod Rolling update 2017-05-12 11:41:25 +02:00
docker Pod Rolling update 2017-05-12 11:41:25 +02:00
manifests Feature/persistent volumes 2017-05-12 11:41:25 +02:00
pkg Avoid calling Team API with an expired token. 2017-05-12 11:41:28 +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 Only set -i flag of go build when compiling locally 2017-05-12 11:37:09 +02:00
README.md Code refactor 2017-05-12 11:37:09 +02:00
build-ci.sh makefile improvements 2017-05-12 11:37:07 +02:00
glide.lock Pod Rolling update 2017-05-12 11:41:25 +02:00
glide.yaml Update glide dependencies 2017-05-12 11:37:09 +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 and Staticcheck

$ make tools 

Install dependencies with Glide

$ make deps

Build dependencies

$ go build -i -v cmd

Run operator (as a pod)

$ docker build -t postgres-operator:0.1 .
$ kubectl create -f postgres-operator.yaml

If you are building docker image by yourself on OS X make sure postgres-operator is compiled with GOOS=linux flag

Check if ThirdPartyResource has been registered

$ kubectl get thirdpartyresources

NAME                       DESCRIPTION                   VERSION(S)
postgresql.acid.zalan.do   Managed PostgreSQL clusters   v1

Create a new spilo cluster

$ kubectl create -f manifests/testpostgresql.yaml

Watch Pods being created

$ kubectl get pods -w