mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 22:46:52 +02:00
55dbacdfa64f7c9796355700f8e6a5b82acdd8c6
DNS name is generated from the team name and cluster name. Use "zalando.org/dnsname" service annotation that makes 'mate' service assign a CNAME to the load balancer name.
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
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%