update to install docs
@@ -45,6 +45,11 @@ To run the operator and the *pgo* client, you will need the following:
* a running Kube cluster
* a kubectl client installed and in your PATH and configured to connect to your Kube cluster (e.g. export KUBECONFIG=/etc/kubernetes/admin.conf)
* a Kube namespace created and set to where you want the operator installed, for this install we assume a namespace of *demo* has been created
+....
+kubectl create -f examples/demo-namespace.json
+kubectl config set-context $(kubectl config current-context) --namespace=demo
+kubectl config view | grep namespace
+....
== Basic Installation
@@ -63,6 +68,7 @@ Create some sample Persistent Volumes using the following script:
export CO_NAMESPACE=demo
export CO_CMD=kubectl
export COROOT=$GOPATH/src/github.com/crunchydata/postgres-operator
+go get github.com/blang/expenv
$COROOT/pv/create-pv.sh
....
@@ -111,6 +117,20 @@ pgupgrades.cr.client-go.k8s.io 2d
At this point, the server side of the operator is deployed and ready.
+The complete set of environment variables used in the installation
+so far are:
+....
+export CO_IMAGE_PREFIX=crunchydata
+export CO_IMAGE_TAG=centos7-2.6
+export GOPATH=$HOME/odev
+export GOBIN=$GOPATH/bin
+export PATH=$PATH:$GOBIN
+export COROOT=$GOPATH/src/github.com/crunchydata/postgres-operator
+export CO_CMD=kubectl
+....
+
+You would normally add these into your *.bashrc* at this point to be used later on or if you want to redeploy the operator.
+
=== Configure *pgo* Client
The *pgo* command line client requires TLS for securing the connection to the operator's REST API. This configuration is performed as follows:
