Skip to content

Commit da61839

Browse files
author
jmccormick2001
committed
update to install docs
1 parent 93fcf93 commit da61839

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/install.asciidoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ To run the operator and the *pgo* client, you will need the following:
4545
* a running Kube cluster
4646
* a kubectl client installed and in your PATH and configured to connect to your Kube cluster (e.g. export KUBECONFIG=/etc/kubernetes/admin.conf)
4747
* 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
48+
....
49+
kubectl create -f examples/demo-namespace.json
50+
kubectl config set-context $(kubectl config current-context) --namespace=demo
51+
kubectl config view | grep namespace
52+
....
4853

4954
== Basic Installation
5055

@@ -63,6 +68,7 @@ Create some sample Persistent Volumes using the following script:
6368
export CO_NAMESPACE=demo
6469
export CO_CMD=kubectl
6570
export COROOT=$GOPATH/src/github.com/crunchydata/postgres-operator
71+
go get github.com/blang/expenv
6672
$COROOT/pv/create-pv.sh
6773
....
6874

@@ -111,6 +117,20 @@ pgupgrades.cr.client-go.k8s.io 2d
111117

112118
At this point, the server side of the operator is deployed and ready.
113119

120+
The complete set of environment variables used in the installation
121+
so far are:
122+
....
123+
export CO_IMAGE_PREFIX=crunchydata
124+
export CO_IMAGE_TAG=centos7-2.6
125+
export GOPATH=$HOME/odev
126+
export GOBIN=$GOPATH/bin
127+
export PATH=$PATH:$GOBIN
128+
export COROOT=$GOPATH/src/github.com/crunchydata/postgres-operator
129+
export CO_CMD=kubectl
130+
....
131+
132+
You would normally add these into your *.bashrc* at this point to be used later on or if you want to redeploy the operator.
133+
114134
=== Configure *pgo* Client
115135

116136
The *pgo* command line client requires TLS for securing the connection to the operator's REST API. This configuration is performed as follows:

0 commit comments

Comments
 (0)