1- # Deis Database
1+ # Postgres
22
33A PostgreSQL database for use in the [ Deis] ( http://deis.io ) open source PaaS.
44
@@ -12,81 +12,31 @@ Please add any [issues](https://github.com/deis/postgres/issues) you find with t
1212
1313## Deploying
1414
15- In order to run this component in Kubernetes, a few prerequisites are needed:
16-
17- - An AWS account with S3 enabled
18- - An external etcd cluster
19- - your own kubernetes cluster
20-
21- In Deis, these services are provided to you automatically through [ the store] ( http://docs.deis.io/en/latest/understanding_deis/components/#store )
22- and [ etcd] ( https://github.com/technosophos/etcd ) components.
23-
2415To build a dev release of this image, you will also need your own registry, but DockerHub or
2516[ Quay] ( https://quay.io/ ) will do fine here. To build, run:
2617
2718``` bash
28- $ make build
29- $ docker build -t deis/postgres:v0.0.1 rootfs
30- $ docker push deis/postgres:v0.0.1
19+ $ export DEIS_REGISTRY=myregistry.com:5000
20+ $ make docker-build docker-push
3121```
3222
3323This will compile the Docker image and push it to your registry.
3424
35- Then, you'll need to modify the kubernetes manifests to point to your S3 account and your etcd
36- cluster. Open up the replication controller manifest and change the values:
37-
38- ```
39- $ git diff
40- diff --git a/manifests/postgres-rc.json b/manifests/postgres-rc.json
41- index a5cbb23..70d3bc2 100644
42- --- a/manifests/postgres-rc.json
43- +++ b/manifests/postgres-rc.json
44- @@ -22,15 +22,15 @@
45- "containers": [
46- {
47- "name": "deis-database",
48- - "image": "CHANGEME",
49- + "image": "deis/postgres:v0.0.1",
50- "env": [
51- {
52- "name" : "AWS_ACCESS_KEY_ID",
53- - "value" : "CHANGEME"
54- + "value" : "FOO"
55- },
56- {
57- "name" : "AWS_SECRET_ACCESS_KEY",
58- - "value" : "CHANGEME"
59- + "value" : "BAR"
60- },
61- {
62- "name" : "WALE_S3_PREFIX",
63- @@ -38,7 +38,7 @@
64- },
65- {
66- "name" : "ETCD_SERVICE_HOST",
67- - "value" : "192.168.0.1"
68- + "value" : "10.0.1.100"
69- }
70- ],
71- "ports": [
72- ```
73-
7425After that, run
7526
7627```
7728$ make deploy
7829```
7930
80- Which will deploy the component to kubernetes. After a while, you should see a few pods up with one
31+ Which will deploy the component to kubernetes. After a while, you should see one pod up with one
8132running:
8233
8334```
8435NAME READY STATUS RESTARTS AGE
8536deis-database-6wy8o 1/1 Running 0 32s
86- deis-database-rh00d 0/1 Running 0 32s
8737```
8838
89- You can then query these images as you would with any other Kubernetes pod:
39+ You can then query this pod as you would with any other Kubernetes pod:
9040
9141```
9242$ kubectl logs -f deis-database-6wy8o
@@ -96,8 +46,6 @@ $ kubectl exec -it deis-database-6wy8o psql
9646
9747## Testing
9848
99- ** Note** : At this time, tests from Deis v1 are still being ported over.
100-
10149You can run the test suite with
10250
10351```
0 commit comments