-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Description
Prerequisites
Please be sure you have the following utilities installed on your host machine:
kubectl
git
Installation
Step 1: Download the Examples
First, go to GitHub and fork the Postgres Operator examples repository:
https://github.com/CrunchyData/postgres-operator-examples/fork
Once you have forked this repo, you can download it to your working environment with a command similar to this:
YOUR_GITHUB_UN=""
git clone --depth 1 "git@github.com:${YOUR_GITHUB_UN}/postgres-operator-examples.git"
cd postgres-operator-examples
Step 2: Install PGO, the Postgres Operator
You can install PGO, the Postgres Operator from Crunchy Data, using the command below:
kubectl apply -k kustomize/install/namespace
kubectl apply --server-side -k kustomize/install/default
root@controlplane:$ git clone --depth 1 "https://github.com/${GITHUB_USERNAME}/postgres-operator-examples.git"$ cd postgres-operator-examples
Cloning into 'postgres-operator-examples'...
remote: Enumerating objects: 68, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 68 (delta 13), reused 53 (delta 13), pack-reused 0 (from 0)
Receiving objects: 100% (68/68), 21.95 KiB | 2.44 MiB/s, done.
Resolving deltas: 100% (13/13), done.
root@controlplane:
root@controlplane:/postgres-operator-examples$ kubectl apply -k kustomize/install/namespace/postgres-operator-examples$ ls
error: must build at directory: not a valid directory: evalsymlink failure on 'kustomize/install/namespace' : lstat /root/postgres-operator-examples/kustomize/install: no such file or directory
root@controlplane:
LICENSE.md README.md helm kustomize
root@controlplane:~/postgres-operator-examples$