Difference between revisions of "Kubernetes Postgres Operator"

From UVOO Tech Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 43: Line 43:
 
cd postgres-operator/installers/kubectl
 
cd postgres-operator/installers/kubectl
 
sudo micork8s.kubectl apply -f postgres-operator.yml
 
sudo micork8s.kubectl apply -f postgres-operator.yml
./client-setup.sh
+
PGO_CMD="${PGO_CMD-microk8s.kubectl}"
 +
sudo ./client-setup.sh
 
```
 
```
 +
 +
https://access.crunchydata.com/documentation/postgres-operator/latest/architecture/high-availability/
 +
https://access.crunchydata.com/documentation/postgres-operator/4.6.2/tutorial/connect-cluster/

Latest revision as of 01:50, 17 May 2021

Crunchydata

https://access.crunchydata.com/documentation/postgres-operator/latest/quickstart/

https://github.com/CrunchyData/postgres-operator

https://www.starkandwayne.com/blog/running-the-crunchydata-postgres-operator-on-minikube/

Microk8s

vi client-setup.sh

PGO_CMD="${PGO_CMD-microk8s.kubectl}"

https://github.com/CrunchyData/postgres-operator/releases/download/v4.6.2/pgo

Prep

curl -LO https://github.com/CrunchyData/postgres-operator/releases/download/v4.6.2/pgo
chmod +x pgo
mv pgo /usr/local/bin
kubectl -n pgo port-forward svc/postgres-operator 8443:8443

cat <<EOF >> ~/.bashrc
export PGOUSER="${HOME?}/.pgo/pgo/pgouser"
export PGO_CA_CERT="${HOME?}/.pgo/pgo/client.crt"
export PGO_CLIENT_CERT="${HOME?}/.pgo/pgo/client.crt"
export PGO_CLIENT_KEY="${HOME?}/.pgo/pgo/client.key"
export PGO_APISERVER_URL='https://127.0.0.1:8443'
export PGO_NAMESPACE=pgo
source ~/.bashrc
EOF
curl https://raw.githubusercontent.com/CrunchyData/postgres-operator/v4.6.2/installers/kubectl/client-setup.sh > client-setup.sh
sudo ./client-setup.sh
git clone https://github.com/CrunchyData/postgres-operator.git
cd postgres-operator/installers/kubectl
sudo micork8s.kubectl apply -f postgres-operator.yml
PGO_CMD="${PGO_CMD-microk8s.kubectl}"
sudo ./client-setup.sh

https://access.crunchydata.com/documentation/postgres-operator/latest/architecture/high-availability/ https://access.crunchydata.com/documentation/postgres-operator/4.6.2/tutorial/connect-cluster/