mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 14:47:34 +02:00
256ff37c19da933a2ddb8b86fd159956447021d8
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
Description
Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
clusterdatabase-as-a-servicedata-infrastructuregolangkubernetesmanaged-servicesoperatorpostgrespostgres-operatorpostgresql
Readme
116 MiB
Languages
Go
76.5%
Python
13.4%
Pug
5.9%
Shell
2%
JavaScript
0.7%
Other
1.5%